Restart neutron on grenade client update

During a grenade upgrade the Designate grenade plugin updates the
python-designateclient. This can cause the installation location to change
to under the /opt/stack/new path.
This patch makes sure we restart neutron q-svc after this update to make sure
it can still find the client.

Change-Id: I5ce96268cb39ae4a4a8d82a75ac192b2310455a1
This commit is contained in:
Michael Johnson 2023-03-24 21:18:11 +00:00
parent 5703810a40
commit b8ec3b450b

View File

@ -70,6 +70,12 @@ setup_develop $DESIGNATE_DIR
install_designateclient
# The designateclient may have changed location
# (/opt/stack/new/python-designateclient) so we need to restart neutron
if is_service_enabled q-svc; then
restart_service devstack@q-svc.service
fi
# calls upgrade-designate for specific release
upgrade_project designate $RUN_DIR $BASE_DEVSTACK_BRANCH $TARGET_DEVSTACK_BRANCH