Skip to content

Commit

Permalink
clean up VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuto-m committed Feb 10, 2025
1 parent 9775bbc commit 38b2ac7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/sunbeam-multi-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ jobs:
EOF
sudo virsh net-autostart sunbeam-virbr0
sudo virsh net-start sunbeam-virbr0
- name: Clean up previous virtual machines
if: ${{ env.ACT }}
run: |
for i in {1..3}; do
# FIXME: the requirement of FQDN is not documented well in each tutorial
uvt-kvm destroy "sunbeam-machine-${i}.localdomain" || true
done
- name: Prepare virtual machines
run: |
# use `sudo` instead of `sg libvirt` for simplicity in testing
Expand Down
6 changes: 0 additions & 6 deletions redeploy-microstack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ cd "$(dirname "$0")"
# check pv at the earliest
hash pv

## clean up
for i in {1..3}; do
# FIXME: the requirement of FQDN is not documented well in each tutorial
uvt-kvm destroy "sunbeam-machine-${i}.localdomain" || true
done

function ssh_to() {
local ip="192.168.124.1${1}"
shift
Expand Down

0 comments on commit 38b2ac7

Please sign in to comment.