File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
data/data/bootstrap/baremetal/files/usr/local/bin Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,14 @@ sudo podman run -d --net host --privileged --name ironic-api \
112
112
# The alternative would be RemainAfterExit=yes but then we lose the ability to restart if something crashes.
113
113
while true ; do
114
114
for name in ironic-api ironic-conductor ironic-inspector dnsmasq httpd mariadb; do
115
- podman ps | grep -w " $name $" || exit 1
115
+ # Note it would be nicer to use the --format option here but it breaks the go templating
116
+ # in the installer and escaping the template appears difficult
117
+ state=$( podman inspect ${name} --format {{ " {{.State.Status}}" }})
118
+ if [[ $state != " running" ]]; then
119
+ echo " ERROR: Unexpected service status for $name "
120
+ podman inspect ${name}
121
+ exit 1
122
+ fi
116
123
done
117
124
sleep 10
118
125
done
You can’t perform that action at this time.
0 commit comments