Skip to content

Commit 06c9f3d

Browse files
authored
Merge pull request #680 from stackhpc/upstream/2024.1-2025-02-03
Synchronise 2024.1 with upstream
2 parents b4b9138 + c39e0e1 commit 06c9f3d

File tree

12 files changed

+81
-7
lines changed

12 files changed

+81
-7
lines changed

ansible/roles/cinder/templates/cinder.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,5 @@ backend_url = {{ redis_connection_string }}
264264
# and https://review.opendev.org/466098 for details
265265
# NOTE(jan.gutter): etcd v3.4 removed the default `v3alpha` api_version. Until
266266
# tooz defaults to a newer version, we should explicitly specify `v3`
267-
backend_url = etcd3+{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ etcd_client_port }}?api_version=v3{% if openstack_cacert %}?ca_cert={{ openstack_cacert }}{% endif %}
267+
backend_url = etcd3+{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ etcd_client_port }}?api_version=v3{% if openstack_cacert %}&ca_cert={{ openstack_cacert }}{% endif %}
268268
{% endif %}

ansible/roles/common/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ fluentd_input_openstack_services:
183183
enabled: "{{ enable_nova | bool }}"
184184
- name: octavia
185185
enabled: "{{ enable_octavia | bool }}"
186+
- name: placement
187+
enabled: "{{ enable_placement | bool }}"
186188
- name: tacker
187189
enabled: "{{ enable_tacker | bool }}"
188190
- name: trove

ansible/roles/placement/templates/placement-api-wsgi.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ LogLevel info
2828
<IfVersion >= 2.4>
2929
ErrorLogFormat "%{cu}t %M"
3030
</IfVersion>
31-
ErrorLog "{{ log_dir }}/placement-api.log"
31+
ErrorLog "{{ log_dir }}/placement-api-error.log"
3232
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
3333
CustomLog "{{ log_dir }}/placement-api-access.log" logformat
3434
<Directory {{ wsgi_directory }}>

