cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Support Bulk Operation for Instance Lifecycle

Open btzq opened this issue 1 year ago • 1 comments

ISSUE TYPE
  • Feature Idea
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

btzq avatar May 06 '24 09:05 btzq

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.

rohityadavcloud avatar May 07 '24 07:05 rohityadavcloud

maybe this should be implemented on instance groups?

DaanHoogland avatar Jul 11 '24 12:07 DaanHoogland

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

  • Make the 'Group Name' of the VM available in the Instance Details Page. This is for the user to easily know, which group this VM belongs to.
  • Allow a VM to belong to multiple instance groups. This is because a VM can have slightly different lifecycle operations, inheriting schedules from multiple groups.

btzq avatar Jul 11 '24 12:07 btzq

Yes @btzq , I agree on both

DaanHoogland avatar Jul 12 '24 07:07 DaanHoogland