Gal Hammer has posted comments on this change.
Change subject: Added a support for a guest hibernate command.
......................................................................
Patch Set 8: (1 inline comment)
Now it is: def vmHibernate(self, vmId,
target=API.VM.HibernateTarget.DISK)
I guess it should be target=None as before.
....................................................
File vdsm/vm.py
Line 848: return self._shutdownCommand('Powering down', int(timeout),
Line 849: 'sys_shutdown_timeout', self.guestAgent.desktopShutdown,
timeout,
Line 850: message)
Line 851:
Line 852: def hibernate(self, target='disk'):
I don't remember. This patch was written months ago.
I can guess that it is either because I didn't update the code after I've added
the HibernateTarget constants or because HibernateTarget is not imported in this file.
Line 853: return self._shutdownCommand('Prepare for hibernate', 0,
Line 854: 'sys_hibernate_timeout', self.guestAgent.hibernate, target)
Line 855:
Line 856: def _shutdownCommand(self, event, timeout, timeout_var, command, *args):
--
To view, visit
http://gerrit.ovirt.org/1121
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1ad6836e61e9d91ec6f46a599541f61ff12e9737
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Gal Hammer <ghammer(a)redhat.com>
Gerrit-Reviewer: Adam Litke <agl(a)us.ibm.com>
Gerrit-Reviewer: Ayal Baron <abaron(a)redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Gal Hammer <ghammer(a)redhat.com>
Gerrit-Reviewer: Haim Ateya <hateya(a)redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek(a)redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server