Commit 72beb03
committed
Reset Kolla namespace to kolla when upgrading stable to current
When a stable release is deployed, the Kolla docker_namespace is set to
kolla/release/<openstack_version> (>= 10.0.0) or kolla/release. When the
testbed is then updated/upgraded to current (latest), this namespace must
be reset to kolla again, otherwise image pulls fail with e.g.
artifact kolla/release/2025.1/fluentd:2025.1 not found
The previous logic in upgrade-manager.sh derived the namespace from the
KOLLA_NAMESPACE parameter passed by the playbook (guarded on
== "kolla/release") and never reset it to kolla for the latest target:
- update-stable.yml passes "kolla", but it was only set without --sync and
never synced, so the stale kolla/release/<version> stayed active.
- upgrade-stable.yml passes "kolla/release", which for a latest target
produced kolla/release/<version> instead of kolla.
Derive the namespace from the target manager version instead (mirroring
deploy/000-manager.sh) and always apply it with --sync:
- latest -> kolla
- stable >= 10.0.0 -> kolla/release/<openstack_version>
- stable < 10.0.0 -> kolla/release
This fixes testbed-update-stable-current-ubuntu-24.04 and
testbed-upgrade-stable-next-ubuntu-24.04 without changing the behaviour of
the stable-to-stable upgrade/update jobs.
Assisted-By: Claude:claude-opus-4-8
Signed-off-by: Christian Berendt <berendt@osism.tech>1 parent 49c31c8 commit 72beb03
2 files changed
Lines changed: 24 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
| 267 | + | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
0 commit comments