def delete_vm(conn, vm, flag=None):
""" """
#TODO: PAWS-84 flag to delete VM during teardown
try:
vm.undefineFlags(1)
LOG.debug("VM %s deleted" % vm.name())
if flag:
storage_pools = conn.listAllStoragePools()
for pool in storage_pools:
stgvols = pool.listVolumes()
LOG.error(stgvols)
return True
except (libvirt.libvirtError, Exception) as ex:
LOG.error(ex)
评论列表
文章目录