Change in vdsm[master]: Catch libvirt timeout and return an error on setVmTicket
danken at redhat.com
danken at redhat.com
Fri Mar 1 10:03:31 UTC 2013
Dan Kenigsberg has posted comments on this change.
Change subject: Catch libvirt timeout and return an error on setVmTicket
......................................................................
Patch Set 9: I would prefer that you didn't submit this
(1 inline comment)
....................................................
File vdsm/libvirtvm.py
Line 2413: hooks.before_vm_set_ticket(self._lastXMLDesc, self.conf, params)
Line 2414: try:
Line 2415: self._dom.updateDeviceFlags(graphics.toxml(), 0)
Line 2416: except TimeoutError as tmo:
Line 2417: result = dict(errCode['ticketErr'])
Oops! I did not notice our over-writing on errCode['ticketErr']. but since dict() does only a shallow copy, your solution is not enough.
I see no immediate choice but the likes of
return {'status': {'code': errCode['hotplugNic']['status']['code'],
'message': e.message}}
Line 2418: result['status']['message'] = unicode(tmo)
Line 2419: else:
Line 2420: hooks.after_vm_set_ticket(self._lastXMLDesc, self.conf, params)
Line 2421: result = {'status': doneCode}
--
To view, visit http://gerrit.ovirt.org/10285
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ibb48a1baff1e059f48f71f600f4bf5d9f40a7d11
Gerrit-PatchSet: 9
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Adam Litke <agl at us.ibm.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Eduardo <ewarszaw at redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek at redhat.com>
Gerrit-Reviewer: Peter V. Saveliev <peet at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Shu Ming <shuming at linux.vnet.ibm.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the vdsm-patches
mailing list