Commit 0cf11e68 authored by Iustin Pop's avatar Iustin Pop
Browse files

Xen: Ignore the retry argument in stop instance

Commit 4ad45119

 changed the KVM hypervisor to send multiple shutdown
requests to the monitor, but it didn't change this for the Xen
hypervisor. We simply remove the return on retry model, since we do want
to send multiple shutdown signals for both Xen and KVM (even if the
behaviour is not perfect, they should behave the same).
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 1645d22d
......@@ -182,8 +182,6 @@ class XenHypervisor(hv_base.BaseHypervisor):
"""Stop an instance.
"""
if retry:
return
self._RemoveConfigFile(instance.name)
if force:
command = ["xm", "destroy", instance.name]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment