From 775d5d983661b5eb1f4430ece912822c3e9bbcb4 Mon Sep 17 00:00:00 2001 From: Jakub Darmach Date: Wed, 15 May 2024 09:34:01 +0200 Subject: [PATCH] Fix rabbitmq-reset.yml trying to restart wrong services Fixes egrep passed to systemctl attempting to restart other services containing nova in the name: ``` stderr: |- Failed to restart dev-disk-byx2did-dmx2dnamex2drootvgx2dlv_nova.device: Job type restart is not applicable for unit dev-disk-byx2did-dmx2dnamex2drootvgx2dlv_nova.device. Failed to restart dev-mapper-rootvgx2dlv_nova.device: Job type restart is not applicable for unit dev-mapper-rootvgx2dlv_nova.device. Failed to restart dev-rootvg-lv_nova.device: Job type restart is not applicable for unit dev-rootvg-lv_nova.device. ``` --- etc/kayobe/ansible/rabbitmq-reset.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/kayobe/ansible/rabbitmq-reset.yml b/etc/kayobe/ansible/rabbitmq-reset.yml index 82e7ee992..b068413a5 100644 --- a/etc/kayobe/ansible/rabbitmq-reset.yml +++ b/etc/kayobe/ansible/rabbitmq-reset.yml @@ -68,4 +68,4 @@ # The following services use RabbitMQ. - name: Restart OpenStack services shell: >- - systemctl -a | egrep '(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' | awk '{ print $1 }' | xargs systemctl restart + systemctl -a | egrep 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' | awk '{ print $1 }' | xargs systemctl restart