{"id":477,"sha1":"a0b88b7f3e45574de20fb483960a7c43910882a9","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: Install cinder services\n  hosts: \"{{ cinder_hosts }}\"\n  serial: \"{{ cinder_serial }}\"\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    # 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: cinder_api-back\n        haproxy_state: disabled\n      when:\n        - \"'cinder_api' in group_names\"\n        - \"groups['cinder_api'] | length > 1\"\n      tags:\n        - always\n\n    - name: Determine storage bridge IP address\n      ansible.builtin.include_role:\n        name: openstack.osa.dynamic_address_fact\n      vars:\n        network_address: \"storage_address\"\n      tags:\n        - always\n\n    - name: Configure container (cinder-volume) when lvm is in-use\n      ansible.builtin.include_role:\n        name: \"openstack.osa.{{ container_tech | default('lxc') }}_container_setup\"\n      vars:\n        extra_container_config:\n          - \"lxc.autodev=0\"\n          - \"lxc.cgroup.devices.allow=a *:* rmw\"\n          - \"lxc.mount.entry=udev dev devtmpfs defaults 0 0\"\n        extra_container_config_no_restart:\n          - \"lxc.start.order=39\"\n      when:\n        - \"not is_metal\"\n        - \"'cinder_volume' in group_names\"\n        - \"cinder_backend_lvm_inuse | bool\"\n\n    - name: Configure container (other services)\n      ansible.builtin.include_role:\n        name: \"openstack.osa.{{ container_tech | default('lxc') }}_container_setup\"\n      when:\n        - \"not is_metal\"\n        - \"not ( 'cinder_volume' in group_names and cinder_backend_lvm_inuse | bool )\"\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 volume group block device to cinder # noqa: no-changed-when\n      ansible.builtin.shell: |\n        set -o pipefail\n        {% if item.value.volume_group is defined %}\n        if [ \"$(pvdisplay | grep -B1 {{ item.value.volume_group }} | awk '/PV/ {print $3}')\" ];then\n          for device in `pvdisplay | grep -B1 {{ item.value.volume_group }} | awk '/PV/ {print $3}'`\n            do lxc-device -n {{ container_name }} add $device\n          done\n        fi\n        {% else %}\n        echo \"{{ item.key }} volume_group not defined\"\n        {% endif %}\n      args:\n        executable: /bin/bash\n      with_dict: \"{{ cinder_backends | default({}) }}\"\n      when:\n        - container_tech | default('lxc') == 'lxc'\n        - physical_host != container_name\n        - cinder_backend_lvm_inuse | bool\n      delegate_to: \"{{ physical_host }}\"\n\n    - name: Trigger udevadm # noqa: no-changed-when\n      ansible.builtin.command: udevadm trigger\n      delegate_to: \"{{ physical_host }}\"\n      when: cinder_backend_lvm_inuse | bool\n\n  roles:\n    - role: \"os_cinder\"\n      cinder_storage_address: \"{{ storage_address }}\"\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: cinder_api-back\n        haproxy_state: enabled\n      when:\n        - \"'cinder_api' in group_names\"\n        - \"groups['cinder_api'] | length > 1\"\n      tags:\n        - always\n","created":"2025-12-08T13:57:11.390684Z","updated":"2025-12-08T13:57:11.390696Z","path":"/etc/ansible/ansible_collections/openstack/osa/playbooks/common/cinder.yml"}