hep-gc / cloud-scheduler

Automatically boot VMs for your HTC jobs
http://cloudscheduler.org
Apache License 2.0
3 stars 0 forks source link

Always shut-down/shut-off prior to instance destroy. #438

Closed crlb closed 7 years ago

crlb commented 7 years ago

Change the current VM destroy process to the following three step process:

Maybe this should be a selectable option per cloud, ie. ShutoffDestroy: True/False

Justification: To provide the opportunity to run (custom) shut-down scripts. These scripts are being used in proto-type benchmarking.

mhpx commented 7 years ago

From the dashboard I see Shut Off as an option in the dropdown, but in the python-novaclient api the closest thing to that is stop()

mhpx commented 7 years ago

I'm seeing some stuff related to Hard / Soft options, but in the client code I only see that option being available for reboot and not the other operations.

mhpx commented 7 years ago

Closing since the need to run custom shutdown script no longer required.

and it would have been a weird hack to soft reboot then destroy anyways.