{"id":516,"sha1":"86be1da1d02057804d5efb15718d67a8e1ee2284","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: 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 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.swift is defined\n    - ansible_local.openstack_ansible.swift.install_method is defined\n    - ansible_local.openstack_ansible.swift.install_method != swift_install_method\n\n- name: Gather variables for installation method\n  ansible.builtin.include_vars: \"{{ swift_install_method }}_install.yml\"\n  tags:\n    - always\n\n# Check the swift_hash_path_* variables haven't changed\n- name: Importing swift_check_hashes tasks\n  ansible.builtin.import_tasks: swift_check_hashes.yml\n  when:\n    - \"not swift_force_change_hashes | bool\"\n  tags:\n    - swift-config\n\n- name: Importing swift_pre_install tasks\n  ansible.builtin.import_tasks: swift_pre_install.yml\n  when:\n    - \"swift_do_setup | bool\"\n    - \"'swift_all' in group_names\"\n  tags:\n    - swift-install\n\n- name: Importing swift_key_setup tasks\n  ansible.builtin.import_tasks: swift_key_setup.yml\n  when:\n    - \"swift_do_sync | bool\"\n  tags:\n    - swift-config\n\n- name: Importing swift_install tasks\n  ansible.builtin.import_tasks: swift_install.yml\n  when:\n    - \"swift_do_setup | bool\"\n    - \"'swift_all' in group_names\"\n  tags:\n    - swift-install\n\n- name: Importing swift_post_install tasks\n  ansible.builtin.import_tasks: swift_post_install.yml\n  when:\n    - \"swift_do_setup | bool\"\n    - \"'swift_all' in group_names\"\n  tags:\n    - swift-config\n    - post-install\n\n- name: Importing swift_calculate_addresses tasks\n  ansible.builtin.import_tasks: swift_calculate_addresses.yml\n  when:\n    - \"'swift_hosts' in group_names\"\n  tags:\n    - always\n\n- name: Importing swift_storage_hosts tasks\n  ansible.builtin.import_tasks: swift_storage_hosts.yml\n  when:\n    - \"swift_do_setup | bool\"\n    - \"'swift_hosts' in group_names\"\n  tags:\n    - swift-config\n\n- name: Importing swift_proxy_hosts tasks\n  ansible.builtin.import_tasks: swift_proxy_hosts.yml\n  when:\n    - \"swift_do_setup | bool\"\n    - \"'swift_proxy' in group_names\"\n  tags:\n    - swift-config\n\n- name: Importing swift_rings tasks\n  ansible.builtin.import_tasks: swift_rings.yml\n  when:\n    - \"swift_do_sync | bool\"\n  tags:\n    - swift-config\n    - swift-rings\n\n- name: Run the systemd service role\n  ansible.builtin.import_role:\n    name: systemd_service\n  vars:\n    systemd_user_name: \"{{ swift_system_user_name }}\"\n    systemd_group_name: \"{{ swift_system_group_name }}\"\n    systemd_tempd_prefix: openstack\n    systemd_slice_name: \"{{ swift_system_slice_name }}\"\n    systemd_lock_dir: \"{{ swift_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_swift_services %}\n      {%\n        set _ = service.update(\n          {\n            'enabled': 'yes',\n            'state': 'started',\n            'config_overrides': swift_service_defaults | combine(service.init_config_overrides, recursive=True)\n          }\n        )\n      %}\n      {%   set _ = service.pop('init_config_overrides') -%}\n      {%   set _ = services.append(service) -%}\n      {% endfor %}\n      {{ services }}\n  tags:\n    - swift-config\n    - systemd-service\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        - swift-config\n  when:\n    - _swift_proxy_is_first_play_host\n  vars:\n    _oslomsg_configure_notify: \"{{ swift_ceilometer_enabled | bool }}\"\n    _oslomsg_notify_setup_host: \"{{ swift_oslomsg_notify_setup_host }}\"\n    _oslomsg_notify_userid: \"{{ swift_oslomsg_notify_userid }}\"\n    _oslomsg_notify_password: \"{{ swift_oslomsg_notify_password }}\"\n    _oslomsg_notify_vhost: \"{{ swift_oslomsg_notify_vhost }}\"\n    _oslomsg_notify_transport: \"{{ swift_oslomsg_notify_transport }}\"\n    _oslomsg_notify_policies: \"{{ swift_oslomsg_notify_policies }}\"\n  tags:\n    - always\n\n- name: Including osa.service_setup roled\n  ansible.builtin.include_role:\n    name: openstack.osa.service_setup\n    apply:\n      tags:\n        - common-service\n        - swift-config\n  vars:\n    _service_adminuri_insecure: \"{{ keystone_service_adminuri_insecure }}\"\n    _service_in_ldap: \"{{ swift_service_in_ldap }}\"\n    _service_setup_host: \"{{ swift_service_setup_host }}\"\n    _service_setup_host_python_interpreter: \"{{ swift_service_setup_host_python_interpreter }}\"\n    _service_project_name: \"{{ swift_service_project_name }}\"\n    _service_region: \"{{ swift_service_region }}\"\n    _service_users:\n      - name: \"{{ swift_service_user_name }}\"\n        password: \"{{ swift_service_password }}\"\n        role: \"{{ swift_service_role_names }}\"\n      - name: \"{{ swift_dispersion_user }}\"\n        password: \"{{ swift_dispersion_password }}\"\n        role: \"{{ swift_operator_role }}\"\n      - name: \"{{ ceilometer_service_user_name | default('ceilometer') }}\"\n        role: \"{{ swift_reselleradmin_role }}\"\n        project: \"{{ ceilometer_service_project_name | default('service') }}\"\n        condition: \"{{ swift_ceilometer_enabled | bool }}\"\n    _service_endpoints:\n      - service: \"{{ swift_service_name }}\"\n        interface: \"public\"\n        url: \"{{ swift_service_publicurl }}\"\n      - service: \"{{ swift_service_name }}\"\n        interface: \"internal\"\n        url: \"{{ swift_service_internalurl }}\"\n      - service: \"{{ swift_service_name }}\"\n        interface: \"admin\"\n        url: \"{{ swift_service_adminurl }}\"\n    _service_catalog:\n      - name: \"{{ swift_service_name }}\"\n        type: \"{{ swift_service_type }}\"\n        description: \"{{ swift_service_description }}\"\n  when:\n    - \"swift_do_setup | bool\"\n    - '\"keystoneauth\" in swift_middleware_list'\n    - _swift_proxy_is_first_play_host\n  tags:\n    - always\n\n- name: Flush handlers\n  ansible.builtin.meta: flush_handlers\n","created":"2025-12-08T13:40:01.109086Z","updated":"2025-12-08T13:40:01.109115Z","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible-os_swift/tasks/main.yml"}