Skip to content

Commit f0caa9f

Browse files
AlanJagerliang-hanyu
authored andcommitted
<fix>[vm]: dumpxml before restore vm
Change-Id: I6d617a616a627a6f7470756a70706579767a637a
1 parent 148b17a commit f0caa9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kvmagent/kvmagent/plugins/vm_plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,6 +2006,7 @@ def restore(self, path):
20062006
def restore_from_file(conn):
20072007
return conn.restoreFlags(path, self.domain_xml)
20082008

2009+
logger.debug('restoring vm:\n%s' % self.domain_xml)
20092010
restore_from_file()
20102011

20112012
def start(self, timeout=60, create_paused=False, wait_console=True):
@@ -5213,8 +5214,6 @@ def _start_vm(self, cmd):
52135214
else:
52145215
snapshot_path = cmd.memorySnapshotPath
52155216

5216-
logger.debug('restoring vm:\n%s' % self.domain_xml)
5217-
52185217
try:
52195218
vm.restore(snapshot_path)
52205219
finally:

0 commit comments

Comments
 (0)