++ openstack compute service list -f value ++ grep -v nova-compute ++ grep down /var/lib/openstack/lib/python3.10/site-packages/munch/__init__.py:24: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources ++ true + DISABLED_SVC= + '[' '!' -z '' ']' ++ sort ++ openstack compute service list -f value -c Binary ++ grep -v '^nova-compute$' ++ uniq /var/lib/openstack/lib/python3.10/site-packages/munch/__init__.py:24: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources + 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' /var/lib/openstack/lib/python3.10/site-packages/munch/__init__.py:24: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources + 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' /var/lib/openstack/lib/python3.10/site-packages/munch/__init__.py:24: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources + DEAD_SERVICE_IDS=