Skip to content

Commit

Permalink
delete bootstrap vm in clean script
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Mar 26, 2024
1 parent 06f1f3f commit f7e0a04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lab-ztp-nightly
name: lab-nightly
on:
schedule:
- cron: '31 18 * * *'
Expand Down Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: libvirt
steps:
- name: Deploy kcli plan
run: kcli -c local create plan --force -f $INPUTFILE --paramfile $PARAMFILE -P pullsecret=$PULLSECRET $PLAN
run: kcli -c local create plan --force -f $INPUTFILE --paramfile $PARAMFILE -P pullsecret=$PULLSECRET -P installer_wait=true $PLAN
- name: Clean up
if: always()
run: kcli -c local delete plan --yes $PLAN
3 changes: 3 additions & 0 deletions bin/clean.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env bash

CLUSTER={{ cluster }}
[ -d /root/ocp ] && rm -rf /root/ocp
VMS=$(kcli list vm | grep ${CLUSTER}-.*-bootstrap | cut -d"|" -f 2 | xargs)
[ -z "$VMS" ] || kcli delete vm --yes $VMS
2 changes: 1 addition & 1 deletion paramfiles/lab_ipv6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dualstack_cidr: 192.168.130.0/24
disconnected: true
virtual_ctlplanes: true
launch_steps: true
deploy_openshift: false
deploy_openshift: true
version: stable
tag: "4.15"
cluster: lab
Expand Down
1 change: 0 additions & 1 deletion paramfiles/lab_ztp_ipv6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ lab_extra_dns:
- assisted-service-multicluster-engine
- assisted-service-assisted-installer
- assisted-image-service-multicluster-engine
installer_wait: true
#notify: true
nfs: true
installer_mac: aa:bb:aa:aa:bb:01

0 comments on commit f7e0a04

Please sign in to comment.