Skip to content

VM allocation on Primary Storage  #8959

Description

@cdfgallo
ISSUE TYPE
  • Enhancement Request
COMPONENT NAME
Primary Storage
CLOUDSTACK VERSION
N.R.
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

There should be better management regarding resource allocation on primary storages.
This could be done by allowing the user to be able to choose the disk offering when creating a VM via template via UI (as already happens when creating a VM via API).

Also the parameter "Preferred storage pool" (preferred.storage.pool) (The UUID of preferred storage pool for allocation.) should be configurable in the Cluster or Zone settings so the admin could always choose the preferred PS for every zone. This could be very useful also during storage migrations.

STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

Activity

  1. DaanHoogland commented on Apr 23, 2024

    @DaanHoogland
    Contributor

    @cdfgallo , this sounds like more than one feature/enhancement request. Are you working on these? If not, and to enhance the chance of those getting implemented, can you split them and expand with screen shots/depiction of the desired situation.

  2. cdfgallo commented on Apr 23, 2024

    @cdfgallo
    Author

    @DaanHoogland you are right, this is an enhancement request.
    Ok, I will split them.

    Ty,
    Fabio

  3. added this to the 4.19.1.0 milestone on Apr 30, 2024
  4. shwstppr commented on May 22, 2024

    @shwstppr
    Contributor

    Not sure but could Flexible Tags functionality help in achieving a preferred pool allocation, @JoaoJandre?

  5. JoaoJandre commented on May 22, 2024

    @JoaoJandre
    Contributor

    Hello @cdfgallo @shwstppr,

    You could use flexible tags to finely choose which hosts receive which VMs and the same with storages and volumes. You can make rules to specifically allow only certain groups of tags into each host/storage. You can read a little more about tags and flexible tags in the documentation. Let me know if you do not understand the docs, and have further questions about flexible tags; I can try to answer them.

    However, if you only want preferred and not exclusive hosts/storages, regular tags would do just fine as well.

  6. vishesh92 commented on Jun 12, 2024

    @vishesh92
    Member

    @JoaoJandre I don't have much idea about flexible tags. Can you provide an example rule of how someone can use flexible tags in a way similar to preferred.storage.pool but per zone or cluster instead of an account?

  7. 21 remaining items

  8. modified the milestones: 4.22.1, 4.23.0 on Apr 23, 2026
  9. modified the milestones: 4.23.0, 4.24.0 on Jun 29, 2026
  10. nvazquez commented on Aug 12, 2026

    @nvazquez
    Contributor

    Hi @vishesh92 @DaanHoogland @JoaoJandre I can retake the work on PR #9564 after agreeing how we should proceed with this fix. As @weizhouapache has pointed out in the review, changing the scope of the existing setting may not be ideal.

    Since now we have the option to extend some settings to multiple scopes, we can do the same for this setting: https://docs.cloudstack.apache.org/en/4.22.0.0/installguide/configuration.html#granular-global-configuration-parameters. What do you think?

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

Metadata

Metadata

Assignees

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions