Ala Hino has posted comments on this change.
Change subject: virt: enable libgfapi
......................................................................
Patch Set 2:
(4 comments)
https://gerrit.ovirt.org/#/c/44061/2//COMMIT_MSG
Commit Message:
Line 6:
Line 7: virt: enable libgfapi
Line 8:
Line 9: This change is based on Federico's changes:
Line 10:
https://gerrit.ovirt.org/33768/
What about the snapshot support in federico patch? Are you planning
this to
Sure, just wanted to kick off the code review
Line 11:
Line 12: Change-Id: I54b81e87b959b0b49c0f06810f88410e7c75de1d
Line 13: Signed-off-by: Federico Simoncelli <fsimonce(a)redhat.com>
https://gerrit.ovirt.org/#/c/44061/2/vdsm/storage/glusterVolume.py
File vdsm/storage/glusterVolume.py:
Line 54: return {'volType': VmVolumeInfo.TYPE_NETWORK, 'path':
glusterPath,
Line 55: 'protocol': 'gluster', 'volPort':
volPort,
Line 56: 'volTransport': volTrans,
Line 57: 'volfileServer': volfileServer,
Line 58: 'bricks': volInfo[volname]['bricks']}
Please change this to return the format we expect on the other side.
See th
Done
https://gerrit.ovirt.org/#/c/44061/2/vdsm/virt/vm.py
File vdsm/virt/vm.py:
Line 804: if self._destroyed:
Line 805: # A destroy request has been issued, exit early
Line 806: break
Line 807: drive['path'] = self.cif.prepareVolumePath(drive,
self.id)
Line 808: if drive.get('diskType') == DISK_TYPE.NETWORK:
This does not belong here, I think you should handle it in
cif.prepareVolum
Done
Line 809: volinfo = drive.get('volumeInfo')
Line 810: drive['path'] = volinfo['path']
Line 811: drive['protocol'] = volinfo['protocol']
Line 812: if drive.get('hosts') is None:
Line 817: """
Line 818: hosts = [dict(name=brick.split(":")[0],
Line 819: port=volinfo['volPort'],
Line 820:
transport=volinfo['volTransport'])
Line 821: for brick in volinfo['bricks']]
volumeInfo should return the output we expect, not gluster specific
informa
Done
Line 822: """
Line 823: hosts =
[dict(name=volinfo['bricks'][0].split(":")[0],
Line 824: port=volinfo['volPort'],
Line 825: transport=volinfo['volTransport'])]
--
To view, visit
https://gerrit.ovirt.org/44061
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I54b81e87b959b0b49c0f06810f88410e7c75de1d
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ala Hino <ahino(a)redhat.com>
Gerrit-Reviewer: Ala Hino <ahino(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-HasComments: Yes