jenkins: purge libvirt, the runner is now baremetal+virtualbox

This commit is contained in:
Hans-Christoph Steiner 2019-02-12 20:38:40 +01:00
parent 94affe9421
commit 40edb1a87d
2 changed files with 0 additions and 20 deletions

View File

@ -39,12 +39,8 @@ if systemd-detect-virt -q ; then
else
echo "No virtualization is used."
fi
sudo /bin/chmod -R a+rX /var/lib/libvirt/images
echo 'maximum allowed number of open file descriptors: ' `ulimit -n`
ls -ld /var/lib/libvirt/images
ls -l /var/lib/libvirt/images || echo no access
ls -lR ~/.vagrant.d/ || echo no access
virsh --connect qemu:///system list --all || echo cannot virsh list
cat /etc/issue
/sbin/ifconfig || true

View File

@ -26,7 +26,6 @@ cleanup_all() {
set +e
echo "$(date -u) - cleanup in progress..."
ps auxww | grep -e VBox -e qemu
virsh --connect qemu:///system list --all
ls -hl /var/lib/libvirt/images
cd $WORKSPACE/buildserver
vagrant halt
@ -54,21 +53,6 @@ fi
export VAGRANT_HOME=$WORKSPACE/vagrant.d
mkdir $VAGRANT_HOME
# delete leftovers from previous run
virsh -c qemu:///system undefine buildserver_default \
--nvram --managed-save --remove-all-storage --snapshots-metadata || true
virsh -c qemu:///system undefine builder_default \
--nvram --managed-save --remove-all-storage --snapshots-metadata || true
virsh -c qemu:///system undefine basebox-stretch64 \
--nvram --managed-save --remove-all-storage --snapshots-metadata || true
virsh -c qemu:///system vol-delete --pool default \
/var/lib/libvirt/images/buildserver_vagrant_box_image_0.img || true
virsh -c qemu:///system vol-delete --pool default \
/var/lib/libvirt/images/basebox-stretch64_vagrant_box_image_0.img || true
virsh -c qemu:///system vol-delete --pool default \
/var/lib/libvirt/images/jessie64_vagrant_box_image_0.img || true
rm -rf "$WORKSPACE"/../*/.testfiles
cd $WORKSPACE