ScaleComputing / HyperCoreAnsibleCollection

Official Ansible collection for Scale Computing SC//HyperCore (HC3) v1 API
GNU General Public License v3.0
12 stars 8 forks source link

Shutdown tagged vms #218

Closed justinc1 closed 1 year ago

justinc1 commented 1 year ago

We already had a role with taskfile shutdown_vms to shutdown all VMs. This is used to shutdown all VMs in a single node cluster before version upgrade, and to start them back after upgrade.

The PR extended shutdown_vms with option to shutdown only some VMs. VM tag is used to decide if VM needs to be shutdown. This will be used during multinode cluster version upgrade to shutdown VMs than should not be live-migrated to another node. See also #198.

Integration test in https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4799944517