Execution
Date
14 Dec 2025 10:21:40 +0000
Duration
00:43:55.98
Controller
aio1.openstack.local
User
root
Versions
Ansible
2.18.6
ara
1.7.4 / 1.7.4
Python
3.13.5
Summary
13
Hosts
2438
Tasks
2413
Results
107
Plays
511
Files
0
Records
File: /home/zuul/src/opendev.org/openstack/openstack-ansible-os_neutron/tasks/neutron_install.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | --- # Copyright 2014, Rackspace US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - name: Record the installation method community.general.ini_file: dest: "/etc/ansible/facts.d/openstack_ansible.fact" section: "neutron" option: "install_method" value: "{{ neutron_install_method }}" mode: "0644" - name: Refresh local facts to ensure the neutron section is present ansible.builtin.setup: filter: ansible_local gather_subset: "!all" - name: Install neutron role packages ansible.builtin.package: name: "{{ neutron_package_list }}" state: "{{ neutron_package_state }}" policy_rc_d: "{{ (neutron_needs_openvswitch | bool and ansible_facts['pkg_mgr'] == 'apt') | ternary(101, omit) }}" update_cache: "{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary('yes', omit) }}" cache_valid_time: "{{ (ansible_facts['pkg_mgr'] == 'apt') | ternary(cache_timeout, omit) }}" register: install_packages until: install_packages is success retries: 5 delay: 2 notify: - "Restart neutron services" - "Restart provider services" - "restart ovn service" - name: Remove known problem packages ansible.builtin.package: name: "{{ item }}" state: absent register: remove_packages until: remove_packages is success retries: 5 delay: 2 with_items: "{{ neutron_remove_distro_packages }}" - name: Include FRR role for OVN BGP Agent ansible.builtin.include_role: name: frrouting apply: tags: - frrouting vars: frr_bgpd_config: "{{ neutron_frr_bgp_config }}" frr_staticd_routes: "{{ neutron_frr_staticd_routes }}" when: - neutron_ovn_bgp_enable | bool - neutron_services['neutron-ovn-bgp-agent']['group'] in group_names tags: - always # NOTE(jrosser) # ceilometer appears in u-c as is used by networking-odl stats plugin. # the new pip resolver will fail to install ceilometer if two contradictory # constraints are given which will always happen with a source install # and wheels built on the repo server. We must filter ceilometer out of u-c. # # NOTE(jrosser) # neutron itself also appears in u-c (!) as the split between neutron and # neutron-lib appears incomplete. - name: Retrieve the constraints URL ansible.builtin.uri: url: "{{ neutron_upper_constraints_url }}" return_content: true register: _u_c_contents check_mode: false - name: Install the python venv ansible.builtin.import_role: name: "python_venv_build" vars: venv_python_executable: "{{ neutron_venv_python_executable }}" venv_build_constraints: "{{ _u_c_contents.content.split('\n') | reject('match', '^(ceilometer|neutron)=') | list }}" venv_build_distro_package_list: "{{ neutron_devel_distro_packages }}" venv_install_destination_path: "{{ neutron_bin | dirname }}" venv_pip_install_args: "{{ neutron_pip_install_args }}" venv_pip_packages: "{{ neutron_venv_packages }}" venv_facts_when_changed: - section: "neutron" option: "need_db_expand" value: "True" - section: "neutron" option: "need_db_contract" value: "True" - section: "neutron" option: "venv_tag" value: "{{ neutron_venv_tag }}" when: - neutron_install_method == 'source' - ((filtered_neutron_services|length) + (uwsgi_neutron_services|length)) > 0 - name: Initialise the upgrade facts community.general.ini_file: dest: "/etc/ansible/facts.d/openstack_ansible.fact" section: neutron option: "{{ item.name }}" value: "{{ item.state }}" mode: "0644" with_items: - name: "need_db_expand" state: "True" - name: "need_db_contract" state: "True" when: (install_packages is changed) or (ansible_local is not defined) or ('openstack_ansible' not in ansible_local) or ('neutron' not in ansible_local['openstack_ansible']) or ('need_db_expand' not in ansible_local['openstack_ansible']['neutron']) or ('need_db_contract' not in ansible_local['openstack_ansible']['neutron']) - name: Ensure Open vSwitch service state is set according to node group ansible.builtin.service: name: "{{ neutron_ovs_service_name }}" state: "{{ _neutron_ovs_disabled | ternary('stopped', 'started') }}" enabled: "{{ _neutron_ovs_disabled | ternary(false, true) }}" masked: "{{ _neutron_ovs_disabled | ternary(true, omit) }}" when: neutron_needs_openvswitch | bool - name: Including neutron_apparmor tasks ansible.builtin.include_tasks: neutron_apparmor.yml when: - ansible_facts['pkg_mgr'] == 'apt' - is_metal - inventory_hostname in groups[neutron_role_project_group] |