mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1159.13.1 (4118a004V4kwgoMR9dGS7kTWxK4rmg)
Fix restart problem caused by old info in domain object.
This commit is contained in:
1 parent
0e7114e1d4
commit
c9e3a237d7
1 file changed
+5
-1
@@ -643,7 +643,11 @@ class XendDomainInfo:
|
||||
"""
|
||||
self.release_vifs()
|
||||
self.release_vbds()
|
||||
|
||||
self.devices = {}
|
||||
self.device_index = {}
|
||||
self.configs = []
|
||||
self.ipaddrs = []
|
||||
|
||||
def release_vifs(self):
|
||||
"""Release vm virtual network devices (vifs).
|
||||
@@ -851,7 +855,7 @@ class XendDomainInfo:
|
||||
|
||||
def restart_check(self):
|
||||
"""Check if domain restart is OK.
|
||||
To prevent restart loops, raise an error it is
|
||||
To prevent restart loops, raise an error if it is
|
||||
less than MINIMUM_RESTART_TIME seconds since the last restart.
|
||||
"""
|
||||
tnow = time.time()
|
||||
|
||||