In order to be able to perform some actions on VMs like on physical hosts (for example when decommissioning), some improvement is needed in the Netbox and Ganeti support in Spicerack.
Namely:
- given a FQDN an easy way to get if the host is physical or virtual (ganeti). We could do that with a cumin query, but seems more correct to get the info from Netbox probably.
- given a FQDN of a Ganeti VM get the Ganeti cluster it belongs (that in turn would allow to perform Ganeti CLI actions). This should probably come from Netbox.
- evaluate if we should support also FQDNs in the Netbox module transparently in addition to hostnames
- [optional] evaluate the possibility to expose some GanetiCLI object from the ganeti spicerack interface to allow to perform gnt commands directly on the right master host.