mirror of
https://github.com/optim-enterprises-bv/openstack-helm.git
synced 2025-12-26 01:37:15 +00:00
Add sudo to docker log command
There are two spots where docker log is run without sudo, and without sudo the command will usually fail and the loop will never be exited. This would only be hit on an error. Change-Id: I4335783478ad2583b581bd9264b029e929bfc8c3
This commit is contained in:
@@ -66,7 +66,7 @@ while true; do
|
||||
now=$(date +%s)
|
||||
[ $now -gt $end ] && \
|
||||
echo "KubeADM did not generate kubectl config in time" && \
|
||||
docker logs kubeadm-aio && exit -1
|
||||
sudo docker logs kubeadm-aio && exit -1
|
||||
done
|
||||
set -x
|
||||
|
||||
@@ -85,7 +85,7 @@ while true; do
|
||||
now=$(date +%s)
|
||||
[ $now -gt $end ] && \
|
||||
echo "Kube node did not register as ready in time" && \
|
||||
docker logs kubeadm-aio && exit -1
|
||||
sudo docker logs kubeadm-aio && exit -1
|
||||
done
|
||||
set -x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user