mirror of https://github.com/k3s-io/k3s
[Release-1.25] E2E Domain Drone Cleanup (#8584)
* E2E Domain Drone Cleanup (#8579) * Cleanup inactive vm domains * Have e2e depend on amd64 pipeline Signed-off-by: Derek Nola <derek.nola@suse.com>pull/8767/head
parent
d19260dc59
commit
222805cbde
16
.drone.yml
16
.drone.yml
|
@ -579,6 +579,12 @@ platform:
|
|||
os: linux
|
||||
arch: amd64
|
||||
|
||||
clone:
|
||||
retries: 3
|
||||
|
||||
depends_on:
|
||||
- amd64
|
||||
|
||||
steps:
|
||||
- name: build-e2e-image
|
||||
image: rancher/dapper:v0.5.0
|
||||
|
@ -604,7 +610,8 @@ steps:
|
|||
- mkdir -p dist/artifacts
|
||||
- cp /tmp/artifacts/* dist/artifacts/
|
||||
- docker stop registry && docker rm registry
|
||||
# Cleanup any VMs running, happens if a previous test panics
|
||||
# Cleanup VMs running, happens if a previous test panics
|
||||
# Cleanup inactive domains, happens if previous test is canceled
|
||||
- |
|
||||
VMS=$(virsh list --name | grep '_server-\|_agent-' || true)
|
||||
if [ -n "$VMS" ]; then
|
||||
|
@ -614,6 +621,13 @@ steps:
|
|||
virsh undefine $vm --remove-all-storage
|
||||
done
|
||||
fi
|
||||
VMS=$(virsh list --name --inactive | grep '_server-\|_agent-' || true)
|
||||
if [ -n "$VMS" ]; then
|
||||
for vm in $VMS
|
||||
do
|
||||
virsh undefine $vm
|
||||
done
|
||||
fi
|
||||
- docker run -d -p 5000:5000 -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io --name registry registry:2
|
||||
- cd tests/e2e/validatecluster
|
||||
- vagrant destroy -f
|
||||
|
|
|
@ -57,6 +57,11 @@ jobs:
|
|||
run: vagrant plugin install vagrant-k3s vagrant-reload
|
||||
- name: "Vagrant Up"
|
||||
run: vagrant up
|
||||
- name: On Failure, Dump VM logs
|
||||
if: ${{ failure() }}
|
||||
run: |
|
||||
logsDir=$(vboxmanage list vms --long | grep Logs | awk '{print $3" "$4}')
|
||||
cat "$logsDir"/VBox.log
|
||||
- name: "K3s Prepare"
|
||||
run: vagrant provision --provision-with=k3s-prepare
|
||||
- name: ⏬ "K3s Install"
|
||||
|
|
|
@ -59,6 +59,11 @@ jobs:
|
|||
run: vagrant plugin install vagrant-k3s
|
||||
- name: "Vagrant Up ⏩ Install K3s"
|
||||
run: vagrant up
|
||||
- name: On Failure, Dump VM logs
|
||||
if: ${{ failure() }}
|
||||
run: |
|
||||
logsDir=$(vboxmanage list vms --long | grep Logs | awk '{print $3" "$4}')
|
||||
cat "$logsDir"/VBox.log
|
||||
- name: "⏳ Node"
|
||||
run: vagrant provision --provision-with=k3s-wait-for-node
|
||||
- name: "⏳ CoreDNS"
|
||||
|
|
Loading…
Reference in New Issue