Skip to content

Commit

Permalink
gocli: Add wait for cri-o service to be ready after proxy settings ap…
Browse files Browse the repository at this point in the history
…plied

There was previously a wait for the cri-o service to be ready[1] after
applying the docker proxy settings but this was not included with the
introduction of the opts package[2].

This can lead to kubeadm failing its preflight checks as cri-o is not ready[3]

[1] https://github.com/kubevirt/kubevirtci/blob/03aa94e9da974b0e37dc8f180a4f700d47020c08/cluster-provision/k8s/1.31/nodes.sh#L43
[2] kubevirt#1217
[3] https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/13020/pull-kubevirt-e2e-k8s-1.31-sig-network/1843292337933914112#1:build-log.txt%3A343

Signed-off-by: Brian Carey <[email protected]>
  • Loading branch information
brianmcarey committed Oct 16, 2024
1 parent 03aa94e commit 61a726f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cluster-provision/gocli/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ EOT
systemctl daemon-reload
systemctl restart crio.service
while [[ systemctl status crio | grep active | wc -l -eq 0 ]]
do
sleep 2
done
EOF
`
etcdDataDir = "/var/lib/etcd"
Expand Down

0 comments on commit 61a726f

Please sign in to comment.