Commit d2cd4a7
committed
Fix SSA field owner mismatch in serverTo{Port,Volume}MapFunc
serverToPortMapFunc and serverToVolumeMapFunc patch the Progressing
condition using GetSSAFieldOwner(controllerName) (e.g.
"openstack.k-orc.cloud/portcontroller"), but the generic reconciler's
UpdateStatus uses GetSSAFieldOwnerWithTxn(controllerName,
SSATransactionStatus) (e.g. "openstack.k-orc.cloud/portcontroller/status").
Because both use ForceOwnership, the last writer wins. When the
controller's own UpdateStatus (Progressing=False) runs after the
mapFunc's patch (Progressing=True), the signal is lost and the
resource is never re-fetched from OpenStack.
Use the same SSA field owner as UpdateStatus so the two writes don't
compete over field ownership.
Closes: #8421 parent 95c906a commit d2cd4a7
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
0 commit comments