[ https://issues.apache.org/jira/browse/CLOUDSTACK-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697038#comment-13697038 ]
ASF subversion and git services commented on CLOUDSTACK-3189: ------------------------------------------------------------- Commit 301c91c099957b77dd1127484446f9fe69b53e39 in branch refs/heads/master from [~sanjay.tripathi] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=301c91c ] CLOUDSTACK-3189: Primary storage usage is not getting decremented after deleting the DATA volumes. When a volume is created the resource usage for it gets incremented. If it is deleted without being attached to a volume, the decrement doesn't take place. Fixed the delete volume code to decrement resource usage for a volume in allocated state too. > Primary storage usage is not getting decremented after deleting the DATA > volumes > --------------------------------------------------------------------------------- > > Key: CLOUDSTACK-3189 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3189 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Storage Controller > Affects Versions: 4.2.0 > Reporter: Sailaja Mada > Assignee: Sanjay Tripathi > Priority: Blocker > Fix For: 4.2.0 > > > Steps: > 1. Deploy instance using user account > 2. Add new DATA volume > 3. List Primary storage usage using listAccounts - It has all the usage > details > 4. Delete the DATA volume > 5. Tried to get the Primary storage usage using listAccounts > Observation : > Primary storage usage is not getting decremented after deleting the DATA > volumes . > 1. Two instances with 2 GB each + 1 DATA volume of 5 GB ( Total 9GB) > <primarystoragelimit>200</primarystoragelimit> > <primarystoragetotal>9</primarystoragetotal> > <primarystorageavailable>191</primarystorageavailable> > 2. Delete DATA Volume of 5 GB and Instance ROOT of 2 GB ( Total 7 GB should > have got decremented (198 GB) . But its decremented only for the ROOT volume > of 2 GB and not for DATA volume. (193 GB) > <primarystoragelimit>200</primarystoragelimit> > <primarystoragetotal>7</primarystoragetotal> > <primarystorageavailable>193</primarystorageavailable> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira