{"id":527,"sha1":"c93940a454004a7a9a543ef177fd51395f0244f3","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: Configure source-installed dashboards\n  ansible.builtin.include_tasks: horizon_post_install_source.yml\n  when: horizon_install_method == 'source'\n\n# NOTE(noonedeadpunk): change of ownership is required for collectstatic and compilemessages\n- name: Ensure horizon dirs are accessible by user\n  ansible.builtin.file:\n    path: \"{{ item.path }}\"\n    state: directory\n    owner: \"{{ horizon_system_user_name }}\"\n    group: \"{{ horizon_system_group_name }}\"\n    mode: \"{{ item.mode | default(omit) }}\"\n    recurse: \"{{ item.recurse | default(True) }}\"\n  with_items:\n    - { path: \"{{ horizon_lib_dir }}\", fixup: true }\n    - { path: \"/etc/openstack-dashboard\", fixup: \"{{ (ansible_facts['os_family'] | lower) == 'redhat' }}\" }\n  when: item.fixup\n\n# TODO(hwoarang): See if we can use local_settings.py from the distribution packages\n# when horizon_install_method == 'distro'\n- name: Setup Horizon config(s)\n  ansible.builtin.template:\n    src: \"{{ item.src }}\"\n    dest: \"{{ item.dest }}\"\n    owner: \"{{ item.owner | default(horizon_system_user_name) }}\"\n    group: \"{{ horizon_system_group_name }}\"\n    mode: \"{{ item.mode }}\"\n  with_items:\n    - src: \"horizon_local_settings.py.j2\"\n      dest: \"/etc/horizon/local_settings.py\"\n      mode: \"0640\"\n    - src: \"horizon-manage.py.j2\"\n      dest: \"{{ horizon_bin }}/horizon-manage.py\"\n      mode: \"0755\"\n    - src: \"80_admin_default_panel.py.j2\"\n      dest: \"{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_80_admin_default_panel.py\"\n      mode: \"0755\"\n  notify: Restart wsgi process\n\n- name: Place policy overrides\n  openstack.config_template.config_template:\n    content: \"{{ item.value }}\"\n    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/conf/{{ item.key }}_policy.yaml\"\n    owner: root\n    group: \"{{ horizon_system_group_name }}\"\n    mode: \"0644\"\n    config_type: yaml\n  with_dict: \"{{ horizon_policy_overrides }}\"\n\n- name: Uploading horizon custom files\n  ansible.builtin.copy:\n    src: \"{{ item.value.src }}\"\n    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/static/dashboard/{{ item.value.dest }}\"\n    mode: \"0644\"\n  with_dict: \"{{ horizon_custom_uploads | default({}) }}\"\n\n- name: Create horizon links\n  ansible.builtin.file:\n    src: \"{{ item.src }}\"\n    dest: \"{{ item.dest }}\"\n    owner: \"{{ horizon_system_user_name }}\"\n    group: \"{{ horizon_system_group_name }}\"\n    state: \"link\"\n    force: true\n  with_items:\n    - { src: \"/etc/horizon/local_settings.py\", dest: \"{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.py\" }\n\n- name: Create customization module directory\n  ansible.builtin.file:\n    path: \"{{ horizon_lib_dir }}/horizon_customization\"\n    state: directory\n    owner: \"{{ horizon_system_user_name }}\"\n    group: \"{{ horizon_system_group_name }}\"\n    mode: \"0755\"\n  when: horizon_customization_module is defined\n\n- name: Drop horizon customization module\n  ansible.builtin.template:\n    src: \"{{ horizon_customization_module }}\"\n    dest: \"{{ horizon_lib_dir }}/horizon_customization/__init__.py\"\n    owner: \"{{ horizon_system_user_name }}\"\n    group: \"{{ horizon_system_group_name }}\"\n    mode: \"0644\"\n  notify: Restart wsgi process\n  when: horizon_customization_module is defined\n\n- name: Creating horizon custom theme path\n  ansible.builtin.file:\n    path: \"{{ horizon_lib_dir }}/openstack_dashboard/{{ item.value.theme_path }}/\"\n    state: directory\n    owner: \"{{ horizon_system_user_name }}\"\n    group: \"{{ horizon_system_group_name }}\"\n    mode: \"0755\"\n  with_dict: \"{{ horizon_custom_themes }}\"\n\n- name: Drop horizon custom themes\n  ansible.builtin.unarchive:\n    src: \"{{ item.value.theme_src_archive }}\"\n    dest: \"{{ horizon_lib_dir }}/openstack_dashboard/{{ item.value.theme_path }}/\"\n    owner: \"{{ horizon_system_user_name }}\"\n    group: \"{{ horizon_system_group_name }}\"\n  with_dict: \"{{ horizon_custom_themes }}\"\n  when: item.value.theme_src_archive is defined\n  notify: Restart wsgi process\n\n- name: Collect static files\n  ansible.builtin.command: \"{{ horizon_manage }} collectstatic --noinput\"\n  become: true\n  become_user: \"{{ horizon_system_user_name }}\"\n  changed_when: false\n  notify: Restart wsgi process\n\n- name: Compress static files\n  ansible.builtin.command: \"{{ horizon_manage }} compress --force\"\n  become: true\n  become_user: \"{{ horizon_system_user_name }}\"\n  changed_when: false\n  notify: Restart wsgi process\n\n- name: Register DB session cleanup cron\n  ansible.builtin.cron:\n    name: \"Clear out expired sessions\"\n    minute: \"{{ 58 | random(seed=inventory_hostname, start=2) }}\"\n    hour: \"21\"\n    job: \"{{ horizon_manage }} clearsessions\"\n    user: \"{{ horizon_system_user_name }}\"\n    state: present\n  when: inventory_hostname == ansible_play_hosts[0]\n","created":"2025-12-08T13:57:13.779517Z","updated":"2025-12-08T13:57:13.779533Z","path":"/home/zuul/src/opendev.org/openstack/openstack-ansible-os_horizon/tasks/horizon_post_install.yml"}