{"id":518,"sha1":"10bdd965480861570ba5754e8b205baaab52e798","playbook":{"id":5,"items":{"plays":108,"tasks":618,"results":960,"hosts":9,"files":456,"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-15T10:19:13.597292Z","ended":"2025-12-15T10:42:26.420131Z","duration":"00:23:12.822839","name":null,"ansible_version":"2.18.6","client_version":"1.7.4","python_version":"3.12.3","server_version":"1.7.4","status":"completed","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 variables for each operating system\n  ansible.builtin.include_vars: \"{{ lookup('first_found', params) }}\"\n  vars:\n    params:\n      files:\n        - \"{{ ansible_facts['distribution'] | lower }}-{{ ansible_facts['distribution_version'] | lower }}.yml\"\n        - \"{{ ansible_facts['distribution'] | lower }}-{{ ansible_facts['distribution_major_version'] | lower }}.yml\"\n        - \"{{ ansible_facts['os_family'] | lower }}-{{ ansible_facts['distribution_major_version'] | lower }}.yml\"\n        - \"{{ ansible_facts['distribution'] | lower }}.yml\"\n        - \"{{ ansible_facts['os_family'] | lower }}.yml\"\n      paths:\n        - \"{{ role_path }}/vars\"\n  tags:\n    - always\n\n- name: Fail when virt type is unsupported\n  ansible.builtin.fail:\n    msg: \"Unsupported Virt Type Provided {{ nova_supported_virt_types }}\"\n  when:\n    - nova_virt_type is defined\n    - nova_virt_type not in nova_supported_virt_types\n  tags:\n    - always\n\n- name: Fail if service was deployed using a different installation method\n  ansible.builtin.fail:\n    msg: \"Switching installation methods for OpenStack services is not supported\"\n  when:\n    - ansible_local is defined\n    - ansible_local.openstack_ansible is defined\n    - ansible_local.openstack_ansible.nova is defined\n    - ansible_local.openstack_ansible.nova.install_method is defined\n    - ansible_local.openstack_ansible.nova.install_method != nova_install_method\n\n- name: Gather variables for installation method\n  ansible.builtin.include_vars: \"{{ nova_install_method }}_install.yml\"\n  tags:\n    - always\n\n- name: Including osa.db_setup role\n  ansible.builtin.include_role:\n    name: openstack.osa.db_setup\n    apply:\n      tags:\n        - common-db\n        - nova-config\n  when:\n    - _nova_is_first_play_host\n  vars:\n    _oslodb_setup_host: \"{{ nova_db_setup_host }}\"\n    _oslodb_ansible_python_interpreter: \"{{ nova_db_setup_python_interpreter }}\"\n    _oslodb_setup_endpoint: \"{{ nova_galera_address }}\"\n    _oslodb_setup_port: \"{{ nova_galera_port }}\"\n    _oslodb_databases:\n      - name: \"{{ nova_galera_database }}\"\n        users:\n          - username: \"{{ nova_galera_user }}\"\n            password: \"{{ nova_container_mysql_password }}\"\n      - name: \"{{ nova_api_galera_database }}\"\n        users:\n          - username: \"{{ nova_api_galera_user }}\"\n            password: \"{{ nova_api_container_mysql_password }}\"\n      - name: \"{{ nova_cell0_database }}\"\n        users:\n          - username: \"{{ nova_api_galera_user }}\"\n            password: \"{{ nova_api_container_mysql_password }}\"\n  tags:\n    - always\n\n- name: Including osa.mq_setup role\n  ansible.builtin.include_role:\n    name: openstack.osa.mq_setup\n    apply:\n      tags:\n        - common-mq\n        - nova-config\n  when:\n    - _nova_is_first_play_host\n  vars:\n    _oslomsg_rpc_setup_host: \"{{ nova_oslomsg_rpc_setup_host }}\"\n    _oslomsg_rpc_userid: \"{{ nova_oslomsg_rpc_userid }}\"\n    _oslomsg_rpc_password: \"{{ nova_oslomsg_rpc_password }}\"\n    _oslomsg_rpc_vhost: \"{{ nova_oslomsg_rpc_vhost }}\"\n    _oslomsg_rpc_transport: \"{{ nova_oslomsg_rpc_transport }}\"\n    _oslomsg_rpc_policies: \"{{ nova_oslomsg_rpc_policies }}\"\n    _oslomsg_notify_setup_host: \"{{ nova_oslomsg_notify_setup_host }}\"\n    _oslomsg_notify_userid: \"{{ nova_oslomsg_notify_userid }}\"\n    _oslomsg_notify_password: \"{{ nova_oslomsg_notify_password }}\"\n    _oslomsg_notify_vhost: \"{{ nova_oslomsg_notify_vhost }}\"\n    _oslomsg_notify_transport: \"{{ nova_oslomsg_notify_transport }}\"\n    _oslomsg_notify_policies: \"{{ nova_oslomsg_notify_policies }}\"\n    _oslomsg_notify_configure: \"{{ nova_oslomsg_notify_configure }}\"\n  tags:\n    - always\n\n- name: Including nova_virt_detect tasks\n  ansible.builtin.include_tasks: nova_virt_detect.yml\n  args:\n    apply:\n      tags:\n        - always\n  when:\n    - nova_virt_type is not defined\n  tags:\n    - always\n\n- name: Including nova_mdev_detect tasks\n  ansible.builtin.include_tasks: nova_mdev_detect.yml\n  args:\n    apply:\n      tags:\n        - always\n  when:\n    - nova_discover_mdev_types | bool\n  tags:\n    - always\n\n- name: Importing nova_pre_install tasks\n  ansible.builtin.import_tasks: nova_pre_install.yml\n  tags:\n    - nova-install\n\n- name: Importing nova_install tasks\n  ansible.builtin.import_tasks: nova_install.yml\n  tags:\n    - nova-install\n\n- name: Refresh local facts\n  ansible.builtin.setup:\n    filter: ansible_local\n    gather_subset: \"!all\"\n  tags:\n    - nova-config\n\n# Create certs after nova groups have been created but before handlers\n- name: Create and install SSL certificates for API and Consoles\n  ansible.builtin.include_role:\n    name: pki\n    tasks_from: main_certs.yml\n    apply:\n      tags:\n        - nova-config\n        - pki\n  vars:\n    pki_setup_host: \"{{ nova_pki_setup_host }}\"\n    pki_dir: \"{{ nova_pki_dir }}\"\n    pki_create_certificates: \"{{ nova_user_ssl_cert is not defined and nova_user_ssl_key is not defined }}\"\n    pki_regen_cert: \"{{ nova_pki_regen_cert }}\"\n    pki_certificates: \"{{ nova_pki_certificates + nova_pki_console_certificates }}\"\n    pki_install_certificates: \"{{ nova_pki_install_certificates + nova_pki_console_install_certificates }}\"\n  when:\n    - nova_pki_certificates_condition | bool or nova_pki_console_condition | bool\n  tags:\n    - always\n\n- name: Create and install SSL certificates for compute hosts\n  ansible.builtin.include_role:\n    name: pki\n    tasks_from: main_certs.yml\n    apply:\n      tags:\n        - nova-config\n        - pki\n  vars:\n    pki_setup_host: \"{{ nova_pki_setup_host }}\"\n    pki_dir: \"{{ nova_pki_dir }}\"\n    pki_create_certificates: \"{{ nova_user_ssl_cert is not defined and nova_user_ssl_key is not defined }}\"\n    pki_regen_cert: \"{{ nova_pki_regen_cert }}\"\n    pki_certificates: \"{{ nova_pki_compute_certificates }}\"\n    pki_install_certificates: \"{{ nova_pki_compute_install_certificates }}\"\n  when:\n    - nova_libvirtd_listen_tls == 1\n    - \"'nova_compute' in group_names\"\n    - nova_virt_type != 'ironic'\n  tags:\n    - always\n\n- name: Including nova_post_install tasks\n  ansible.builtin.import_tasks: nova_post_install.yml\n  tags:\n    - nova-config\n    - post-install\n\n- name: Including osa.service_setup tasks\n  ansible.builtin.include_role:\n    name: openstack.osa.service_setup\n    apply:\n      tags:\n        - common-service\n        - nova-config\n  vars:\n    _service_adminuri_insecure: \"{{ keystone_service_adminuri_insecure }}\"\n    _service_in_ldap: \"{{ nova_service_in_ldap }}\"\n    _service_setup_host: \"{{ nova_service_setup_host }}\"\n    _service_setup_host_python_interpreter: \"{{ nova_service_setup_host_python_interpreter }}\"\n    _service_project_name: \"{{ nova_service_project_name }}\"\n    _service_region: \"{{ nova_service_region }}\"\n    _service_users:\n      - name: \"{{ nova_service_user_name }}\"\n        password: \"{{ nova_service_password }}\"\n        role: \"{{ nova_service_role_names }}\"\n    _service_endpoints:\n      - service: \"{{ nova_service_name }}\"\n        interface: \"public\"\n        url: \"{{ nova_service_publicurl }}\"\n      - service: \"{{ nova_service_name }}\"\n        interface: \"internal\"\n        url: \"{{ nova_service_internalurl }}\"\n      - service: \"{{ nova_service_name }}\"\n        interface: \"admin\"\n        url: \"{{ nova_service_adminurl }}\"\n    _service_catalog:\n      - name: \"{{ nova_service_name }}\"\n        type: \"{{ nova_service_type }}\"\n        description: \"{{ nova_service_description }}\"\n  when:\n    - _nova_is_first_play_host\n  tags:\n    - always\n\n- name: Including nova_db_setup tasks\n  ansible.builtin.include_tasks: nova_db_setup.yml\n  args:\n    apply:\n      tags:\n        - nova-config\n        - post-install\n  when:\n    - _nova_is_first_play_host\n  tags:\n    - always\n\n- name: Import uwsgi role\n  ansible.builtin.import_role:\n    name: uwsgi\n  vars:\n    uwsgi_services: \"{{ uwsgi_nova_services }}\"\n    uwsgi_install_method: \"{{ nova_install_method }}\"\n  when:\n    - uwsgi_nova_services | length > 0\n  tags:\n    - nova-config\n    - uwsgi\n\n- name: Run the systemd service role\n  ansible.builtin.import_role:\n    name: systemd_service\n  vars:\n    systemd_user_name: \"{{ nova_system_user_name }}\"\n    systemd_group_name: \"{{ nova_system_group_name }}\"\n    systemd_tempd_prefix: openstack\n    systemd_slice_name: \"{{ nova_system_slice_name }}\"\n    systemd_lock_dir: \"{{ nova_lock_dir }}\"\n    systemd_service_cpu_accounting: true\n    systemd_service_block_io_accounting: true\n    systemd_service_memory_accounting: true\n    systemd_service_tasks_accounting: true\n    systemd_services: |-\n      {% set services = [] %}\n      {% for service in filtered_nova_services %}\n      {%\n        set _ = service.update(\n          {\n            'enabled': 'yes',\n            'state': 'started',\n            'config_overrides': service.init_config_overrides\n          }\n        )\n      %}\n      {%   set _ = service.pop('init_config_overrides') -%}\n      {%   set _ = services.append(service) -%}\n      {% endfor %}\n      {{ services }}\n  tags:\n    - nova-config\n    - systemd-service\n\n- name: Including nova_compute tasks\n  ansible.builtin.include_tasks: nova_compute.yml\n  args:\n    apply:\n      tags:\n        - nova-compute\n  when:\n    - nova_virt_type != 'ironic'\n    - \"nova_services['nova-compute']['group'] in group_names\"\n  tags:\n    - always\n\n- name: Include ceph_client role\n  ansible.builtin.include_role:\n    name: ceph_client\n    apply:\n      tags:\n        - ceph\n  vars:\n    openstack_service_system_user: \"{{ nova_system_user_name }}\"\n    openstack_service_venv_bin: \"{{ (nova_install_method == 'source') | ternary(nova_bin, '') }}\"\n  when:\n    - nova_virt_type != 'ironic'\n    - nova_services['nova-compute']['group'] in group_names\n    - (nova_rbd_inuse | bool) or (nova_glance_rbd_inuse | bool) or (nova_cinder_rbd_inuse | bool)\n  tags:\n    - always\n\n- name: Flush handlers\n  ansible.builtin.meta: flush_handlers\n\n- name: Importing nova_compute_wait tasks\n  ansible.builtin.import_tasks: nova_compute_wait.yml\n  when:\n    - \"nova_services['nova-compute']['group'] in group_names\"\n    - \"nova_discover_hosts_in_cells_interval | int < 1\"\n  vars:\n    compute_host_to_wait_for: \"{{ ansible_facts['nodename'] }}\"\n  tags:\n    - nova-config\n","created":"2025-12-15T10:19:19.191353Z","updated":"2025-12-15T10:19:19.191416Z","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible-os_nova/tasks/main.yml"}