Skip to content

Commit 9671a75

Browse files
authored
Merge pull request #158 from stackhpc/sync/stable/victoria
Sync upstream stable/victoria
2 parents 1998f2e + 90bbd2b commit 9671a75

File tree

112 files changed

+493
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+493
-239
lines changed

ansible/group_vars/all.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ prometheus_node_exporter_port: "9100"
433433
prometheus_mysqld_exporter_port: "9104"
434434
prometheus_haproxy_exporter_port: "9101"
435435
prometheus_memcached_exporter_port: "9150"
436+
prometheus_rabbitmq_exporter_port: "15692"
436437
# Default cadvisor port of 8080 already in use
437438
prometheus_cadvisor_port: "18080"
438439

@@ -588,10 +589,9 @@ enable_chrony: "yes"
588589
enable_cinder: "no"
589590
enable_cinder_backup: "yes"
590591
enable_cinder_backend_hnas_nfs: "no"
591-
enable_cinder_backend_iscsi: "{{ enable_cinder_backend_lvm | bool or enable_cinder_backend_zfssa_iscsi | bool }}"
592+
enable_cinder_backend_iscsi: "{{ enable_cinder_backend_lvm | bool }}"
592593
enable_cinder_backend_lvm: "no"
593594
enable_cinder_backend_nfs: "no"
594-
enable_cinder_backend_zfssa_iscsi: "no"
595595
enable_cinder_backend_quobyte: "no"
596596
enable_cloudkitty: "no"
597597
enable_collectd: "no"
@@ -668,7 +668,7 @@ enable_neutron_port_forwarding: "no"
668668
enable_nova_serialconsole_proxy: "no"
669669
enable_nova_ssh: "yes"
670670
enable_octavia: "no"
671-
enable_octavia_driver_agent: "{{ enable_octavia | bool and neutron_plugin_agent == 'ovn' }}"
671+
enable_octavia_driver_agent: "{{ enable_octavia | bool and neutron_plugin_agent == 'ovn' and groups['octavia-driver-agent'] is defined }}"
672672
enable_openvswitch: "{{ enable_neutron | bool and neutron_plugin_agent != 'linuxbridge' }}"
673673
enable_ovn: "{{ enable_neutron | bool and neutron_plugin_agent == 'ovn' }}"
674674
enable_ovs_dpdk: "no"
@@ -1100,6 +1100,7 @@ enable_prometheus_ceph_mgr_exporter: "no"
11001100
enable_prometheus_openstack_exporter: "{{ enable_prometheus | bool }}"
11011101
enable_prometheus_elasticsearch_exporter: "{{ enable_prometheus | bool and enable_elasticsearch | bool }}"
11021102
enable_prometheus_blackbox_exporter: "{{ enable_prometheus | bool }}"
1103+
enable_prometheus_rabbitmq_exporter: "{{ enable_prometheus | bool and enable_rabbitmq | bool }}"
11031104

11041105
prometheus_alertmanager_user: "admin"
11051106
prometheus_openstack_exporter_interval: "60s"

ansible/roles/aodh/templates/aodh.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ password = {{ aodh_keystone_password }}
2828
auth_url = {{ keystone_admin_url }}
2929
auth_type = password
3030
cafile = {{ openstack_cacert }}
31+
region_name = {{ openstack_region_name }}
3132

3233
[oslo_middleware]
3334
enable_proxy_headers_parsing = True

ansible/roles/barbican/templates/barbican.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ password = {{ barbican_keystone_password }}
6464
auth_url = {{ keystone_admin_url }}
6565
auth_type = password
6666
cafile = {{ openstack_cacert }}
67+
region_name = {{ openstack_region_name }}
6768

6869
memcache_security_strategy = ENCRYPT
6970
memcache_secret_key = {{ memcache_secret_key }}

ansible/roles/baremetal/tasks/bootstrap-servers.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
- import_tasks: post-install.yml
77

88
- include_tasks: configure-containerd-for-zun.yml
9-
when: containerd_configure_for_zun|bool and
10-
inventory_hostname in groups['zun-cni-daemon']
9+
when:
10+
- containerd_configure_for_zun|bool
11+
- "'zun-cni-daemon' in group_names"

