Commit e15b394
[multiple] Uniquify OSDPD names per deployment run
An OpenStackDataPlaneDeployment (OSDPD) is an immutable record of a single
deployment run. Once its Status.Deployed is true, the operator short-circuits
reconciliation with "Already deployed" and will never re-run jobs, even if
the referenced nodesets have since been updated with new content (e.g. new
SSH keys, new node config).
When ci-framework re-applies a deployment stage with oc apply and the OSDPD
already exists from a previous run, the operator ignores it. Meanwhile the
nodeset operator resets DeploymentReady=False because it detects that the
nodeset"s generation has advanced since the last deployment. This produces a
permanent deadlock: the nodeset waits for a deployment that will never run,
and the wait condition times out after 60 minutes.
The correct model is: one OSDPD per deployment *run*, not per nodeset.
Fix by auto-generating a timestamp suffix (YYYYMMDDHHMMSS) once at the
start of the first deployment stage and appending it to the name of every
OpenStackDataPlaneDeployment resource found in the kustomize build output
before applying it. The suffix is stable within a single ansible run (so
both edpm-deployment and edpm-deployment2 share the same suffix) but
differs across runs, producing names like:
edpm-deployment-20260313215236
edpm-deployment-20260314093012
Old OSDPDs are left in place as an audit trail of past runs. The operator
only acts on the new CR, so the deadlock cannot occur.
The suffix can be pinned by setting cifmw_kustomize_deploy_osdpd_suffix
explicitly (useful for idempotent re-runs of the same logical deployment).
Leave it empty (the default) for automatic timestamp generation.
Signed-off-by: Ade Lee <alee@redhat.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Made-with: Cursor1 parent d487997 commit e15b394
2 files changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
221 | 232 | | |
222 | 233 | | |
223 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
| |||
241 | 251 | | |
242 | 252 | | |
243 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
244 | 278 | | |
245 | 279 | | |
246 | 280 | | |
| |||
0 commit comments