++ openstack compute service list -f value ++ grep -v nova-compute ++ grep down Could not load 'reservation_host_unset': module 'blazarclient.v1.shell_commands.hosts' has no attribute 'UnsetAttributeHost' ++ true + DISABLED_SVC= + '[' '!' -z '' ']' ++ openstack compute service list -f value -c Binary ++ sort ++ uniq ++ grep -v '^nova-compute$' Could not load 'reservation_host_unset': module 'blazarclient.v1.shell_commands.hosts' has no attribute 'UnsetAttributeHost' + NOVA_SERVICES_TO_CLEAN='nova-conductor nova-scheduler' + for NOVA_SERVICE in ${NOVA_SERVICES_TO_CLEAN} ++ openstack compute service list --service nova-conductor -f json ++ jq -r '.[] | select(.State == "down") | .ID' Could not load 'reservation_host_unset': module 'blazarclient.v1.shell_commands.hosts' has no attribute 'UnsetAttributeHost' + DEAD_SERVICE_IDS= + for NOVA_SERVICE in ${NOVA_SERVICES_TO_CLEAN} ++ openstack compute service list --service nova-scheduler -f json ++ jq -r '.[] | select(.State == "down") | .ID' Could not load 'reservation_host_unset': module 'blazarclient.v1.shell_commands.hosts' has no attribute 'UnsetAttributeHost' + DEAD_SERVICE_IDS=