{"id":487,"sha1":"64034d4d3f00ae9aa0cd07687389f69c24f50c08","playbook":{"id":4,"items":{"plays":32,"tasks":1505,"results":1497,"hosts":12,"files":487,"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":4,"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:57:07.871967Z","ended":"2025-12-08T14:21:54.049657Z","duration":"00:24:46.177690","name":null,"ansible_version":"2.18.6","client_version":"1.7.4","python_version":"3.12.11","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: Gather nova facts\n  hosts: nova_all\n  gather_facts: false\n  tags:\n    - always\n  tasks:\n    - name: Gather minimal facts for nova\n      ansible.builtin.setup:\n        gather_subset:\n          - \"!all\"\n          - min\n      when: osa_gather_facts | default(True)\n\n    - name: Gather additional facts for nova\n      ansible.builtin.setup:\n        gather_subset: \"{{ nova_gather_subset | default('processor_count') }}\"\n        filter: \"{{ nova_gather_filter | default('ansible_processor*') }}\"\n      when: osa_gather_facts | default(True)\n\n- name: \"Config haproxy service\"\n  ansible.builtin.import_playbook: openstack.osa.haproxy_service_config\n  vars:\n    service_group: \"nova_all\"\n    service_variable: \"nova_haproxy_services\"\n  when:\n    - groups['nova_all'] | length > 0\n    - groups['haproxy'] | length > 0\n  tags:\n    - haproxy-service-config\n\n- name: Install nova control-plane services\n  hosts: \"nova_conductor:nova_scheduler:nova_api_os_compute:nova_api_metadata:nova_console\"\n  serial: \"{{ nova_conductor_serial | default(['1', '100%']) }}\"\n  gather_facts: false\n  user: root\n  environment: \"{{ deployment_environment_variables | default({}) }}\"\n  pre_tasks:\n    - name: Setup installation variables\n      ansible.builtin.include_role:\n        name: openstack.osa.install_defaults\n        defaults_from: \"{{ install_method }}\"\n        public: true\n        apply:\n          tags:\n            - always\n      tags:\n        - always\n\n    # Enable execution of ceph_client on the nova compute hosts if cinder RBD\n    # backends are used. This is necessary to ensure that volume-backed Nova\n    # instances can function when RBD is the volume backend.\n    - name: Set cinder RBD inuse fact\n      ansible.builtin.set_fact:\n        nova_cinder_rbd_inuse: \"{{ True in groups['cinder_volume'] | map('extract', hostvars, 'cinder_backend_rbd_inuse') }}\"\n      delegate_to: localhost\n      delegate_facts: True\n      when:\n        - \"'nova_compute' in group_names\"\n        - \"inventory_hostname == ((groups['nova_compute'] | select('in', ansible_play_hosts)) | list)[0]\"\n        - \"hostvars['localhost']['nova_cinder_rbd_inuse'] is not defined\"\n      tags:\n        - always\n    # In order to ensure that any container, software or\n    # config file changes which causes a container/service\n    # restart do not cause an unexpected outage, we drain\n    # the load balancer back end for this container.\n    - name: Disabling haproxy backends\n      ansible.builtin.include_role:\n        name: openstack.osa.haproxy_endpoint_manage\n        apply:\n          tags:\n            - always\n      vars:\n        haproxy_backend: \"{{ backend_name }}-back\"\n        haproxy_state: disabled\n      loop_control:\n        loop_var: backend_name\n      when:\n        - \"backend_name in group_names\"\n        - \"groups[backend_name] | length > 1\"\n      with_items:\n        - \"nova_api_metadata\"\n        - \"nova_api_os_compute\"\n        - \"nova_console\"\n      tags:\n        - always\n\n    - name: Configure container\n      ansible.builtin.include_role:\n        name: \"openstack.osa.{{ container_tech | default('lxc') }}_container_setup\"\n      when: not is_metal\n      vars:\n        extra_container_config_no_restart:\n          - \"lxc.start.order=39\"\n\n    - name: Including unbound-clients tasks\n      ansible.builtin.include_role:\n        name: openstack.osa.unbound_clients\n      when:\n        - hostvars['localhost']['resolvconf_enabled'] | bool\n\n  roles:\n    - role: \"os_nova\"\n      nova_management_address: \"{{ management_address }}\"\n      nova_cinder_rbd_inuse: \"{{ hostvars['localhost']['nova_cinder_rbd_inuse'] | default(False) }}\"\n\n    - role: \"openstack.osa.system_crontab_coordination\"\n      tags:\n        - crontab\n\n  post_tasks:\n    # Now that container changes are done, we can set\n    # the load balancer back end for this container\n    # to available again.\n    - name: Enabling haproxy backends\n      ansible.builtin.include_role:\n        name: openstack.osa.haproxy_endpoint_manage\n        apply:\n          tags:\n            - always\n      vars:\n        haproxy_backend: \"{{ backend_name }}-back\"\n        haproxy_state: enabled\n      loop_control:\n        loop_var: backend_name\n      when:\n        - \"backend_name in group_names\"\n        - \"groups[backend_name] | length > 1\"\n      with_items:\n        - \"nova_api_metadata\"\n        - \"nova_api_os_compute\"\n        - \"nova_console\"\n      tags:\n        - always\n\n\n- name: Install nova compute services\n  hosts: \"nova_compute:!nova_conductor:!nova_scheduler:!nova_api_os_compute:!nova_api_metadata:!nova_console\"\n  serial: \"{{ nova_compute_serial | default('100%') }}\"\n  gather_facts: false\n  user: root\n  environment: \"{{ deployment_environment_variables | default({}) }}\"\n  pre_tasks:\n    - name: Setup installation variables\n      ansible.builtin.include_role:\n        name: openstack.osa.install_defaults\n        defaults_from: \"{{ install_method }}\"\n        public: true\n\n    # Enable execution of ceph_client on the nova compute hosts if cinder RBD\n    # backends are used. This is necessary to ensure that volume-backed Nova\n    # instances can function when RBD is the volume backend.\n    - name: Set cinder RBD inuse fact\n      ansible.builtin.set_fact:\n        nova_cinder_rbd_inuse: \"{{ True in groups['cinder_volume'] | map('extract', hostvars, 'cinder_backend_rbd_inuse') }}\"\n      delegate_to: localhost\n      delegate_facts: True\n      when:\n        - \"'nova_compute' in group_names\"\n        - \"inventory_hostname == ((groups['nova_compute'] | intersect(ansible_play_hosts)) | list)[0]\"\n        - \"hostvars['localhost']['nova_cinder_rbd_inuse'] is not defined\"\n      tags:\n        - always\n\n    - name: Configure container\n      ansible.builtin.include_role:\n        name: \"openstack.osa.{{ container_tech | default('lxc') }}_container_setup\"\n      when: not is_metal\n      vars:\n        extra_container_config_no_restart:\n          - \"lxc.start.order=39\"\n\n    - name: Including unbound-clients tasks\n      ansible.builtin.include_role:\n        name: openstack.osa.unbound_clients\n      when:\n        - hostvars['localhost']['resolvconf_enabled'] | bool\n\n    - name: Add nbd devices to the compute\n      ansible.builtin.shell: |\n        for i in /dev/nbd*;do\n          lxc-device -n {{ container_name }} add $i $i\n        done\n      failed_when: false\n      register: device_add\n      changed_when: >\n        'added' in device_add.stdout.lower()\n      delegate_to: \"{{ physical_host }}\"\n      when:\n        - container_tech | default('lxc') == 'lxc'\n        - \"'nova_compute' in group_names\"\n        - \"not is_metal | bool\"\n      tags:\n        - always\n\n    - name: Add net/tun device to the compute # noqa: no-changed-when\n      ansible.builtin.command: |\n        lxc-device -n {{ container_name }} add /dev/net/tun /dev/net/tun\n      delegate_to: \"{{ physical_host }}\"\n      when:\n        - container_tech | default('lxc') == 'lxc'\n        - \"'nova_compute' in group_names\"\n        - \"not is_metal | bool\"\n      tags:\n        - always\n\n    - name: Check if kvm device exists\n      ansible.builtin.stat:\n        path: /dev/kvm\n      delegate_to: \"{{ physical_host }}\"\n      register: kvm_device\n      when:\n        - container_tech | default('lxc') == 'lxc'\n        - \"'nova_compute' in group_names\"\n        - \"not is_metal | bool\"\n      tags:\n        - always\n\n    - name: Add kvm device to the compute\n      ansible.builtin.command: |\n        lxc-device -n {{ container_name }} add /dev/kvm /dev/kvm\n      delegate_to: \"{{ physical_host }}\"\n      register: device_add\n      failed_when: false\n      changed_when: >\n        'added' in device_add.stdout.lower()\n      when:\n        - container_tech | default('lxc') == 'lxc'\n        - \"'nova_compute' in group_names\"\n        - \"not is_metal | bool\"\n        - \"'ischr' in kvm_device.stat and kvm_device.stat.ischr | bool\"\n      tags:\n        - always\n\n  roles:\n    - role: \"os_nova\"\n      nova_management_address: \"{{ management_address }}\"\n      nova_cinder_rbd_inuse: \"{{ hostvars['localhost']['nova_cinder_rbd_inuse'] | default(False) }}\"\n\n    - role: \"openstack.osa.system_crontab_coordination\"\n      tags:\n        - crontab\n\n- name: Finalize nova setup\n  hosts: nova_conductor[0]\n  gather_facts: false\n  user: root\n  environment: \"{{ deployment_environment_variables | default({}) }}\"\n  tasks:\n    - name: Setup installation variables\n      ansible.builtin.include_role:\n        name: openstack.osa.install_defaults\n        defaults_from: \"{{ install_method }}\"\n        public: true\n\n    - name: Running db_post_setup tasks from the role\n      ansible.builtin.import_role:\n        name: os_nova\n        tasks_from: nova_db_post_setup.yml\n","created":"2025-12-08T13:57:11.870924Z","updated":"2025-12-08T13:57:11.870936Z","path":"/etc/ansible/ansible_collections/openstack/osa/playbooks/nova.yml"}