Skip to content

Commit

Permalink
cleaning script fix: remove all folders created by fc-ctrd
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Ustiugov <dmitrii.ustiugov@ed.ac.uk>
  • Loading branch information
ustiugov authored and shyamjesal committed Mar 25, 2021
1 parent 4549a78 commit d39a23a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/github_runner/clean_cri_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ sudo rm /etc/firecracker-containerd/fccd-cri.sock
rm ${HOME}/.kube/config
sudo rm -rf ${HOME}/tmp

echo Cleaning /var/lib/firecracker-containerd/*
for d in containerd shim-base snapshotter; do sudo rm -rf /var/lib/firecracker-containerd/$d; done

echo Cleaning /run/firecracker-containerd/*
sudo rm -rf /run/firecracker-containerd/containerd.sock.ttrpc \
/run/firecracker-containerd/io.containerd.runtime.v1.linux \
/run/firecracker-containerd/io.containerd.runtime.v2.task

ifconfig -a | grep _tap | cut -f1 -d":" | while read line ; do sudo ip link delete "$line" ; done
ifconfig -a | grep tap_ | cut -f1 -d":" | while read line ; do sudo ip link delete "$line" ; done
bridge -j vlan |jq -r '.[].ifname'| while read line ; do sudo ip link delete "$line" ; done
bridge -j vlan |jq -r '.[].ifname'| while read line ; do sudo ip link delete "$line" ; done

0 comments on commit d39a23a

Please sign in to comment.