Skip to content

Commit 38ff19e

Browse files
authored
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. ```
1 parent ef27027 commit 38ff19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/kayobe/ansible/rabbitmq-reset.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@
6868
# The following services use RabbitMQ.
6969
- name: Restart OpenStack services
7070
shell: >-
71-
systemctl -a | egrep '(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' | awk '{ print $1 }' | xargs systemctl restart
71+
systemctl -a | egrep '(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova_|octavia)' | awk '{ print $1 }' | xargs systemctl restart

0 commit comments

Comments
 (0)