Skip to content

Commit

Permalink
Merge pull request #1115 from marquiz/devel/debian-fix
Browse files Browse the repository at this point in the history
e2e: fixes to debian-sid
  • Loading branch information
klihub authored Sep 6, 2024
2 parents e75a047 + 0ea12a4 commit 9055c2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion demo/lib/distro.bash
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ debian-install-crio-pre() {
debian-install-k8s() {
local _k8s=$k8s
debian-refresh-pkg-db
debian-install-pkg apt-transport-https curl
debian-install-pkg gpg apt-transport-https curl

if [[ -z "$k8s" ]] || [[ "$k8s" == "latest" ]]; then
vm-command "curl -s https://api.github.com/repos/kubernetes/kubernetes/releases/latest | grep tag_name | sed -e 's/.*v\([0-9]\+\.[0-9]\+\).*/\1/g'"
Expand Down Expand Up @@ -314,6 +314,10 @@ debian-env-file-dir() {
echo "/etc/default"
}

debian-sid-govm-env() {
echo "DISABLE_VGA=N"
}

###########################################################################

#
Expand Down
5 changes: 4 additions & 1 deletion demo/lib/host.bash
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ host-wait-vm-ssh-server() {
host-wait-cloud-init() {
retries=60
retries_left=$retries
while ! $SSH -o ConnectTimeout=2 ${VM_SSH_USER}@${VM_IP} sudo cloud-init status --wait 2>/dev/null; do
while true; do
$SSH -o ConnectTimeout=2 ${VM_SSH_USER}@${VM_IP} sudo cloud-init status --wait 2>/dev/null
[ "$?" -eq 0 -o "$?" -eq 2 ] && break

if [ "$retries" == "$retries_left" ]; then
echo -n "Waiting for VM cloud-init to finish..."
fi
Expand Down

0 comments on commit 9055c2f

Please sign in to comment.