Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions etc/kayobe/ansible/rabbitmq-reset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ansible.builtin.shell:
cmd: >-
set -o pipefail &&
systemctl -a | egrep 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
systemctl -a | grep -E 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
awk '{ print $NF }' |
xargs systemctl stop
executable: "/bin/bash"
Expand Down Expand Up @@ -87,7 +87,7 @@
cmd: >-
set -o pipefail &&
systemctl list-units --type=service --all --no-legend --plain |
egrep 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
grep -E 'kolla-(barbican|blazar|cinder|cloudkitty|designate|heat|ironic|keystone|magnum|manila|neutron|nova|octavia)' |
awk '{ print $1 }' |
xargs -r systemctl restart
executable: "/bin/bash"
2 changes: 1 addition & 1 deletion etc/kayobe/ansible/stop-openstack-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
executable: "/bin/bash"
cmd: >-
set -o pipefail &&
systemctl -a | egrep 'kolla-({{ stop_service_list | join('|') }})' | awk '{ print $1 }' | xargs systemctl stop
systemctl -a | grep -E 'kolla-({{ stop_service_list | join('|') }})' | awk '{ print $1 }' | xargs systemctl stop
6 changes: 6 additions & 0 deletions releasenotes/notes/remove-egrep-bf2184856b46532b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Removed ``egrep`` usage from scripts. Instances have been replaced with
``grep -E``. This resolves the warning ``egrep: warning: egrep is
obsolescent; using grep -E``.
Loading