Github user ustcweizhou commented on the issue:
https://github.com/apache/cloudstack/pull/1857
@adwaitpatankar this is because _resourceLimitMgr.recalculateResourceCount
only recalculate the resource count on account(if accountid is set), or domain
(if accountid is not set), not both account/domain.
We have this issue before, it is fixed by replacing
_resourceLimitMgr.recalculateResourceCount with
{code}
_resourceLimitMgr.decrementResourceCount(vm.getAccountId(),
ResourceType.primary_storage, rootVol.get(0).isDisplay(), new
Long(rootVol.get(0).getSize()));
{code}
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---