- if os.path.exists(os.path.join(containerDir,"vsys")):
- # Slivers with vsys running will fail the subvolume delete.
- # A more permanent solution may be to ensure that the vsys module
- # is called before the sliver is destroyed.
- logger.log("destroying vsys directory and restarting vsys")
- logger.log_call(["rm", "-fR", os.path.join(containerDir, "vsys")])
- logger.log_call(["/etc/init.d/vsys", "restart", ])
+ # Slivers with vsys running will fail the subvolume delete.
+ # A more permanent solution may be to ensure that the vsys module
+ # is called before the sliver is destroyed.
+ removeSliverFromVsys (name)