ansible/roles/baremetal/tasks/install.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@
4646
changed_when: false
4747
register: running_containers
4848

49+
# APT starts Docker engine right after installation, which creates
50+
# iptables rules before we disable iptables in Docker config
51+
52+
- name: Check if docker systemd unit exists
53+
stat:
54+
path: /etc/systemd/system/docker.service
55+
register: docker_unit_file
56+
57+
- name: Mask the docker systemd unit on Debian/Ubuntu
58+
file:
59+
src: /dev/null
60+
dest: /etc/systemd/system/docker.service
61+
owner: root
62+
group: root
63+
state: link
64+
become: true
65+
when:
66+
- ansible_os_family == 'Debian'
67+
- not docker_unit_file.stat.exists
68+
4969
- name: Install apt packages
5070
package:
5171
name: "{{ (debian_pkg_install | join(' ')).split() }}"
@@ -78,10 +98,11 @@
7898
# At some point (at least on CentOS 7) Docker CE stopped starting
7999
# automatically after an upgrade from legacy docker . Start it manually.
80100
- name: Start docker
81-
service:
101+
systemd:
82102
name: docker
83103
state: started
84104
enabled: yes
105+
masked: no
85106
become: True
86107

87108
- name: Wait for Docker to start
@@ -116,7 +137,8 @@
116137
- name: Install docker SDK for python
117138
pip:
118139
# NOTE(hrw) docker 2.4.2 is in kolla-ansible requirements
119-
name: docker>=2.4.2
140+
# NOTE(mnasiadka): docker 5.0.0 lacks six in deps but requires it
141+
name: docker>=2.4.2,<5.0.0
120142
executable: "{{ virtualenv is none | ternary('pip3', omit) }}"
121143
virtualenv: "{{ virtualenv is none | ternary(omit, virtualenv) }}"
122144
virtualenv_site_packages: "{{ virtualenv is none | ternary(omit, virtualenv_site_packages) }}"
@@ -128,7 +150,7 @@
128150
name: "{{ (ubuntu_pkg_removals | join(' ')).split() }}"
129151
state: absent
130152
become: True
131-
when: ansible_distribution|lower == "ubuntu"
153+
when: ansible_os_family == 'Debian'
132154

133155
- name: Remove packages
134156
package:

ansible/roles/baremetal/tasks/post-install.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
docker_config: "{{ docker_config | combine(docker_zun_config) }}"
6767
when:
6868
- docker_configure_for_zun | bool
69+
- "'zun-compute' in group_names"
6970

7071
- name: Warn about deprecations
7172
debug:
@@ -122,22 +123,26 @@
122123
state: absent
123124
when:
124125
- not docker_custom_option
125-
- not docker_configure_for_zun|bool
126+
- not docker_configure_for_zun | bool or 'zun-compute' not in group_names
126127

127128
- name: Ensure docker service directory exists
128129
become: True
129130
file:
130131
path: /etc/systemd/system/docker.service.d
131132
state: directory
132133
recurse: yes
133-
when: docker_custom_option | length > 0 or docker_configure_for_zun|bool
134+
when: >
135+
docker_custom_option | length > 0 or
136+
(docker_configure_for_zun | bool and 'zun-compute' in group_names)
134137
135138
- name: Configure docker service
136139
become: True
137140
template:
138141
src: docker_systemd_service.j2
139142
dest: /etc/systemd/system/docker.service.d/kolla.conf
140-
when: docker_custom_option | length > 0 or docker_configure_for_zun|bool
143+
when: >
144+
docker_custom_option | length > 0 or
145+
(docker_configure_for_zun | bool and 'zun-compute' in group_names)
141146
142147
- name: Reload docker service file
143148
become: True
@@ -189,22 +194,25 @@
189194
when: create_kolla_user | bool
190195

191196
- name: Start docker
192-
service:
197+
systemd:
193198
name: docker
194199
state: started
200+
masked: no
195201
become: True
196202

