RedHatOfficial / miq-RedHat-Satellite6

ManageIQ Automate Domain for integrating with Red Hat Satellite 6 developed by Red Hat Consulting.
GNU General Public License v3.0
18 stars 7 forks source link

Add CheckStopped before CheckPreRetirement #26

Closed henrygrover closed 6 years ago

henrygrover commented 6 years ago

Prevents VMs from ending up in a broken state if VMware returns "unknown" as the status during retirement

itewk commented 6 years ago

@henrygrover this could have been simpler by just updating the Infrastructure/VM/Retirement/StateMachines/VMRetirement schema to add two more states PowerOff and CheckPowerOff which would call the out of the box methods by those names. But I ended up going with https://github.com/rhtconsulting/miq-Utilities/issues/38 instead because the vm.refresh will help.