Skip to content

Commit

Permalink
test/suites: Delete unused instance in between checks
Browse files Browse the repository at this point in the history
This is to accommodate the github runners running out of space

Signed-off-by: Max Asnaashari <[email protected]>
(cherry picked from commit 59b80a4)
  • Loading branch information
masnax authored and roosterfish committed Jan 29, 2025
1 parent e173324 commit abac07a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/suites/instances.sh
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,12 @@ EOF
check_instance_connectivity "c1" "c2" "0"
check_instance_connectivity "v1" "c1" "1"

# We're done with c2 so we can delete it now, and free up space on the runners for more instances.
lxc exec micro01 -- lxc delete c2 -f

# Flush the neighbour cache in the remaining container so that it can ping new containers via hostname quicker.
lxc exec micro01 -- lxc exec c1 -- ip neigh flush all


# Add a new node, don't add any OSDs to keep Ceph fully remote.
preseed="$(cat << EOF
Expand Down Expand Up @@ -689,7 +695,7 @@ EOF
check_instance_connectivity "c1" "c3" "0"
check_instance_connectivity "c1" "c4" "0"

lxc exec micro01 -- lxc delete -f c1 c2 c3 c4
lxc exec micro01 -- lxc delete -f c1 c3 c4
if ! [ "${SKIP_VM_LAUNCH}" = "1" ]; then
lxc exec micro01 -- lxc delete -f v1
fi
Expand Down

0 comments on commit abac07a

Please sign in to comment.