You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix playbook failure due to invalid escaped character in service restart command
The playbook was failing when attempting to restart OpenStack services
because of an invalid escaped character in the command that lists and
restarts services. The original implementation used a shorthand
systemctl flag (-a) along with a regular expression for egrep, which led
to improper parsing and execution issues during the playbook run.
This commit replaces the shorthand with a more explicit invocation that
is confirmed to run without error:
- Uses "systemctl list-units --type=service --all --no-legend --plain"
to reliably list service units.
- Adds the "-r" flag to xargs to avoid running systemctl restart without
input, ensuring more predictable behavior.
Note: This bug may be specific to hosts running Ubuntu Jammy
0 commit comments