Antoni Segura Puimedon has posted comments on this change.

Change subject: clientIF: prepareVolumePath payload cleanup
......................................................................


Patch Set 6:

(2 comments)

http://gerrit.ovirt.org/#/c/22928/6/vdsm/clientIF.py
File vdsm/clientIF.py:

Line 315:         self.log.info("prepared volume path: %s", volPath)
Line 316:         return volPath
Line 317: 
Line 318:     def _prepareVolumeFromPayload(self, vmId, drive, device, payload):
Line 319:         '''
s/'''/"""/
Line 320:         vmPayload is a key in params
Line 321:         'vmPayload': {'volId': 'volume id',   # volId is optional
Line 322:                       'file': {'filename': 'content', ...}}
Line 323:         '''


Line 330: 
Line 331:         try:
Line 332:             mkFsFunction = getattr(supervdsm.getProxy(),
Line 333:                                    mkFsNames[device])
Line 334:         except RuntimeError:
Can you elaborate on the change of checking for RuntimeError (very generic) 
instead of AttributeError
Line 335:             raise vm.VolumeError("Supervdsm call failed for %s in "
Line 336:                                  "drive: %s" % (device, drive))
Line 337: 
Line 338:         return mkFsFunction(vmId, payload['file'], 
payload.get('volId'))


-- 
To view, visit http://gerrit.ovirt.org/22928
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I3a630d74ec0910c669e0326ad343c5dbea25357e
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Eduardo <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Martin Polednik <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to