Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM allocation on Primary Storage #8959

Open
cdfgallo opened this issue Apr 23, 2024 · 7 comments · May be fixed by #9564
Open

VM allocation on Primary Storage #8959

cdfgallo opened this issue Apr 23, 2024 · 7 comments · May be fixed by #9564

Comments

@cdfgallo
Copy link

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

@DaanHoogland
Copy link
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.

@cdfgallo
Copy link
Author

cdfgallo commented Apr 23, 2024

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

Ty,
Fabio

@rohityadavcloud rohityadavcloud added this to the 4.19.1.0 milestone Apr 30, 2024
@shwstppr
Copy link
Contributor

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

@JoaoJandre
Copy link
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.

@vishesh92
Copy link
Member

vishesh92 commented Jun 12, 2024

@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?

@sureshanaparti sureshanaparti modified the milestones: 4.19.1.0, 4.19.2.0 Jun 25, 2024
@nvazquez nvazquez self-assigned this Aug 21, 2024
@nvazquez
Copy link
Contributor

Hi @cdfgallo @JoaoJandre @DaanHoogland @shwstppr @vishesh92 I was investigating a bit about this issue:

  • For the first part, users are able to choose the prefered pools by overriding the root disk offering (pre-created by an admin, which can contain storage tags matching the storage pools) during the VM creation. This is already possible, what are your suggestions to extend this functionality?
  • Currently the preferred.storage.pool setting is granular to accounts, I can draft a PR changing its scope to Zone (or Cluster) and do some testing

@JoaoJandre
Copy link
Contributor

@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?

@vishesh92, @nvazquez Sorry for the delayed response, after taking a proper look at the way that the preferred.storage.pool config works, simulating it with tags is somewhat painful. I think that extending the config to zone/cluster scope is an easier approach.

@nvazquez nvazquez linked a pull request Aug 21, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Dev In Progress
Development

Successfully merging a pull request may close this issue.

8 participants