Skip to content

Compute resources are not automatically released after vm stop #3482

Closed

Description

@div8cn
ISSUE TYPE
  • Improvement Request
COMPONENT NAME
Management Server
Usage Server
CLOUDSTACK VERSION
4.9/4.11/4.11.2/4.11.3
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

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

  1. yadvr commented on Jul 10, 2019

    @yadvr
    Member

    This is by design, perhaps a global settings can be introduced for this use case.

  2. ustcweizhou commented on Jul 12, 2019

    @ustcweizhou
    Contributor

    @rhtyd @div8cn
    we have some changes for this in 4.7.1
    If nobody objects, I will work on the porting to 4.13.

  3. DaanHoogland commented on Jan 29, 2020

    @DaanHoogland
    Contributor

    @weizhouapache @rhtyd did this make it in already? (can we close?)

  4. yadvr commented on Aug 12, 2020

    @yadvr
    Member

    @weizhouapache @ustcweizhou can you check and advise if we can close this? Thanks.

  5. added this to the 4.16.0.0 milestone on Jan 4, 2021
  6. DaanHoogland commented on Jan 4, 2021

    @DaanHoogland
    Contributor

    @weizhouapache any update for us?

  7. weizhouapache commented on Jan 4, 2021

    @weizhouapache
    Member

    @DaanHoogland @rhtyd this should be fixed by #3760

  8. modified the milestones: 4.16.0.0, 4.14.1.0 on Jan 4, 2021
  9. DaanHoogland commented on Jan 4, 2021

    @DaanHoogland
    Contributor

    @div8cn can you check in 4.14?

  10. yadvr commented on Jan 19, 2021

    @yadvr
    Member

    Ping @div8cn can you test 4.14.0.0? Per @weizhouapache 's comment the issue has been fixed.

  11. div8cn commented on Jan 19, 2021

    @div8cn
    ContributorAuthor

    ok, I will test on 4.14 AND 4.15 this week and provide test conclusions

  12. div8cn commented on Jan 20, 2021

    @div8cn
    ContributorAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions