diff options
| author | Josh Kearney <josh@jk0.org> | 2011-04-13 22:03:11 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-04-13 22:03:11 +0000 |
| commit | a9e628ba88a71b4cfae264aeb665e2c65921f176 (patch) | |
| tree | 161a6dd9d6225f7f56b26e5e9614edd89fef0202 /nova | |
| parent | 5c9cfbd4aab55ac755cbfcd24922c2e883bcbe8b (diff) | |
| parent | eda350a605b5711b8373849f389e3fe472670ca0 (diff) | |
Try to be nicer to the DB when destroying a libvirt instance.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/virt/libvirt_conn.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py index 6ec15fbb8..94410003e 100644 --- a/nova/virt/libvirt_conn.py +++ b/nova/virt/libvirt_conn.py @@ -372,6 +372,9 @@ class LibvirtConnection(driver.ComputeDriver): instance['id'], state) if state == power_state.SHUTOFF: break + + # Let's not hammer on the DB + time.sleep(1) except Exception as ex: msg = _("Error encountered when destroying instance '%(id)s': " "%(ex)s") % {"id": instance["id"], "ex": ex} |
