Execution
Date 14 Dec 2025 10:21:40 +0000
Duration 00:43:55.98
Controller aio1.openstack.local
User root
Versions
Ansible 2.18.6
ara 1.7.4 / 1.7.4
Python 3.13.5
Summary
13 Hosts
2438 Tasks
2413 Results
107 Plays
511 Files
0 Records

File: /home/zuul/src/opendev.org/openstack/openstack-ansible-os_horizon/tasks/horizon_install_source.yml

---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE(jrosser)
# horizon appears in u-c as is it used as a library for the horizon plugins
# the new pip resolver will fail to install horizon if two contradictory
# constraints are given which will always happen with a source install
# and wheels built on the repo server. We must filter horizon out of u-c.
- name: Retrieve the constraints URL
  ansible.builtin.uri:
    url: "{{ horizon_upper_constraints_url }}"
    return_content: true
  register: _u_c_contents
  until: _u_c_contents is success
  retries: 15
  delay: 3

- name: Install the python venv
  ansible.builtin.include_role:
    name: "python_venv_build"
  vars:
    venv_python_executable: "{{ horizon_venv_python_executable }}"
    venv_build_constraints: "{{ _u_c_contents.content.split('\n') | reject('match', '^(horizon|pyScss)=') | list + horizon_venv_extra_constraints }}"
    venv_build_distro_package_list: "{{ horizon_devel_distro_packages }}"
    venv_install_destination_path: "{{ horizon_bin | dirname }}"
    venv_pip_install_args: "{{ horizon_pip_install_args }}"
    venv_pip_packages: >-
      {{ horizon_pip_packages | union(horizon_user_pip_packages) +
         horizon_optional_pip_packages +
         horizon_service_pip_packages | default([]) +
         (horizon_enable_adjutant_ui | bool) | ternary(horizon_adjutant_optional_pip_packages, []) +
         (horizon_enable_barbican_ui | bool) | ternary(horizon_barbican_optional_pip_packages, []) +
         (horizon_enable_blazar_ui | bool) | ternary(horizon_blazar_optional_pip_packages, []) +
         (horizon_enable_cloudkitty_ui | bool) | ternary(horizon_cloudkitty_optional_pip_packages, []) +
         (horizon_enable_designate_ui | bool) | ternary(horizon_designate_optional_pip_packages, []) +
         (horizon_enable_heat_ui | bool) | ternary(horizon_heat_optional_pip_packages, []) +
         (horizon_enable_ironic_ui | bool) | ternary(horizon_ironic_optional_pip_packages, []) +
         (horizon_enable_magnum_ui | bool) | ternary(horizon_magnum_optional_pip_packages, []) +
         (horizon_enable_mistral_ui | bool) | ternary(horizon_mistral_optional_pip_packages, []) +
         (horizon_enable_manila_ui | bool) | ternary(horizon_manila_optional_pip_packages, []) +
         (horizon_enable_masakari_ui | bool) | ternary(horizon_masakari_optional_pip_packages, []) +
         (horizon_enable_neutron_vpnaas | bool) | ternary(horizon_neutron_vpnaas_optional_pip_packages, []) +
         (horizon_enable_neutron_fwaas | bool) | ternary(horizon_neutron_fwaas_optional_pip_packages, []) +
         (horizon_enable_octavia_ui | bool) | ternary(horizon_octavia_optional_pip_packages, []) +
         (horizon_enable_tacker_ui | bool) | ternary(horizon_tacker_optional_pip_packages, []) +
         (horizon_enable_trove_ui | bool) | ternary(horizon_trove_optional_pip_packages, []) +
         (horizon_enable_watcher_ui | bool) | ternary(horizon_watcher_optional_pip_packages, []) +
         (horizon_enable_zun_ui | bool) | ternary(horizon_zun_optional_pip_packages, []) }}
    venv_facts_when_changed:
      - section: "horizon"
        option: "venv_tag"
        value: "{{ horizon_venv_tag }}"