limes
limes copied to clipboard
fix commitment move in overcommitted AZ
I already tried to fix this in 5f75541332d84fc69f669f7eef8257673b10e1a4, but it did not go all the way. We saw this in a debug log:
DEBUG: checking CanMoveExistingCommitment in compute/ram/eu-de-1d: resourceID = 3296 -> 187489, amount = 412252
DEBUG: CanAcceptCommitmentChanges: forbidden by commitment target 24429662 > usage 23889216 in resourceID = 3296
The problem here is that committed > usage was evaluated in the project where committed shrinks, even though it is only relevant in the project where committed expands.
Checklist:
- [ ] If this PR is about a plugin, I tested the plugin against an OpenStack cluster.
- [ ] I updated the documentation to describe the semantical or interface changes I introduced.