From 0d513fea4da1ce44cba606681c7fff03a6a17df3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 10 Jul 2019 19:05:36 -0400 Subject: [PATCH] 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. --- client-common/vm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/client-common/vm.py b/client-common/vm.py index 2e72f4c5..9a899745 100644 --- a/client-common/vm.py +++ b/client-common/vm.py @@ -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: