X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sliver_lxc.py;h=8a2756b8421e4c7d0762a8e923a9a77bd10fe00d;hb=832e4279625c534790f1bd7f1099139e1e455ccd;hp=13582795e88c7c42c5ee83cca0f66bd2a3544301;hpb=b3c64dea4bb2fcd8375db955a9116c32d4f26f84;p=nodemanager.git diff --git a/sliver_lxc.py b/sliver_lxc.py index 1358279..8a2756b 100644 --- a/sliver_lxc.py +++ b/sliver_lxc.py @@ -339,6 +339,19 @@ unset pathmunge command = ['/usr/sbin/userdel', '-f', '-r', name] logger.log_call(command) + # Remove rootfs of destroyed domain + command = ['/usr/bin/rm', '-rf', containerDir] + logger.log_call(command, timeout=BTRFS_TIMEOUT) + + # ??? + logger.log("-TMP-ls-l %s"%name) + command = ['ls', '-lR', containerDir] + logger.log_call(command) + logger.log("-TMP-vsys-status") + command = ['/usr/bin/systemctl', 'status', 'vsys'] + logger.log_call(command) + # ??? + # Remove rootfs of destroyed domain command = ['btrfs', 'subvolume', 'delete', containerDir] logger.log_call(command, timeout=BTRFS_TIMEOUT) @@ -365,7 +378,7 @@ unset pathmunge #command=['lsof'] #logger.log_call(command) logger.log("-TMP-ls-l %s"%name) - command = ['ls', '-l', containerDir] + command = ['ls', '-lR', containerDir] logger.log_call(command) logger.log("-TMP-lsof") command = ['lsof']