Commit e8ade2d
committed
Merge pull request #662 from manuiiit/pull-14
CLOUDSTACK-8711: public_ip type resource count for an account is not decremented upon IP range deletionProblem:
--------------------------
When you add an IP range and associate it to an account then resource count of public_ip will be updated to the range length.
After some time try to delete this range and the resource count of public_up for this account is not descremented and is causing account not to add any more public IPs to it once it reaches the resource limit.
RCA:
----------------
We were not decrement the count while deleting the IP range that was associated to an account.
Fix:
-------------
Up on deletion we are decrementing the resource count for public_up now.
* pr/662:
Bug-Id: CS-27335: public_ip type resource count for an account is not decremented upon IP range deletion
Signed-off-by: Remi Bergsma <github@remi.nl>1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3312 | 3312 | | |
3313 | 3313 | | |
3314 | 3314 | | |
| 3315 | + | |
3315 | 3316 | | |
3316 | 3317 | | |
3317 | 3318 | | |
| |||
3338 | 3339 | | |
3339 | 3340 | | |
3340 | 3341 | | |
3341 | | - | |
| 3342 | + | |
3342 | 3343 | | |
3343 | 3344 | | |
3344 | 3345 | | |
3345 | 3346 | | |
3346 | 3347 | | |
3347 | 3348 | | |
| 3349 | + | |
3348 | 3350 | | |
3349 | 3351 | | |
3350 | 3352 | | |
3351 | 3353 | | |
3352 | 3354 | | |
3353 | 3355 | | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
3354 | 3359 | | |
3355 | 3360 | | |
3356 | 3361 | | |
| |||
0 commit comments