{"id":365,"sha1":"e9d7f5931e9bc6aa9cb623c9e0539577dd9862bd","playbook":{"id":3,"items":{"plays":37,"tasks":567,"results":554,"hosts":7,"files":221,"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-infrastructure.yml"]},"labels":[{"id":1,"name":"check:False"},{"id":2,"name":"tags:all"}],"started":"2025-12-14T10:15:01.440414Z","ended":"2025-12-14T10:21:34.655502Z","duration":"00:06:33.215088","name":null,"ansible_version":"2.18.6","client_version":"1.7.4","python_version":"3.13.5","server_version":"1.7.4","status":"completed","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible/playbooks/setup-infrastructure.yml","controller":"aio1.openstack.local","user":"root"},"content":"---\n# Copyright 2022, BBC R&D.\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# NOTE: When first establishing a peer relationship, a reverse DNS lookup happens which can cause a\n#       peer's active hostname not to match the one stored on disk. Restarting the service resolves\n#       this and prevents failures upon calls to create volumes.\n- name: Find existing peers' runtime hostnames\n  ansible.builtin.shell: \"gluster peer status | grep Hostname: | cut -d ' ' -f 2\"\n  changed_when: false\n  register: _existing_peer_hostnames\n  when: (glusterfs_server_cluster_members | length) > 1\n\n- name: Restart glusterfs server\n  ansible.builtin.service:\n    name: \"{{ glusterfs_server_service }}\"\n    state: restarted\n  when:\n    - _existing_peer_hostnames is not skipped\n    - ((_existing_peer_hostnames.stdout_lines | intersect(glusterfs_server_cluster_members)) | length) != (_existing_peer_hostnames.stdout_lines | length)\n\n# Retry as the service may have just restarted\n- name: Create gluster volume\n  vars:\n    num_cluster_members: \"{{ glusterfs_server_cluster_members | length }}\"\n    cluster_has_replicas: \"{{ (glusterfs_server_cluster_members | length) > 1 }}\"\n  gluster.gluster.gluster_volume:\n    state: present\n    name: \"{{ glusterfs_server_volume_name }}\"\n    bricks: \"{{ glusterfs_server_bricks }}\"\n    replicas: \"{{ cluster_has_replicas | ternary(num_cluster_members, omit) }}\"\n    cluster: \"{{ glusterfs_server_cluster_members | map('regex_replace', '_', '-') | list }}\"\n    force: true\n  register: _volume_create\n  delay: 1\n  retries: 5\n  until: _volume_create is success\n","created":"2025-12-14T10:16:24.424563Z","updated":"2025-12-14T10:16:24.424575Z","path":"/etc/ansible/ansible_collections/openstack/osa/roles/glusterfs/tasks/glusterfs_post_install_brick.yml"}