From 1528786a77ea2185246923336edc703d7cf8ba10 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Fri, 4 Feb 2022 14:48:43 +0530 Subject: [PATCH] dep: delete the network before creating it again Need to recreate the network to avoid issues like ssh ing into the environment. Fixes: https://tracker.ceph.com/issues/54131 Signed-off-by: Nizamudeen A --- scripts/dashboard/install-cephadm-e2e-deps.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dashboard/install-cephadm-e2e-deps.sh b/scripts/dashboard/install-cephadm-e2e-deps.sh index 7e4dfe1f..0764b681 100644 --- a/scripts/dashboard/install-cephadm-e2e-deps.sh +++ b/scripts/dashboard/install-cephadm-e2e-deps.sh @@ -86,5 +86,7 @@ sudo chmod +x /usr/local/bin/kcli # KCLI cleanup function can be found here: https://github.com/ceph/ceph/blob/master/src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh sudo mkdir -p /var/lib/libvirt/images/ceph-dashboard +kcli delete plan ceph -y || true +kcli delete network ceph-dashboard -y kcli create pool -p /var/lib/libvirt/images/ceph-dashboard ceph-dashboard kcli create network -c 192.168.100.0/24 ceph-dashboard -- 2.47.3