[
https://issues.apache.org/jira/browse/CLOUDSTACK-8711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14659752#comment-14659752
]
ASF GitHub Bot commented on CLOUDSTACK-8711:
--------------------------------------------
GitHub user manuiiit opened a pull request:
https://github.com/apache/cloudstack/pull/662
CLOUDSTACK-8711: public_ip type resource count for an account is not
decremented upon IP range deletion
Probleam:
--------------------------
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/manuiiit/cloudstack pull-14
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/662.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #662
----
commit 865623fd1edd0d2a5adb9c6be2cd9c9eab9b32db
Author: Damodar <[email protected]>
Date: 2014-11-18T11:42:28Z
Bug-Id: CS-27335: public_ip type resource count for an account is not
decremented upon IP range deletion
Reviewed-By: Kishan/Bharat
Signed-off-by: Maneesha.P <[email protected]>
----
> public_ip type resource count for an account is not decremented upon IP range
> deletion
> --------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-8711
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8711
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.5.1
> Reporter: Maneesha
> Fix For: 4.6.0
>
>
> When deleting the IP range which is associated to an account the resource
> count for public_ip is not decremented accordingly which is causing not to
> add any new ranges to that account further once we reach max limit.
> Repro Steps.
> ---------------------
> 1. Add an IP range and associate it to a particular account. This will
> increment your resource count for public_ip to that range count.
> 2. Now try to delete this range and check the resource count for public_ip of
> that account. it will not be decreased.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)