“juju-verify” checks if there are running instances (via “num-instances” action)
“juju-verify” checks if this unit is the last nova-compute-kvm unit in the AZ (via “list-hypervisors” against nova-cloud-controller and “get-hostname” against nova-compute-kvm)
Note: If there are nested Juju machines (eg. containers), and nova-compute-kvm is the last unit in the host, the machine will continue running without principal units (Juju understands there are workloads running in containers/KVM and the hosting machine will not be destroyed).
Nova Compute actions required:
nova-compute: num-instances (LP#1911011)
Returns the number of instances running on a unit (it needs to be 0 to allow the removal)
nova-compute: get-hostname (LP#1911012)
Returns the hostname of the unit
nova-cloud-controller: list-hypervisors (LP#1911013)
Returns the number of “nova-compute” hypervisors (If only one hypervisor is available in the AZ (enabled), the Juju unit removal will not be allowed).
Expected behavior:
Nova Compute actions required:
Imported from Launchpad using lp2gh.
date created: 2021-01-29T09:09:53Z
owner: aluria
assignee: martin-kalcok
the launchpad url