Merge "Robust maas-rack readiness probe"

This commit is contained in:
Zuul 2020-02-17 15:44:21 +00:00 committed by Gerrit Code Review
commit 9acebfc2b4
2 changed files with 3 additions and 3 deletions

View File

@ -20,6 +20,7 @@ register_maas_rack() {
if maas-rack register --url="${MAAS_ENDPOINT}" --secret="${MAAS_REGION_SECRET}";
then
echo "Successfully registered with MaaS Region Controller"
touch '/tmp/maas-rack.done'
break
else
echo "Unable to register with ${MAAS_ENDPOINT}... will try again"

View File

@ -99,9 +99,8 @@ spec:
timeoutSeconds: 60
exec:
command:
- /bin/bash
- -c
- journalctl -u register-rack-controller -n 5 | grep -q 'Successfully registered with MaaS Region Controller'
- ls
- /tmp/maas-rack.done
volumeMounts:
- mountPath: /sys/fs/cgroup
name: host-sys-fs-cgroup