Add delay after deleting VM
Otherwise there might still be a watcher on the block device when we go to delete it, which causes a failure.
This commit is contained in:
parent
32a6369de2
commit
0d513fea4d
|
@ -242,6 +242,7 @@ def remove_vm(zk_conn, domain, is_cli=False):
|
|||
if is_cli:
|
||||
click.echo('Undefining VM "{}".'.format(domain))
|
||||
zkhandler.deletekey(zk_conn, '/domains/{}'.format(dom_uuid))
|
||||
time.sleep(2)
|
||||
|
||||
# Remove disks
|
||||
for disk in disk_list:
|
||||
|
|
Loading…
Reference in New Issue