197203
- name: Restart docker
198-
service:
204+
systemd:
199205
name: docker
200206
state: restarted
207+
masked: no
201208
become: True
202209
when: docker_configured.changed or docker_reloaded.changed
203210

204211
- name: Enable docker
205-
service:
212+
systemd:
206213
name: docker
207214
enabled: yes
215+
masked: no
208216
become: True
209217

210218
- name: Stop time service

ansible/roles/baremetal/tasks/pre-install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
marker: "# {mark} ANSIBLE GENERATED HOSTS"
2929
block: |
3030
{% for host in groups['baremetal'] %}
31-
{% set api_interface = hostvars[host]['api_interface'] %}
31+
{% set api_interface = hostvars[host]['api_interface'] | replace('-', '_') %}
3232
{% if host not in groups['bifrost'] or 'ansible_' + api_interface in hostvars[host] %}
3333
{% set hostnames = [hostvars[host]['ansible_nodename'], hostvars[host]['ansible_hostname']] %}
3434
{{ 'api' | kolla_address(host) }} {{ hostnames | unique | join(' ') }}
@@ -39,7 +39,7 @@
3939
- customize_etc_hosts | bool
4040
# Skip hosts in the bifrost group that do not have a valid api_interface.
4141
- inventory_hostname not in groups['bifrost'] or
42-
'ansible_' + hostvars[inventory_hostname]['api_interface'] in hostvars[inventory_hostname]
42+
'ansible_' + hostvars[inventory_hostname]['api_interface'] | replace('-', '_') in hostvars[inventory_hostname]
4343

4444
# NOTE(osmanlicilegi): The distribution might come with cloud-init installed, and manage_etc_hosts
4545
# configuration enabled. If so, it will override the file /etc/hosts from cloud-init templates at
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[Service]
22
ExecStart=
33
# ExecStart commandline copied from 'docker-ce' package. Same on CentOS/Debian/Ubuntu systems.
4-
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock{% if docker_custom_option %} {{ docker_custom_option }}{% endif %}{% if docker_configure_for_zun|bool %} {{ docker_zun_options }}{% endif %}
4+
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock{% if docker_custom_option %} {{ docker_custom_option }}{% endif %}{% if docker_configure_for_zun|bool and 'zun-compute' in group_names %} {{ docker_zun_options }}{% endif %}

ansible/roles/blazar/templates/blazar.conf.j2

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
[DEFAULT]
22
debug = {{ blazar_logging_debug }}
3-
43
log_dir = /var/log/kolla/blazar
5-
64
transport_url = {{ rpc_transport_url }}
7-
85
host = {{ api_interface_address }}
96
port = {{ blazar_api_port }}
107
os_auth_host = {{ kolla_internal_fqdn }}
@@ -33,6 +30,7 @@ username = {{ blazar_keystone_user }}
3330
password = {{ blazar_keystone_password }}
3431
service_token_roles_required = True
3532
cafile = {{ openstack_cacert }}
33+
region_name = {{ openstack_region_name }}
3634

3735
memcache_security_strategy = ENCRYPT
3836
memcache_secret_key = {{ memcache_secret_key }}
@@ -44,13 +42,8 @@ connection_recycle_time = {{ database_connection_recycle_time }}
4442
max_pool_size = {{ database_max_pool_size }}
4543
max_retries = -1
4644

47-
[physical:host]
48-
on_start = on_start
49-
on_end = on_end
45+
[nova]
5046
aggregate_freepool_name = {{ blazar_aggregate_pool_name }}
51-
blazar_username = {{ blazar_keystone_user }}
52-
blazar_password = {{ blazar_keystone_password }}
53-
blazar_project_name = service
5447

5548
[oslo_messaging_notifications]
5649
{% if blazar_enabled_notification_topics %}

ansible/roles/chrony/templates/chrony.json.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{
55
"source": "{{ container_config_directory }}/chrony.conf",
66
"dest": "/etc/chrony/chrony.conf",
7-
"owner": "chrony",
8-
"perm": "0600"
7+
"owner": "root",
8+
"perm": "0644"
99
}
1010
],
1111
"permissions": [

0 commit comments

Comments
 (0)