]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
project config: improving deps installation script stability
authorRedouane Kachach <rkachach@redhat.com>
Fri, 12 Jan 2024 12:26:19 +0000 (13:26 +0100)
committerRedouane Kachach <rkachach@redhat.com>
Thu, 25 Jan 2024 09:26:37 +0000 (10:26 +0100)
Fixes: https://tracker.ceph.com/issues/64013
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
scripts/rook-orch/install-rook-e2e-deps.sh

index bab217576e2b431a0fb02ee8e9faec332323b53f..243d2637cb3da9c47b8ac480bebcf1a78ef8ff3e 100644 (file)
@@ -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