apache / cloudstack

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

Support Bulk Operation for Instance Lifecycle #9041

Open btzq opened 3 months ago

btzq commented 3 months ago
ISSUE TYPE
COMPONENT NAME
Instance Lifecycle
CLOUDSTACK VERSION
N/A
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

As an Admin, if i have a need to use Instance Lifecycle Operations, 95% of the time, it is for a group of VMs with similar natures.

Right now, the implementation of the 'Schedule Lifecycle Operations' feature is done on a per vm basis.

This means, user needs to go to each VM individually, and configure a scheduler. In this case, if i have 100 VMs that needs to have a scheduled restart, id have to manually configure it 100 times, the same settings.

Its because of this, i personally use Ansible + Semaphore with a cron job to achieve this, and not the schedule feature in cloudstack.

As a feature request, i would like to request to enhance VMs in a 'Instance Group' to be allowed to share the same scheduled job. That way, as a user, it would be much more easier to use, manage and troubleshoot.

STEPS TO REPRODUCE
None
EXPECTED RESULTS
Able to Bulk Operate a VM Schedule job using Instance Groups
ACTUAL RESULTS
User needs to go to each VM individually, and configure a scheduler
rohityadavcloud commented 3 months ago

Beyond a scale, it's more advisable to use automation and CLI/API tools, the UI may not be able to solve all scalability/automation requirements.

DaanHoogland commented 1 month ago

maybe this should be implemented on instance groups?

btzq commented 1 month ago

@DaanHoogland that sounds like a good use of Instance Groups. But for it to be convenient, we need to:

DaanHoogland commented 1 month ago

Yes @btzq , I agree on both