You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compute resources are not automatically released after vm stop #3482
The computing resource cannot be released after the VM is stopped. You must execute delete to release the computing resource.
After the VM is stopped, it does not consume any computing resources. We should not think that it still occupies computing resource quota (aws azure google cloud is designed in this way).
STEPS TO REPRODUCE
1. Create an account and update the following resource quotas
Instance Limits=5
CPU limits=8
Memory limits (MiB)=32G
2. Create and run two VMs under the new account:
Name=vm1,vcpu=4,ram=16
Name=vm2,vcpu-4,ram=16
3. Stoped vm1, vm2
4. Create a third VM under account (test1)
Name=vm3,vcpu=4,ram=16
EXPECTED RESULTS
vm3 can be successfully created and run
ACTUAL RESULTS
Error:
Maximum amount of resources of Type = 'cpu' for Account Name = test1 in Domain Id = 4 is exceeded: Account Resource Limit = 8, Current Account Resource Amount = 8 Requested Resource Amount = 4.
Activity
yadvr commentedon Jul 10, 2019
This is by design, perhaps a global settings can be introduced for this use case.
ustcweizhou commentedon Jul 12, 2019
@rhtyd @div8cn
we have some changes for this in 4.7.1
If nobody objects, I will work on the porting to 4.13.
DaanHoogland commentedon Jan 29, 2020
@weizhouapache @rhtyd did this make it in already? (can we close?)
yadvr commentedon Aug 12, 2020
@weizhouapache @ustcweizhou can you check and advise if we can close this? Thanks.
DaanHoogland commentedon Jan 4, 2021
@weizhouapache any update for us?
weizhouapache commentedon Jan 4, 2021
@DaanHoogland @rhtyd this should be fixed by #3760
DaanHoogland commentedon Jan 4, 2021
@div8cn can you check in 4.14?
yadvr commentedon Jan 19, 2021
Ping @div8cn can you test 4.14.0.0? Per @weizhouapache 's comment the issue has been fixed.
div8cn commentedon Jan 19, 2021
ok, I will test on 4.14 AND 4.15 this week and provide test conclusions
div8cn commentedon Jan 20, 2021
4.14.0.0 global configuration resource.count.running.vms.only It can control whether VM in stopped status performs consumption statistics
The problem has been solved