doc/source/admin/mariadb-backup-and-restore.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ following options on the first database node:
8383
8484
docker run --rm -it --volumes-from mariadb --name dbrestore \
8585
--volume mariadb_backup:/backup \
86-
quay.io/openstack.kolla/centos-source-mariadb-server:|KOLLA_OPENSTACK_RELEASE| \
86+
quay.io/openstack.kolla/mariadb-server:|KOLLA_OPENSTACK_RELEASE|-rocky-9 \
8787
/bin/bash
8888
(dbrestore) $ cd /backup
8989
(dbrestore) $ rm -rf /backup/restore
@@ -105,7 +105,7 @@ place, again on the first node:
105105
106106
docker run --rm -it --volumes-from mariadb --name dbrestore \
107107
--volume mariadb_backup:/backup \
108-
quay.io/openstack.kolla/centos-source-mariadb-server:|KOLLA_OPENSTACK_RELEASE| \
108+
quay.io/openstack.kolla/mariadb-server:|KOLLA_OPENSTACK_RELEASE|-rocky-9 \
109109
/bin/bash
110110
(dbrestore) $ rm -rf /var/lib/mysql/*
111111
(dbrestore) $ rm -rf /var/lib/mysql/\.[^\.]*
@@ -148,7 +148,7 @@ incremental backup,
148148
149149
docker run --rm -it --volumes-from mariadb --name dbrestore \
150150
--volume mariadb_backup:/backup --tmpfs /backup/restore \
151-
quay.io/openstack.kolla/centos-source-mariadb-server:|KOLLA_OPENSTACK_RELEASE| \
151+
quay.io/openstack.kolla/mariadb-server:|KOLLA_OPENSTACK_RELEASE|-rocky-9 \
152152
/bin/bash
153153
(dbrestore) $ cd /backup
154154
(dbrestore) $ rm -rf /backup/restore

lint-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bandit>=1.1.0 # Apache-2.0
44
bashate>=0.5.1 # Apache-2.0
55
codespell<2.3.0 # GPLv2
66
doc8>=0.6.0 # Apache-2.0
7-
hacking>=3.0.1,<3.1.0 # Apache-2.0
7+
hacking>=3.0.1 # Apache-2.0
8+
pycodestyle>=2.11.0 # MIT
89
reno>=3.1.0 # Apache-2.0
910
yamllint>=1.22.0 #GPL3
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes Apache and placement writing to the same log file.
5+
Apache placement VirtualHost ErrorLog has been renamed to
6+
``placement-api-error.log`` (similar to other services).
7+
`LP#[2095607] <https://launchpad.net/bugs/2095607>`__
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes a bug where the etcd3gw ``backend_url`` in cinder.conf would be
5+
invalid when ``openstack_cacert`` was set.
6+
`LP#2085908 <https://bugs.launchpad.net/kolla-ansible/+bug/2085908>`__

tests/templates/globals-default.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ network_address_family: "{{ address_family }}"
1111
kolla_container_engine: "{{ container_engine }}"
1212
docker_restart_policy: "no"
1313

14+
docker_apt_url: "http://{{ zuul_site_mirror_fqdn }}:8080/docker/{{ ansible_facts.distribution | lower }}"
15+
docker_yum_url: "http://{{ zuul_site_mirror_fqdn }}:8080/docker/centos"
16+
1417
{% if container_engine == 'podman' %}
1518
podman_debug: true
1619
podman_registry_mirrors:
@@ -244,7 +247,7 @@ horizon_external_fqdn: "horizon.external"
244247
keystone_external_fqdn: "keystone.external"
245248
neutron_external_fqdn: "neutron.external"
246249
nova_external_fqdn: "nova.external"
247-
nova_novncproxy_external_fqdn: "novncproxy.external"
250+
nova_novncproxy_fqdn: "novncproxy.external"
248251
placement_external_fqdn: "placement.external"
249252
{% endif %}
250253

tests/test-core-openstack.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,17 @@ function test_internal_dns_integration {
447447
openstack server create --image cirros --flavor m1.tiny --network dns-test-network ${SERVER_NAME}
448448

449449
SERVER_ID=$(openstack server show ${SERVER_NAME} -f value -c id)
450+
attempt=0
451+
while [[ -z $(openstack port list --device-id ${SERVER_ID} -f value -c ID) ]]; do
452+
echo "Port for server ${SERVER_NAME} not available yet"
453+
attempt=$((attempt+1))
454+
if [[ $attempt -eq 10 ]]; then
455+
echo "ERROR: Port for server ${SERVER_NAME} failed to become available"
456+
openstack port list --device-id ${SERVER_ID}
457+
return 1
458+
fi
459+
sleep $attempt
460+
done
450461
PORT_ID=$(openstack port list --device-id ${SERVER_ID} -f value -c ID)
451462

452463
DNS_ASSIGNMENT=$(openstack port show ${PORT_ID} -f json -c dns_assignment)

tests/test-magnum.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ function test_designate {
6161
openstack server create --image cirros --flavor m1.tiny --network tenant-dns-test ${SERVER_NAME}
6262

6363
SERVER_ID=$(openstack server show ${SERVER_NAME} -f value -c id)
64+
attempt=0
65+
while [[ -z $(openstack port list --device-id ${SERVER_ID} -f value -c ID) ]]; do
66+
echo "Port for server ${SERVER_NAME} not available yet"
67+
attempt=$((attempt+1))
68+
if [[ $attempt -eq 10 ]]; then
69+
echo "ERROR: Port for server ${SERVER_NAME} failed to become available"
70+
openstack port list --device-id ${SERVER_ID}
71+
return 1
72+
fi
73+
sleep $attempt
74+
done
6475
PORT_ID=$(openstack port list --device-id ${SERVER_ID} -f value -c ID)
6576

6677
openstack floating ip create public1 --port ${PORT_ID}

0 commit comments

Comments
 (0)