From 8f5454258eae11d56abca0a53f8ae976723f8998 Mon Sep 17 00:00:00 2001 From: Redouane Kachach Date: Fri, 12 Jan 2024 13:26:19 +0100 Subject: [PATCH] project config: improving deps installation script stability Fixes: https://tracker.ceph.com/issues/64013 Signed-off-by: Redouane Kachach --- scripts/rook-orch/install-rook-e2e-deps.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/scripts/rook-orch/install-rook-e2e-deps.sh b/scripts/rook-orch/install-rook-e2e-deps.sh index bab21757..243d2637 100644 --- a/scripts/rook-orch/install-rook-e2e-deps.sh +++ b/scripts/rook-orch/install-rook-e2e-deps.sh @@ -15,6 +15,7 @@ install_docker(){ fi sudo groupadd docker || true sudo usermod -aG docker $(id -un) + sudo systemctl unmask docker sudo systemctl start docker sudo chgrp "$(id -un)" /var/run/docker.sock @@ -22,20 +23,17 @@ install_docker(){ docker container prune -f } -configure_libvirt(){ - sudo usermod -aG libvirt $(id -un) - sudo su -l $USER # Avoid having to log out and log in for group addition to take effect. - sudo systemctl enable --now libvirtd - sudo systemctl restart libvirtd - sleep 10 # wait some time for libvirtd service to restart -} +# delete any existing minikube setup +minikube delete + +# delete any existing libvirt socket +sudo rm -rf /var/run/libvirt/libvirt-sock # install dependencies sudo apt update -y -sudo apt install -y qemu-kvm libvirt-daemon-driver-qemu libvirt-clients libvirt-daemon-system runc python3 -sudo apt install -y python3-pip -pip3 install behave -configure_libvirt +sudo apt install --reinstall -y qemu-kvm libvirt-daemon-driver-qemu libvirt-clients libvirt-daemon-system runc python3 +sudo apt install --reinstall -y python3-pip +python -m pip install behave install_docker # install minikube -- 2.39.5