apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.08k stars 1.11k forks source link

VM allocation on Primary Storage #8959

Open cdfgallo opened 6 months ago

cdfgallo commented 6 months ago
ISSUE TYPE
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 commented 6 months ago

@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 commented 6 months ago

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

Ty, Fabio

shwstppr commented 5 months ago

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

JoaoJandre commented 5 months ago

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 commented 4 months ago

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

nvazquez commented 2 months ago

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

JoaoJandre commented 2 months ago

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