{"id":456,"sha1":"805607dcbb9f12f39ebf027235e60390b09aff3e","playbook":{"id":4,"items":{"plays":104,"tasks":1377,"results":1365,"hosts":2,"files":504,"records":0},"arguments":{"version":null,"verbosity":0,"private_key_file":null,"remote_user":null,"connection":"openstack.osa.ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":true,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/zuul/src/opendev.org/openstack/openstack-ansible/inventory/dynamic_inventory.py","/home/zuul/src/opendev.org/openstack/openstack-ansible/inventory/inventory.ini","/etc/openstack_deploy/inventory.ini"],"listhosts":false,"subset":null,"extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":8,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["setup-openstack.yml"]},"labels":[{"id":1,"name":"check:False"},{"id":2,"name":"tags:all"}],"started":"2025-12-08T13:39:52.478534Z","ended":"2025-12-08T14:14:54.510371Z","duration":"00:35:02.031837","name":null,"ansible_version":"2.18.6","client_version":"1.7.4","python_version":"3.12.3","server_version":"1.7.4","status":"failed","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible/playbooks/setup-openstack.yml","controller":"aio1.openstack.local","user":"root"},"content":"---\n# Copyright 2014, Rackspace US, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n- name: Record the installation method\n  community.general.ini_file:\n    dest: \"/etc/ansible/facts.d/openstack_ansible.fact\"\n    section: \"nova\"\n    option: \"install_method\"\n    value: \"{{ nova_install_method }}\"\n    mode: \"0644\"\n\n- name: Refresh local facts to ensure the nova section is present\n  ansible.builtin.setup:\n    filter: ansible_local\n    gather_subset: \"!all\"\n\n- name: Add dependency repos for RDO\n  ansible.builtin.package:\n    name: \"{{ nova_distro_repos }}\"\n    state: \"{{ nova_package_state }}\"\n  retries: 5\n  delay: 2\n  when:\n    - ansible_facts['pkg_mgr'] == 'dnf'\n    - nova_install_method == 'distro'\n\n- name: Install distro packages\n  ansible.builtin.package:\n    name: \"{{ nova_package_list }}\"\n    state: \"{{ nova_package_state }}\"\n    update_cache: \"{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary('yes', omit) }}\"\n    cache_valid_time: \"{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary(cache_timeout, omit) }}\"\n  register: install_packages\n  until: install_packages is success\n  retries: 5\n  delay: 2\n  tags:\n    - nova-pip-packages\n  notify:\n    - \"Restart nova services\"\n\n- name: Install the python venv\n  ansible.builtin.import_role:\n    name: \"python_venv_build\"\n  vars:\n    venv_python_executable: \"{{ nova_venv_python_executable }}\"\n    venv_build_constraints: \"{{ nova_git_constraints }}\"\n    venv_build_distro_package_list: \"{{ nova_devel_distro_packages }}\"\n    venv_install_destination_path: \"{{ nova_bin | dirname }}\"\n    venv_pip_install_args: \"{{ nova_pip_install_args }}\"\n    venv_packages_to_symlink: >-\n      {{ (nova_services['nova-compute']['group'] in group_names and nova_virt_type != 'ironic') | ternary(nova_compute_kvm_packages_to_symlink, []) }}\n    venv_pip_packages: \"{{ nova_venv_packages }}\"\n    venv_facts_when_changed:\n      - section: \"nova\"\n        option: \"need_service_restart\"\n        value: \"True\"\n      - section: \"nova\"\n        option: \"need_online_data_migrations\"\n        value: \"True\"\n      - section: \"nova\"\n        option: \"venv_tag\"\n        value: \"{{ nova_venv_tag }}\"\n  when: nova_install_method == 'source'\n\n- name: Including nova_console_novnc tasks\n  ansible.builtin.include_tasks: \"consoles/nova_console_novnc_install.yml\"\n  when:\n    - nova_services['nova-novncproxy']['group'] in group_names\n    - \"'novnc' in nova_console_proxy_types\"\n  args:\n    apply:\n      tags:\n        - nova-install\n        - nova-novnc-console\n  tags:\n    - nova-install\n    - nova-novnc-console\n\n- name: Including nova_console_spice tasks\n  ansible.builtin.include_tasks: \"consoles/nova_console_spice_install.yml\"\n  when:\n    - nova_services['nova-spicehtml5proxy']['group'] in group_names\n    - \"'spice' in nova_console_proxy_types\"\n  args:\n    apply:\n      tags:\n        - nova-install\n        - nova-spice-console\n  tags:\n    - nova-install\n    - nova-spice-console\n\n# NOTE(jrosser) We do not use the service_facts: module here as it will add\n# a very large quantity of facts for the host. To keep the facts\n# size minimised a more direct approach to check the service status is used\n- name: Check nova-novncproxy service status\n  shell: systemctl is-active nova-novncproxy.service || systemctl is-enabled nova-novncproxy.service\n  failed_when: false\n  changed_when: false\n  become: true\n  register: novnc_proxy_enabled\n  tags:\n    - skip_ansible_lint\n\n- name: Check nova-spicehtml5proxy service status\n  shell: systemctl is-active nova-spicehtml5proxy.service || systemctl is-enabled nova-spicehtml5proxy.service\n  failed_when: false\n  changed_when: false\n  become: true\n  register: spicehtml5_proxy_enabled\n  tags:\n    - skip_ansible_lint\n\n- name: Check nova-serialproxy service status\n  shell: systemctl is-active nova-serialproxy.service || systemctl is-enabled nova-serialproxy.service\n  failed_when: false\n  changed_when: false\n  become: true\n  register: serial_proxy_enabled\n  tags:\n    - skip_ansible_lint\n\n- name: Disable existing services for any unused console types\n  ansible.builtin.systemd:\n    name: \"{{ item.service }}\"\n    enabled: false\n    state: stopped\n  when: (item.condition | bool) and item.type not in nova_console_proxy_types\n  loop:\n    - service: \"nova-novncproxy.service\"\n      condition: \"{{ novnc_proxy_enabled.rc is defined and novnc_proxy_enabled.rc == 0 }}\"\n      type: \"novnc\"\n    - service: \"nova-spicehtml5proxy.service\"\n      condition: \"{{ spicehtml5_proxy_enabled.rc is defined and spicehtml5_proxy_enabled.rc == 0 }}\"\n      type: \"spice\"\n    - service: \"nova-serialproxy.service\"\n      condition: \"{{ serial_proxy_enabled.rc is defined and serial_proxy_enabled.rc == 0 }}\"\n      type: \"serialconsole\"\n\n- name: Record local facts for distro path\n  when: nova_install_method == 'distro'\n  block:\n    - name: Record the osa version deployed\n      community.general.ini_file:\n        dest: \"/etc/ansible/facts.d/openstack_ansible.fact\"\n        section: nova\n        option: venv_tag\n        value: \"{{ nova_venv_tag }}\"\n        mode: \"0644\"\n\n    - name: Initialise the upgrade facts\n      community.general.ini_file:\n        dest: \"/etc/ansible/facts.d/openstack_ansible.fact\"\n        section: nova\n        option: \"{{ item.name }}\"\n        value: \"{{ item.state }}\"\n        mode: \"0644\"\n      with_items:\n        - name: \"need_service_restart\"\n          state: \"True\"\n        - name: \"need_online_data_migrations\"\n          state: \"True\"\n      when:\n        - (install_packages is changed) or\n          (ansible_local is not defined) or\n          ('openstack_ansible' not in ansible_local) or\n          ('nova' not in ansible_local['openstack_ansible']) or\n          ('need_online_data_migrations' not in ansible_local['openstack_ansible']['nova']) or\n          ('need_service_restart' not in ansible_local['openstack_ansible']['nova'])\n","created":"2025-12-08T13:39:57.644191Z","updated":"2025-12-08T13:39:57.644225Z","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible-os_nova/tasks/nova_install.yml"}