Hello Bala.FA,
I'd like you to do a code review. Please visit
to review the following change.
Change subject: gluster: geo replication status and status detail ......................................................................
gluster: geo replication status and status detail
this has two verbs, status: provides geo-replication status of all running sessions or all sessions associated with a perticular source volume or session between a source and remote volume. status detail: provides detailed status of geo-repliction session between source and remote volume
Change-Id: I4f37f35a5480fbe049a67758e122d4a0c2eba513 Signed-off-by: ndarshan dnarayan@redhat.com --- M client/vdsClientGluster.py M vdsm/gluster/api.py M vdsm/gluster/cli.py M vdsm/gluster/exception.py M vdsm/gluster/vdsmapi-gluster-schema.json 5 files changed, 223 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/14/18414/1
diff --git a/client/vdsClientGluster.py b/client/vdsClientGluster.py index 90af83e..76a5ba8 100644 --- a/client/vdsClientGluster.py +++ b/client/vdsClientGluster.py @@ -424,6 +424,35 @@ pp.pprint(status) return status['status']['code'], status['status']['message']
+ def do_glusterVolumeGeoRepStatus(self, args): + params = self._eqSplit(args) + try: + volName = params.get('volName', '') + remoteHost = params.get('remoteHost', '') + remoteVolName = params.get('remoteVolName', '') + except: + raise ValueError + status = self.s.glusterVolumeGeoRepStatus(volName, remoteHost, + remoteVolName) + pp.pprint(status) + return status['status']['code'], status['status']['message'] + + def do_glusterVolumeGeoRepStatusDetail(self, args): + params = self._eqSplit(args) + try: + volName = params.get('volName', '') + remoteHost = params.get('remoteHost', '') + remoteVolName = params.get('remoteVolName', '') + except: + raise ValueError + if not (volName and remoteHost and remoteVolName): + raise ValueError + status = self.s.glusterVolumeGeoRepStatusDetail(volName, + remoteHost, + remoteVolName) + pp.pprint(status) + return status['status']['code'], status['status']['message'] +
def getGlusterCmdDict(serv): return \ @@ -705,4 +734,24 @@ 'not set' '(swift, glusterd, smb, memcached)' )), + 'glusterVolumeGeoRepStatus': ( + serv.do_glusterVolumeGeoRepStatus, + ('volName=<master_volume_name> ' + 'remoteHost=<slave_host_name> ' + 'remoteVolName=<slave_volume_name> ' + '<master_volume_name>existing volume name in the master node\n\t' + '<slave_host_name>is remote slave host name or ip\n\t' + '<slave_volume_name>existing volume name in the slave node', + 'Returns ths status of geo-replication' + )), + 'glusterVolumeGeoRepStatusDetail': ( + serv.do_glusterVolumeGeoRepStatusDetail, + ('volName=<master_volume_name> ' + 'remoteHost=<slave_host_name> ' + 'remoteVolName=<slave_volume_name> ' + '<master_volume_name>existing volume name in the master node\n\t' + '<slave_host_name>is remote slave host name or ip\n\t' + '<slave_volume_name>existing volume name in the slave node', + 'Returns the Detailed status of geo-replication' + )) } diff --git a/vdsm/gluster/api.py b/vdsm/gluster/api.py index 4bd8308..d24e700 100644 --- a/vdsm/gluster/api.py +++ b/vdsm/gluster/api.py @@ -287,6 +287,22 @@ status = self.svdsmProxy.glusterServicesGet(serviceNames) return {'services': status}
+ @exportAsVerb + def volumeGeoRepStatus(self, volName=None, remoteHost=None, + remoteVolName=None, options=None): + status = self.svdsmProxy.glusterVolumeGeoRepStatus(volName, + remoteHost, + remoteVolName) + return {'geo-rep': status} + + @exportAsVerb + def volumeGeoRepStatusDetail(self, volName, remoteHost, + remoteVolName, options=None): + status = self.svdsmProxy.glusterVolumeGeoRepStatusDetail(volName, + remoteHost, + remoteVolName) + return {'geo-rep': status} +
def getGlusterMethods(gluster): l = [] diff --git a/vdsm/gluster/cli.py b/vdsm/gluster/cli.py index bac6d1c..1cf0e12 100644 --- a/vdsm/gluster/cli.py +++ b/vdsm/gluster/cli.py @@ -897,3 +897,59 @@ return _parseVolumeProfileInfo(xmltree, nfs) except _etreeExceptions: raise ge.GlusterXmlErrorException(err=[etree.tostring(xmltree)]) + + +def _parseGeoRepStatusDetail(tree): + status = {'node': tree.find('geoRep/node').text, + 'health': tree.find('geoRep/health').text, + 'uptime': tree.find('geoRep/uptime').text, + 'filesSyncd': tree.find('geoRep/filesSyncd').text, + 'filesPending': tree.find('geoRep/filesPending').text, + 'bytesPending': tree.find('geoRep/bytesPending').text, + 'deletesPending': tree.find('geoRep/deletesPending').text} + return status + + +def _parseGeoRepStatus(tree): + pairs = [] + for el in tree.findall('geoRep/pair'): + value = {} + value['node'] = el.find('node').text + value['master'] = el.find('master').text + value['slave'] = el.find('slave').text + value['health'] = el.find('health').text + value['uptime'] = el.find('uptime').text + pairs.append(value) + return pairs + + +@makePublic +def volumeGeoRepStatus(volName=None, remoteHost=None, remoteVolName=None, + ): + command = _getGlusterVolCmd() + ["geo-replication", volName, + "%s::%s" % (remoteHost, remoteVolName), + "status"] + try: + xmltree = _execGlusterXml(command) + except ge.GlusterCmdFailedException as e: + raise ge.GlusterGeoRepStatusFailedException(rc=e.rc, err=e.err) + try: + return _parseGeoRepStatus(xmltree) + except _etreeExceptions: + raise ge.GlusterXmlErrorException(err=[etree.tostring(xmltree)]) + + +@makePublic +def volumeGeoRepStatusDetail(volName, remoteHost, remoteVolName, + ): + command = _getGlusterVolCmd() + ["geo-replication", volName, + "%s::%s" % (remoteHost, remoteVolName), + "status", "detail"] + try: + xmltree = _execGlusterXml(command) + except ge.GlusterCmdFailedException as e: + raise ge.GlusterGeoRepStatusDetailFailedException(rc=e.rc, err=e.err) + try: + return _parseGeoRepStatusDetail(xmltree) + except _etreeExceptions: + raise ge.GlusterXmlErrorException(err=[etree.tostring(xmltree)]) diff --git a/vdsm/gluster/exception.py b/vdsm/gluster/exception.py index c569a9e..d95b168 100644 --- a/vdsm/gluster/exception.py +++ b/vdsm/gluster/exception.py @@ -484,3 +484,19 @@ prefix = "%s: " % (action) self.message = prefix + "Service action is not supported" self.err = [self.message] + + +#geo-replication +class GlusterGeoRepException(GlusterException): + code = 4560 + message = "Gluster Geo-Replication Exception" + + +class GlusterGeoRepStatusFailedException(GlusterGeoRepException): + code = 4565 + message = "Geo Rep status failed" + + +class GlusterGeoRepStatusDetailFailedException(GlusterGeoRepException): + code = 4566 + message = "Geo Rep status detail failed" diff --git a/vdsm/gluster/vdsmapi-gluster-schema.json b/vdsm/gluster/vdsmapi-gluster-schema.json index 7a4c034..557c750 100644 --- a/vdsm/gluster/vdsmapi-gluster-schema.json +++ b/vdsm/gluster/vdsmapi-gluster-schema.json @@ -372,3 +372,89 @@ {'command': {'class': 'GlusterService', 'name': 'action'}, 'data': {'serviceName': 'str', 'action': 'GlusterServiceAction'}, 'returns': 'GlusterServicesStatusInfo'} + +## +# @GlusterGeoRepStatus: +# +# Gluster geo-replication status information. +# +# @node: The node where geo-replication is started +# +# @master: The source for geo-replication +# +# @slave: The destination of geo-replication +# +# @health: The status of the geo-replication session +# +# @uptime: The time since the geo-replication started +# +# Since: 4.10.3 +## +{'type': 'GlusterGeoRepStatus', + 'data': {'node': 'str', 'master': 'str', 'slave': 'str', 'health': 'str', 'uptime': 'int'}} + + +## +# @GlusterVolume.geoRepStatus: +# +# Gets the status of geo-Replication session +# +# @masterVolName: Is an existing volume name in the master node +# +# @slaveHost: Is remote slave host name or ip +# +# @slaveVolName: Is an available existing volume name in the slave node +# +# Returns: +# status information for geo-replication +# +# Since: 4.10.3 +## +{'command': {'class': 'GlusterVolume', 'name': 'geoRepStatus'}, + 'data': {'masterVolName': 'str', 'slaveHost': 'str', 'slaveVolName': 'str'}, + 'returns': 'GlusterGeoRepStatus'} + +## +# @GlusterGeoRepStatusDetail: +# +# Gluster geo-replication detailed status information. +# +# @node: The node where geo-replication is started +# +# @health: The status of the geo-replication session +# +# @uptime: The time since the geo-replication started +# +# @filesSyncd: The number of files that are synced +# +# @filesPending: The number of files that are pending to be synced +# +# @bytesPending: The number of bytes that are pending to be synced +# +# @deletesPending: The number of deletes that are pending +# +# Since: 4.10.3 +## +{'type': 'GlusterGeoRepStatusDetail', + 'data': {'node': 'str', 'health': 'str', 'uptime': 'int', 'filesSyncd': 'int', 'filesPending': 'int', + 'bytesPending': 'int','deletesPending': 'int'}} + +## +# @GlusterVolume.geoRepStatusDetail: +# +# Gets the detailed status of geo-Replication session +# +# @masterVolName: Is an existing volume name in the master node +# +# @slaveHost: Is remote slave host name or ip +# +# @slaveVolName: Is an available existing volume name in the slave node +# +# Returns: +# detailed status information of geo-replication session +# +# Since: 4.10.3 +## +{'command': {'class': 'GlusterVolume', 'name': 'geoRepStatusDetail'}, + 'data': {'masterVolName': 'str', 'slaveHost': 'str', 'slaveVolName': 'str'}, + 'returns': 'GlusterGeoRepStatusDetail'}
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 1:
Build Successful
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/4090/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/3195/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/4011/ : SUCCESS
Bala.FA has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 1: Code-Review-1
(3 comments)
.................................................... Commit Message Line 8: Line 9: this has two verbs, status: provides geo-replication status of all running Line 10: sessions or all sessions associated with a perticular source volume or Line 11: session between a source and remote volume. status detail: provides detailed Line 12: status of geo-repliction session between source and remote volume Please add better commit message Line 13: Line 14: Change-Id: I4f37f35a5480fbe049a67758e122d4a0c2eba513
.................................................... File vdsm/gluster/cli.py Line 905: 'uptime': tree.find('geoRep/uptime').text, Line 906: 'filesSyncd': tree.find('geoRep/filesSyncd').text, Line 907: 'filesPending': tree.find('geoRep/filesPending').text, Line 908: 'bytesPending': tree.find('geoRep/bytesPending').text, Line 909: 'deletesPending': tree.find('geoRep/deletesPending').text} I wonder why detail option missing 'master' and 'slave'. Any idea? Line 910: return status Line 911: Line 912: Line 913: def _parseGeoRepStatus(tree):
Line 943: def volumeGeoRepStatusDetail(volName, remoteHost, remoteVolName, Line 944: ): Line 945: command = _getGlusterVolCmd() + ["geo-replication", volName, Line 946: "%s::%s" % (remoteHost, remoteVolName), Line 947: "status", "detail"] I don't think we need separate function required. detail needs to be an option to volumeGeoRepStatus. Line 948: try: Line 949: xmltree = _execGlusterXml(command) Line 950: except ge.GlusterCmdFailedException as e: Line 951: raise ge.GlusterGeoRepStatusDetailFailedException(rc=e.rc, err=e.err)
ndarshan has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 1:
(3 comments)
.................................................... Commit Message Line 8: Line 9: this has two verbs, status: provides geo-replication status of all running Line 10: sessions or all sessions associated with a perticular source volume or Line 11: session between a source and remote volume. status detail: provides detailed Line 12: status of geo-repliction session between source and remote volume Done Line 13: Line 14: Change-Id: I4f37f35a5480fbe049a67758e122d4a0c2eba513
.................................................... File vdsm/gluster/cli.py Line 905: 'uptime': tree.find('geoRep/uptime').text, Line 906: 'filesSyncd': tree.find('geoRep/filesSyncd').text, Line 907: 'filesPending': tree.find('geoRep/filesPending').text, Line 908: 'bytesPending': tree.find('geoRep/bytesPending').text, Line 909: 'deletesPending': tree.find('geoRep/deletesPending').text} "geo-replication status detail" command gives the status detail only between a specified master ans a slave and the master name and slave name is to be specified by the user. As the user will be checking detail between master and a slave, so I think they are missing. Line 910: return status Line 911: Line 912: Line 913: def _parseGeoRepStatus(tree):
Line 943: def volumeGeoRepStatusDetail(volName, remoteHost, remoteVolName, Line 944: ): Line 945: command = _getGlusterVolCmd() + ["geo-replication", volName, Line 946: "%s::%s" % (remoteHost, remoteVolName), Line 947: "status", "detail"] For "geo-replication status" command master name and slave name are optional as it can provide status of all geo-rep sessions/geo-rep session between a specified master and all slave/geo-rep session between a specified master and slave. But for "geo-replication status detail" command both arguments are compulsory as it gives status only between a specified master and slave.
For simplicity of handling the arguments I made it as seperate functions. If you still feel it is better to have a single function I will do it. Line 948: try: Line 949: xmltree = _execGlusterXml(command) Line 950: except ge.GlusterCmdFailedException as e: Line 951: raise ge.GlusterGeoRepStatusDetailFailedException(rc=e.rc, err=e.err)
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 2:
Build Successful
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/4210/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/3315/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/4131/ : SUCCESS
Itamar Heim has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 2:
ping?
Itamar Heim has abandoned this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Abandoned
abandoning per no reply. please restore if still relevant.
Darshan N has restored this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Restored
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 3:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/10199/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/10984/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/11141/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_network_functional_tests_gerrit/162... : There was an infra issue, please contact infra@ovirt.org
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 4:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/10200/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/10985/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/11142/ : SUCCESS
Darshan N has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 4: Verified+1
Timothy Asir has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 4:
(1 comment)
Not to be merged till patch:http://review.gluster.org/#/c/8089/ got merged.
http://gerrit.ovirt.org/#/c/18414/4/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1142: return status Line 1143: Line 1144: Line 1145: @makePublic Line 1146: def volumeGeoRepStatus(volName=None, remoteHost=None, remoteVolName=None): Check if gluster cli throws error if pem file or session not present Otherwise add appropriate validation here. Line 1147: command = _getGlusterVolCmd() + ["geo-replication"] Line 1148: if volName: Line 1149: command.append(volName) Line 1150: if remoteHost and remoteVolName:
Bala.FA has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 4: Code-Review-1
Setting -1 till http://review.gluster.org/#/c/8089/ gets merged.
Darshan N has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 4:
The gluster patch is merged now.
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 5:
Build Successful
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/10548/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/11490/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/11333/ : SUCCESS
Darshan N has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 4:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/4/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1142: return status Line 1143: Line 1144: Line 1145: @makePublic Line 1146: def volumeGeoRepStatus(volName=None, remoteHost=None, remoteVolName=None):
Check if gluster cli throws error if pem file or session not present Otherw
gluster cli throws error if session is not present. Line 1147: command = _getGlusterVolCmd() + ["geo-replication"] Line 1148: if volName: Line 1149: command.append(volName) Line 1150: if remoteHost and remoteVolName:
Darshan N has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 5: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 6:
Build Successful
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/10747/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/11689/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/11532/ : SUCCESS
Darshan N has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 6: Verified+1
Timothy Asir has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 6: Code-Review+1
Sahina Bose has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 6:
(2 comments)
http://gerrit.ovirt.org/#/c/18414/6/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1149: } Line 1150: """ Line 1151: status = {} Line 1152: status['volumeName'] = tree.find('geoRep/volume/name').text Line 1153: status['sessionSalve'] = tree.find( sessionSlave? Line 1154: 'geoRep/volume/sessions/session/session_slave').text Line 1155: pairs = [] Line 1156: for pair in tree.findall('geoRep/volume/sessions/session/pair'): Line 1157: pairDetail = {}
Line 1150: """ Line 1151: status = {} Line 1152: status['volumeName'] = tree.find('geoRep/volume/name').text Line 1153: status['sessionSalve'] = tree.find( Line 1154: 'geoRep/volume/sessions/session/session_slave').text Shouldn't you iterate through all sessions as well? A volume could have multiple sessions Line 1155: pairs = [] Line 1156: for pair in tree.findall('geoRep/volume/sessions/session/pair'): Line 1157: pairDetail = {} Line 1158: pairDetail['masterNode'] = pair.find('master_node').text
Sahina Bose has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 6:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/6/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1150: """ Line 1151: status = {} Line 1152: status['volumeName'] = tree.find('geoRep/volume/name').text Line 1153: status['sessionSalve'] = tree.find( Line 1154: 'geoRep/volume/sessions/session/session_slave').text
Shouldn't you iterate through all sessions as well?
Please ignore this comment - I was thinking of the geoRepStatus verb Line 1155: pairs = [] Line 1156: for pair in tree.findall('geoRep/volume/sessions/session/pair'): Line 1157: pairDetail = {} Line 1158: pairDetail['masterNode'] = pair.find('master_node').text
Sahina Bose has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 6:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/6/vdsm/gluster/vdsmapi-gluster-schema.json File vdsm/gluster/vdsmapi-gluster-schema.json:
Line 1404: # @status: status of geo replication Line 1405: # Line 1406: # @checkpointStatus: Status of checkpoint Line 1407: # Line 1408: # @craelStatus: Crawl status crawlStatus Line 1409: # Line 1410: # Since: 4.16.0 Line 1411: ## Line 1412: {'type': 'geoRepPairInfo',
Sahina Bose has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 6:
(1 comment)
Darshan, could you address these comments? Is it possible to make this patch independent of geo-rep create patch?
http://gerrit.ovirt.org/#/c/18414/6/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1179: sessions: [{sessionSlave: 'session slave/uuid of session', Line 1180: pairs: [{masterNode: 'master node', Line 1181: masterNodeUuid: 'uuid of brick host', Line 1182: masterBrick: 'master brick', Line 1183: slave: 'slave', Is it possible to return the slave host uuid as well, in addition to the slave host name? Line 1184: status: 'status' Line 1185: checkpointStatus: 'checkpoint status' Line 1186: crawlStatus: 'crawlStatus'}].... Line 1187: ]....
Darshan N has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 6:
(3 comments)
http://gerrit.ovirt.org/#/c/18414/6/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1149: } Line 1150: """ Line 1151: status = {} Line 1152: status['volumeName'] = tree.find('geoRep/volume/name').text Line 1153: status['sessionSalve'] = tree.find(
sessionSlave?
Done Line 1154: 'geoRep/volume/sessions/session/session_slave').text Line 1155: pairs = [] Line 1156: for pair in tree.findall('geoRep/volume/sessions/session/pair'): Line 1157: pairDetail = {}
Line 1179: sessions: [{sessionSlave: 'session slave/uuid of session', Line 1180: pairs: [{masterNode: 'master node', Line 1181: masterNodeUuid: 'uuid of brick host', Line 1182: masterBrick: 'master brick', Line 1183: slave: 'slave',
Is it possible to return the slave host uuid as well, in addition to the sl
As of now gluster cli is not providing the host uuid of the slave, So its not possible to return. Line 1184: status: 'status' Line 1185: checkpointStatus: 'checkpoint status' Line 1186: crawlStatus: 'crawlStatus'}].... Line 1187: ]....
http://gerrit.ovirt.org/#/c/18414/6/vdsm/gluster/vdsmapi-gluster-schema.json File vdsm/gluster/vdsmapi-gluster-schema.json:
Line 1404: # @status: status of geo replication Line 1405: # Line 1406: # @checkpointStatus: Status of checkpoint Line 1407: # Line 1408: # @craelStatus: Crawl status
crawlStatus
Done Line 1409: # Line 1410: # Since: 4.16.0 Line 1411: ## Line 1412: {'type': 'geoRepPairInfo',
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 7:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13282/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13122/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12332/ : FAILURE
Sahina Bose has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 7:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/7/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1077: """ Line 1078: status = {} Line 1079: status['volumeName'] = tree.find('geoRep/volume/name').text Line 1080: status['sessionSlave'] = tree.find( Line 1081: 'geoRep/volume/sessions/session/session_slave').text Darshan, if not the slave host uuid, how about the slave volume UUID? Is it possible to return that? Line 1082: pairs = [] Line 1083: for pair in tree.findall('geoRep/volume/sessions/session/pair'): Line 1084: pairDetail = {} Line 1085: pairDetail['masterNode'] = pair.find('master_node').text
Darshan N has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 7:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/7/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1077: """ Line 1078: status = {} Line 1079: status['volumeName'] = tree.find('geoRep/volume/name').text Line 1080: status['sessionSlave'] = tree.find( Line 1081: 'geoRep/volume/sessions/session/session_slave').text
Darshan, if not the slave host uuid, how about the slave volume UUID? Is it
Not available as of now. Have raised a bug BZ# 1159172 in glusterfs for returning host uuid . We can include it once its fixed. Line 1082: pairs = [] Line 1083: for pair in tree.findall('geoRep/volume/sessions/session/pair'): Line 1084: pairDetail = {} Line 1085: pairDetail['masterNode'] = pair.find('master_node').text
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 8:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13301/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13141/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12351/ : FAILURE
Sahina Bose has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 8: Code-Review+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 9: Code-Review-1 Verified-1
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13425/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13264/ : UNSTABLE
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12474/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created_staging/37/ : FAILURE
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 10:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13429/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13268/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12478/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created_staging/41/ : FAILURE
Darshan N has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 11: Verified+1
Bala.FA has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 11: Code-Review-1
(6 comments)
http://gerrit.ovirt.org/#/c/18414/11//COMMIT_MSG Commit Message:
Line 11: *glusterGeoRepStatus- It provides geo-replication session status of all Line 12: sessions/between specified master and all its slaves/between a specified Line 13: master and a slave. Line 14: *glusterGeoRepStatusDetail- It provides detailed status of geo-replication Line 15: session between a master and slave. Please provide more comment log including output dict of each verbs Line 16: Line 17: Change-Id: I4f37f35a5480fbe049a67758e122d4a0c2eba513
http://gerrit.ovirt.org/#/c/18414/11/client/vdsClientGluster.py File client/vdsClientGluster.py:
Line 761: 'remoteVolumeName=<slave_volume_name> ' Line 762: '<master_volume_name>existing volume name in the master node\n\t' Line 763: '<slave_host_name>is remote slave host name or ip\n\t' Line 764: '<slave_volume_name>existing volume name in the slave node', Line 765: 'Returns ths status of geo-replication' Please replace master/slave to local/remote Line 766: )), Line 767: 'glusterVolumeGeoRepStatusDetail': ( Line 768: serv.do_glusterVolumeGeoRepStatusDetail, Line 769: ('volumeName=<master_volume_name> '
Line 771: 'remoteVolumeName=<slave_volume_name> ' Line 772: '<master_volume_name>existing volume name in the master node\n\t' Line 773: '<slave_host_name>is remote slave host name or ip\n\t' Line 774: '<slave_volume_name>existing volume name in the slave node', Line 775: 'Returns the Detailed status of geo-replication' same here Line 776: )),
http://gerrit.ovirt.org/#/c/18414/11/vdsm/gluster/api.py File vdsm/gluster/api.py:
Line 327: remoteVolumeName=None, options=None): Line 328: status = self.svdsmProxy.glusterVolumeGeoRepStatus(volumeName, Line 329: remoteHost, Line 330: remoteVolumeName) Line 331: return {'geo-rep': status} I would suggest to have the key as geo-rep-status Line 332: Line 333: @exportAsVerb Line 334: def volumeGeoRepStatusDetail(self, volumeName, remoteHost, Line 335: remoteVolumeName, options=None):
Line 337: volumeName, Line 338: remoteHost, Line 339: remoteVolumeName Line 340: ) Line 341: return {'geo-rep': status} What is the difference with above verb? Can't we have detail=True arg to above verb itself? Line 342: Line 343: Line 344: def getGlusterMethods(gluster): Line 345: l = []
http://gerrit.ovirt.org/#/c/18414/11/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1138: sessionDetail['pairs'] = pairs Line 1139: sessions.append(sessionDetail) Line 1140: volumeDetail['sessions'] = sessions Line 1141: status.append(volumeDetail) Line 1142: return status 1. Please all replace master/slave to local/remote
2. Please add unit tests Line 1143: Line 1144: Line 1145: @makePublic Line 1146: def volumeGeoRepStatus(volumeName=None, remoteHost=None,
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: geo replication status and status detail ......................................................................
Patch Set 11:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12674/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/46/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13626/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/42/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/607/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/588... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13464/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created_staging/243/ : FAILURE
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 11:
(6 comments)
http://gerrit.ovirt.org/#/c/18414/11//COMMIT_MSG Commit Message:
Line 11: *glusterGeoRepStatus- It provides geo-replication session status of all Line 12: sessions/between specified master and all its slaves/between a specified Line 13: master and a slave. Line 14: *glusterGeoRepStatusDetail- It provides detailed status of geo-replication Line 15: session between a master and slave.
Please provide more comment log including output dict of each verbs
Done Line 16: Line 17: Change-Id: I4f37f35a5480fbe049a67758e122d4a0c2eba513
http://gerrit.ovirt.org/#/c/18414/11/client/vdsClientGluster.py File client/vdsClientGluster.py:
Line 761: 'remoteVolumeName=<slave_volume_name> ' Line 762: '<master_volume_name>existing volume name in the master node\n\t' Line 763: '<slave_host_name>is remote slave host name or ip\n\t' Line 764: '<slave_volume_name>existing volume name in the slave node', Line 765: 'Returns ths status of geo-replication'
Please replace master/slave to local/remote
Done Line 766: )), Line 767: 'glusterVolumeGeoRepStatusDetail': ( Line 768: serv.do_glusterVolumeGeoRepStatusDetail, Line 769: ('volumeName=<master_volume_name> '
Line 771: 'remoteVolumeName=<slave_volume_name> ' Line 772: '<master_volume_name>existing volume name in the master node\n\t' Line 773: '<slave_host_name>is remote slave host name or ip\n\t' Line 774: '<slave_volume_name>existing volume name in the slave node', Line 775: 'Returns the Detailed status of geo-replication'
same here
Done Line 776: )),
http://gerrit.ovirt.org/#/c/18414/11/vdsm/gluster/api.py File vdsm/gluster/api.py:
Line 327: remoteVolumeName=None, options=None): Line 328: status = self.svdsmProxy.glusterVolumeGeoRepStatus(volumeName, Line 329: remoteHost, Line 330: remoteVolumeName) Line 331: return {'geo-rep': status}
I would suggest to have the key as geo-rep-status
Done Line 332: Line 333: @exportAsVerb Line 334: def volumeGeoRepStatusDetail(self, volumeName, remoteHost, Line 335: remoteVolumeName, options=None):
Line 337: volumeName, Line 338: remoteHost, Line 339: remoteVolumeName Line 340: ) Line 341: return {'geo-rep': status}
What is the difference with above verb? Can't we have detail=True arg to a
Since the argument they take are different( in case of status volume name, remote host name and remote volume name are optional but in status detail all these arguments are mandatory) and even the return values are different, I feel having different verbs is better. Line 342: Line 343: Line 344: def getGlusterMethods(gluster): Line 345: l = []
http://gerrit.ovirt.org/#/c/18414/11/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1138: sessionDetail['pairs'] = pairs Line 1139: sessions.append(sessionDetail) Line 1140: volumeDetail['sessions'] = sessions Line 1141: status.append(volumeDetail) Line 1142: return status
- Please all replace master/slave to local/remote
Since the names(master/slave) are obtained from glusterfs cli, would like to retain the names as is. Any thoughts ?? Line 1143: Line 1144: Line 1145: @makePublic Line 1146: def volumeGeoRepStatus(volumeName=None, remoteHost=None,
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 12: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 12: Code-Review-1 Verified-1
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12717/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/54/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13669/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/50/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/615/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/596... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13507/ : UNSTABLE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created_staging/286/ : FAILURE
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 13:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12722/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/57/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13674/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/53/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/618/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/599... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13512/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created_staging/291/ : FAILURE
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 13: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 14:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/12744/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/65/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/13696/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/61/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/626/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/607... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/13534/ : SUCCESS
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 14: Verified+1
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 15:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 15:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/304... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/310/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15085/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/869/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/14916/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14128/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/852... : FAILURE
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 15: Verified+1
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 15:
(2 comments)
http://gerrit.ovirt.org/#/c/18414/15//COMMIT_MSG Commit Message:
Line 1: Parent: f40345d8 (sampling: extract SampleWindow class) Please refer http://gerrit.ovirt.org/#/c/17766/ for comments. They are applicable in this patch too.
I feel that this patch needs to be depend on http://gerrit.ovirt.org/#/c/17766/ Line 2: Author: ndarshan dnarayan@redhat.com Line 3: AuthorDate: 2013-08-22 16:08:17 +0530 Line 4: Commit: ndarshan dnarayan@redhat.com Line 5: CommitDate: 2015-01-16 14:00:06 +0530
Line 15: remote-volumes or between a specified local and remote volume. Line 16: Returns: Line 17: {volumeName: 'volume name', Line 18: sessions: [{sessionSlave: 'session slave/uuid of session', Line 19: pairs: [{masterNode: 'master node', could you over all change master/slave as local/remote? I feel master/local needs to be removed and denotes as brick/volume/host etc Line 20: masterNodeUuid: 'uuid of brick host', Line 21: masterBrick: 'master brick', Line 22: slave: 'slave', Line 23: status: 'status',
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication status and status detail ......................................................................
Patch Set 15: Code-Review-1
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session detail ......................................................................
Patch Set 16:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session detail ......................................................................
Patch Set 16:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/344... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15308/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15139/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14351/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/892... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/351/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/909/ : SUCCESS
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session detail ......................................................................
Patch Set 16: Verified+1
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session detail ......................................................................
Patch Set 15:
(2 comments)
http://gerrit.ovirt.org/#/c/18414/15//COMMIT_MSG Commit Message:
Line 1: Parent: f40345d8 (sampling: extract SampleWindow class)
Please refer http://gerrit.ovirt.org/#/c/17766/ for comments. They are app
Done Line 2: Author: ndarshan dnarayan@redhat.com Line 3: AuthorDate: 2013-08-22 16:08:17 +0530 Line 4: Commit: ndarshan dnarayan@redhat.com Line 5: CommitDate: 2015-01-16 14:00:06 +0530
Line 15: remote-volumes or between a specified local and remote volume. Line 16: Returns: Line 17: {volumeName: 'volume name', Line 18: sessions: [{sessionSlave: 'session slave/uuid of session', Line 19: pairs: [{masterNode: 'master node',
could you over all change master/slave as local/remote? I feel master/loca
Done Line 20: masterNodeUuid: 'uuid of brick host', Line 21: masterBrick: 'master brick', Line 22: slave: 'slave', Line 23: status: 'status',
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session detail ......................................................................
Patch Set 16: Code-Review-1
(7 comments)
http://gerrit.ovirt.org/#/c/18414/16//COMMIT_MSG Commit Message:
Line 15: its remote-volumes or between a specified local and remote volume. Line 16: Returns: Line 17: {volumeName: 'volume name', Line 18: sessions: [{sessionKey: 'unique identification for session ', Line 19: remoteVolume: 'name of remote volume involved in session' How about 'remoteVolume' to 'remoteVolumeName' ? Line 20: pairs: [{host: 'local host', Line 21: hostUuid: 'uuid of brick host', Line 22: brickName: 'local brick', Line 23: remotehost: 'slave',
Line 16: Returns: Line 17: {volumeName: 'volume name', Line 18: sessions: [{sessionKey: 'unique identification for session ', Line 19: remoteVolume: 'name of remote volume involved in session' Line 20: pairs: [{host: 'local host', how about changing 'pairs' to 'bricks'? Line 21: hostUuid: 'uuid of brick host', Line 22: brickName: 'local brick', Line 23: remotehost: 'slave', Line 24: status: 'status',
http://gerrit.ovirt.org/#/c/18414/16/client/vdsClientGluster.py File client/vdsClientGluster.py:
Line 468: remoteVolumeName) Line 469: pp.pprint(status) Line 470: return status['status']['code'], status['status']['message'] Line 471: Line 472: def do_glusterVolumeGeoRepSessionDetail(self, args): How about glusterVolumeGeoRepSessionStatus? Line 473: params = self._eqSplit(args) Line 474: volumeName = params.get('volumeName', '') Line 475: remoteHost = params.get('remoteHost', '') Line 476: remoteVolumeName = params.get('remoteVolumeName', '')
http://gerrit.ovirt.org/#/c/18414/16/vdsm/gluster/api.py File vdsm/gluster/api.py:
Line 346: volumeName, Line 347: remoteHost, Line 348: remoteVolumeName Line 349: ) Line 350: return {'geo-rep-list': status} How about 'sessions' for 'geo-rep-list'? Line 351: Line 352: @exportAsVerb Line 353: def volumeGeoRepSessionDetail(self, volumeName, remoteHost, Line 354: remoteVolumeName, options=None):
Line 356: volumeName, Line 357: remoteHost, Line 358: remoteVolumeName Line 359: ) Line 360: return {'geo-rep-session-detail': status} How about 'sessionStatus'? Line 361: Line 362: Line 363: def getGlusterMethods(gluster): Line 364: l = []
http://gerrit.ovirt.org/#/c/18414/16/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1182: return status Line 1183: Line 1184: Line 1185: @makePublic Line 1186: def volumeGeoRepSessionList(volumeName=None, remoteHost=None, Please note that this file is one-to-one with gluster cli. It means how gluster cli represents each command is adopted here eg volumeInfo() is used in api.volumesList
I think same thing has to be followed. Line 1187: remoteVolumeName=None): Line 1188: command = _getGlusterVolCmd() + ["geo-replication"] Line 1189: if volumeName: Line 1190: command.append(volumeName)
Line 1202: Line 1203: Line 1204: @makePublic Line 1205: def volumeGeoRepSessionDetail(volumeName, remoteHost, remoteVolumeName): Line 1206: command = _getGlusterVolCmd() + ["geo-replication", volumeName, Please use _getGlusterVolGeoRepCmd() Line 1207: "%s::%s" % (remoteHost, remoteVolumeName), Line 1208: "status", "detail"] Line 1209: try: Line 1210: xmltree = _execGlusterXml(command)
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session detail ......................................................................
Patch Set 16:
Please run pep8 and pyflakes
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 17:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 16:
(7 comments)
http://gerrit.ovirt.org/#/c/18414/16//COMMIT_MSG Commit Message:
Line 15: its remote-volumes or between a specified local and remote volume. Line 16: Returns: Line 17: {volumeName: 'volume name', Line 18: sessions: [{sessionKey: 'unique identification for session ', Line 19: remoteVolume: 'name of remote volume involved in session'
How about 'remoteVolume' to 'remoteVolumeName' ?
Done Line 20: pairs: [{host: 'local host', Line 21: hostUuid: 'uuid of brick host', Line 22: brickName: 'local brick', Line 23: remotehost: 'slave',
Line 16: Returns: Line 17: {volumeName: 'volume name', Line 18: sessions: [{sessionKey: 'unique identification for session ', Line 19: remoteVolume: 'name of remote volume involved in session' Line 20: pairs: [{host: 'local host',
how about changing 'pairs' to 'bricks'?
Done Line 21: hostUuid: 'uuid of brick host', Line 22: brickName: 'local brick', Line 23: remotehost: 'slave', Line 24: status: 'status',
http://gerrit.ovirt.org/#/c/18414/16/client/vdsClientGluster.py File client/vdsClientGluster.py:
Line 468: remoteVolumeName) Line 469: pp.pprint(status) Line 470: return status['status']['code'], status['status']['message'] Line 471: Line 472: def do_glusterVolumeGeoRepSessionDetail(self, args):
How about glusterVolumeGeoRepSessionStatus?
Done Line 473: params = self._eqSplit(args) Line 474: volumeName = params.get('volumeName', '') Line 475: remoteHost = params.get('remoteHost', '') Line 476: remoteVolumeName = params.get('remoteVolumeName', '')
http://gerrit.ovirt.org/#/c/18414/16/vdsm/gluster/api.py File vdsm/gluster/api.py:
Line 346: volumeName, Line 347: remoteHost, Line 348: remoteVolumeName Line 349: ) Line 350: return {'geo-rep-list': status}
How about 'sessions' for 'geo-rep-list'?
Done Line 351: Line 352: @exportAsVerb Line 353: def volumeGeoRepSessionDetail(self, volumeName, remoteHost, Line 354: remoteVolumeName, options=None):
Line 356: volumeName, Line 357: remoteHost, Line 358: remoteVolumeName Line 359: ) Line 360: return {'geo-rep-session-detail': status}
How about 'sessionStatus'?
Done Line 361: Line 362: Line 363: def getGlusterMethods(gluster): Line 364: l = []
http://gerrit.ovirt.org/#/c/18414/16/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1182: return status Line 1183: Line 1184: Line 1185: @makePublic Line 1186: def volumeGeoRepSessionList(volumeName=None, remoteHost=None,
Please note that this file is one-to-one with gluster cli. It means how gl
Done Line 1187: remoteVolumeName=None): Line 1188: command = _getGlusterVolCmd() + ["geo-replication"] Line 1189: if volumeName: Line 1190: command.append(volumeName)
Line 1202: Line 1203: Line 1204: @makePublic Line 1205: def volumeGeoRepSessionDetail(volumeName, remoteHost, remoteVolumeName): Line 1206: command = _getGlusterVolCmd() + ["geo-replication", volumeName,
Please use _getGlusterVolGeoRepCmd()
Done Line 1207: "%s::%s" % (remoteHost, remoteVolumeName), Line 1208: "status", "detail"] Line 1209: try: Line 1210: xmltree = _execGlusterXml(command)
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 17: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 17:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/355... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15360/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15191/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14403/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/902... : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/362/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/920/ : FAILURE
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 17: Code-Review-1
(1 comment)
http://gerrit.ovirt.org/#/c/18414/17/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1201: raise ge.GlusterXmlErrorException(err=[etree.tostring(xmltree)]) Line 1202: Line 1203: Line 1204: @makePublic Line 1205: def volumeGeoRepStatusDetail(volumeName, remoteHost, remoteVolumeName): volumeGeoRepStatus() should do 'detail', not as separate function. Please check volumeStatus() how it handles such situation Line 1206: command = _getGlusterVolGeoRepCmd() + [volumeName, "%s::%s" % ( Line 1207: remoteHost, remoteVolumeName), "status", "detail"] Line 1208: try: Line 1209: xmltree = _execGlusterXml(command)
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 18:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 17:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/17/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1201: raise ge.GlusterXmlErrorException(err=[etree.tostring(xmltree)]) Line 1202: Line 1203: Line 1204: @makePublic Line 1205: def volumeGeoRepStatusDetail(volumeName, remoteHost, remoteVolumeName):
volumeGeoRepStatus() should do 'detail', not as separate function. Please
Done Line 1206: command = _getGlusterVolGeoRepCmd() + [volumeName, "%s::%s" % ( Line 1207: remoteHost, remoteVolumeName), "status", "detail"] Line 1208: try: Line 1209: xmltree = _execGlusterXml(command)
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 18: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 18:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/357... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15365/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15196/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14408/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/904... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/364/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/922/ : SUCCESS
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 18: Code-Review-1
(1 comment)
http://gerrit.ovirt.org/#/c/18414/18/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1128: pairDetail['filesSyncd'] = pair.find('files_syncd').text Line 1129: pairDetail['filesPending'] = pair.find('files_pending').text Line 1130: pairDetail['bytesPending'] = pair.find('bytes_pending').text Line 1131: pairDetail['deletesPending'] = pair.find('deletes_pending').text Line 1132: pairDetail['filesSkipped'] = pair.find('files_skipped').text If the above five values are added for detail, why can't we have one parser function where the five values are parsed only if detail=True? Line 1133: pairs.append(pairDetail) Line 1134: status['bricks'] = pairs Line 1135: return status Line 1136:
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 19:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 18:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/18/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1128: pairDetail['filesSyncd'] = pair.find('files_syncd').text Line 1129: pairDetail['filesPending'] = pair.find('files_pending').text Line 1130: pairDetail['bytesPending'] = pair.find('bytes_pending').text Line 1131: pairDetail['deletesPending'] = pair.find('deletes_pending').text Line 1132: pairDetail['filesSkipped'] = pair.find('files_skipped').text
If the above five values are added for detail, why can't we have one parser
Done Line 1133: pairs.append(pairDetail) Line 1134: status['bricks'] = pairs Line 1135: return status Line 1136:
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 20:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 21:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 21: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 19:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/361... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15420/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15251/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14463/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/908... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/368/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/926/ : SUCCESS
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 21: Code-Review-1
(1 comment)
http://gerrit.ovirt.org/#/c/18414/21//COMMIT_MSG Commit Message:
Line 46: deletesPending: 'Nos of deletes pending', Line 47: filesSkipped: 'Nos of files skipped'}]... Line 48: Line 49: ].... Line 50: } As per our discussion below is the output dict for SessionsList
{VOLUME-NAME: {'sessions': [{'sessionKey': KEY, 'remoteVolumeName': NAME, 'bricks': [{'host': HOST, 'hostUuid': UUID, 'brickName': NAME, 'remotehost': HOST, 'status': STATUS, 'checkpointStatus': STATUS, 'crawlStatus': STATUS, 'filesSynced': COUNT, 'filesPending': COUNT, 'bytesPending': COUNT, 'deletesPending': COUNT, 'filesSkipped': COUNT}, ...]}, ...]}, ...}
and for SessionStatus
{VOLUME-NAME: {'sessions': [{'sessionKey': KEY, 'remoteVolumeName': NAME, 'bricks': [{'host': HOST, 'hostUuid': UUID, 'brickName': NAME, 'remotehost': HOST, 'status': STATUS, 'checkpointStatus': STATUS, 'crawlStatus': STATUS}, ...]}, ...]}}
Please note that, I have changed 'fileSyncd' to 'fileSynced' Line 51: Line 52: Change-Id: I4f37f35a5480fbe049a67758e122d4a0c2eba513
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 22:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 22: Verified+1
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 21:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/21//COMMIT_MSG Commit Message:
Line 46: deletesPending: 'Nos of deletes pending', Line 47: filesSkipped: 'Nos of files skipped'}]... Line 48: Line 49: ].... Line 50: }
As per our discussion below is the output dict for SessionsList
Done Line 51: Line 52: Change-Id: I4f37f35a5480fbe049a67758e122d4a0c2eba513
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 22: Code-Review-1
(1 comment)
http://gerrit.ovirt.org/#/c/18414/22/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1169: try: Line 1170: if detail: Line 1171: return _parseGeoRepStatus(xmltree, detail) Line 1172: else: Line 1173: return _parseGeoRepStatus(xmltree) This 'if' block is not required.
return _parseGeoRepStatus(xmltree, detail)
alone works for both the cases. Line 1174: except _etreeExceptions:
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 23:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 22:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/22/vdsm/gluster/cli.py File vdsm/gluster/cli.py:
Line 1169: try: Line 1170: if detail: Line 1171: return _parseGeoRepStatus(xmltree, detail) Line 1172: else: Line 1173: return _parseGeoRepStatus(xmltree)
This 'if' block is not required.
Done Line 1174: except _etreeExceptions:
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 23: Verified+1
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 24:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 24: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 20:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/362... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15421/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15252/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14464/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/909... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/369/ : ABORTED
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/927/ : SUCCESS
Bala.FA has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 24: Code-Review+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 21:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/363... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15422/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15253/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14465/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/910... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/370/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/928/ : SUCCESS
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 22:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/364... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15424/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15255/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14467/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/911... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/371/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/929/ : SUCCESS
Piotr Kliczewski has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 24: Code-Review-1
(2 comments)
http://gerrit.ovirt.org/#/c/18414/24/vdsm/gluster/apiwrapper.py File vdsm/gluster/apiwrapper.py:
Line 201: return self._gluster.volumeGeoRepSessionStatus(masterVolumeName, Line 202: remoteHost, Line 203: remoteVolumeName) Line 204: Line 205: def geoRepSessionList(self, masterVolumeName=None, remoteHost=None, I can see that you specified all parameters optional but I do not see that in schema. Please make sure that all optional params are in schema as well. Line 206: remoteVolumeName=None): Line 207: return self._gluster.volumeGeoRepSessionList(masterVolumeName, Line 208: remoteHost,
http://gerrit.ovirt.org/#/c/18414/24/vdsm/rpc/vdsmapi-gluster-schema.json File vdsm/rpc/vdsmapi-gluster-schema.json:
Line 1338: # @geoRepPairInfo: Line 1339: # Line 1340: # Gluster geo-replication pair information. Line 1341: # Line 1342: # @host: host of the local volume Please align in line description of each attribute for all newly added types and commands. Line 1343: # Line 1344: # @hostUuid: Uuid of host for local volume brick Line 1345: # Line 1346: # @brickName: local volume brick involved in session
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 25:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 24:
(2 comments)
http://gerrit.ovirt.org/#/c/18414/24/vdsm/gluster/apiwrapper.py File vdsm/gluster/apiwrapper.py:
Line 201: return self._gluster.volumeGeoRepSessionStatus(masterVolumeName, Line 202: remoteHost, Line 203: remoteVolumeName) Line 204: Line 205: def geoRepSessionList(self, masterVolumeName=None, remoteHost=None,
I can see that you specified all parameters optional but I do not see that
Done Line 206: remoteVolumeName=None): Line 207: return self._gluster.volumeGeoRepSessionList(masterVolumeName, Line 208: remoteHost,
http://gerrit.ovirt.org/#/c/18414/24/vdsm/rpc/vdsmapi-gluster-schema.json File vdsm/rpc/vdsmapi-gluster-schema.json:
Line 1338: # @geoRepPairInfo: Line 1339: # Line 1340: # Gluster geo-replication pair information. Line 1341: # Line 1342: # @host: host of the local volume
Please align in line description of each attribute for all newly added type
Done Line 1343: # Line 1344: # @hostUuid: Uuid of host for local volume brick Line 1345: # Line 1346: # @brickName: local volume brick involved in session
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 25: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 23:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/368... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15444/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15275/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14487/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/915... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/375/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/933/ : FAILURE
Piotr Kliczewski has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 25: Code-Review-1
(1 comment)
http://gerrit.ovirt.org/#/c/18414/25/vdsm/rpc/vdsmapi-gluster-schema.json File vdsm/rpc/vdsmapi-gluster-schema.json:
Line 1417: # @GlusterVolume.geoRepSessionList: Line 1418: # Line 1419: # Gets the list of geo-Replication sessions Line 1420: # Line 1421: # @volumeName: Is an existing volume name in the local node Please add #optional in description for all optional params. Line 1422: # Line 1423: # @remoteHost: Is remote remote host name or ip Line 1424: # Line 1425: # @remoteVolumeName: Is an available existing volume name in the remote node
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 24:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/369... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15446/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15277/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14489/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/916... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/376/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/934/ : SUCCESS
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 25:
(1 comment)
http://gerrit.ovirt.org/#/c/18414/25/vdsm/rpc/vdsmapi-gluster-schema.json File vdsm/rpc/vdsmapi-gluster-schema.json:
Line 1417: # @GlusterVolume.geoRepSessionList: Line 1418: # Line 1419: # Gets the list of geo-Replication sessions Line 1420: # Line 1421: # @volumeName: Is an existing volume name in the local node
Please add #optional in description for all optional params.
Done Line 1422: # Line 1423: # @remoteHost: Is remote remote host name or ip Line 1424: # Line 1425: # @remoteVolumeName: Is an available existing volume name in the remote node
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 26:
* Update tracker::IGNORE, no Bug-Url found * Check Bug-Url::WARN, no bug url found, make sure header matches 'Bug-Url: ' and is a valid url. * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Piotr Kliczewski has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 26: Code-Review+1
Schema and api changes looks good.
Darshan N has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 26: Verified+1
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 25:
Build Successful
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/371... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15450/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15281/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14493/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/918... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/378/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/936/ : SUCCESS
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 26:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc21_created/372... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_created/15452/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/15283/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/14495/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-fc20_created/919... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el7_created/379/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_install-rpm-sanity-el6_created/937/ : SUCCESS
Dan Kenigsberg has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 26: Code-Review+2
Raising Bala's (and Piotr's) score
Dan Kenigsberg has submitted this change and it was merged.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
gluster: Added geo-replication session list and session status
This patch adds the features geo-replication session list and session status. It exposes two verbs:
*glusterGeoRepSessionList- It provides geo-replication session list of all sessions or between specified local volume and all its remote-volumes or between a specified local and remote volume. Returns: {'volume name':{ sessions: [{sessionKey: 'unique identification for session ', remoteVolumeName: 'name of remote volume involved in session' bricks: [{host: 'local host', hostUuid: 'uuid of brick host', brickName: 'local brick', remotehost: 'slave', status: 'status', checkpointStatus: 'checkpoint status', crawlStatus: 'crawlStatus'}].... }].... } }
*glusterGeoRepSessionStatus- It provides detailed status of geo-replication session between a local and remote volume. Returns: {'volume name': { sessions: [{sessionKey: 'unique identification for session ', remoteVolumeName: 'name of remote volume involved in session' bricks: [{host: 'local host', hostUuid: 'uuid of brick host', brickName: 'local brick', remotehost: 'slave', status: 'status', checkpointStatus: 'checkpoint status', crawlStatus: 'crawlStatus' filesSynced: 'nos of files syncd', filesPending: 'nos of files Pending', bytesPending: 'nos of bytes pending', deletesPending: 'Nos of deletes pending', filesSkipped: 'Nos of files skipped'}]...
}].... } }
Change-Id: I4f37f35a5480fbe049a67758e122d4a0c2eba513 Signed-off-by: Darshan N dnarayan@redhat.com Reviewed-on: http://gerrit.ovirt.org/18414 Reviewed-by: Piotr Kliczewski piotr.kliczewski@gmail.com Reviewed-by: Dan Kenigsberg danken@redhat.com --- M client/vdsClientGluster.py M tests/Makefile.am A tests/glusterGeoRepStatus.xml M tests/glusterTestData.py M tests/gluster_cli_tests.py M vdsm.spec.in M vdsm/gluster/api.py M vdsm/gluster/apiwrapper.py M vdsm/gluster/cli.py M vdsm/gluster/exception.py M vdsm/rpc/vdsmapi-gluster-schema.json 11 files changed, 345 insertions(+), 1 deletion(-)
Approvals: Piotr Kliczewski: Looks good to me, but someone else must approve Darshan N: Verified Dan Kenigsberg: Looks good to me, approved
automation@ovirt.org has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 27:
* Update tracker::IGNORE, no Bug-Url found * Set MODIFIED::IGNORE, no Bug-Url found.
oVirt Jenkins CI Server has posted comments on this change.
Change subject: gluster: Added geo-replication session list and session status ......................................................................
Patch Set 27:
Build Failed
http://jenkins.ovirt.org/job/vdsm_master_verify-error-codes_merged/6382/ : FAILURE
http://jenkins.ovirt.org/job/vdsm_master_create-rpms-el7-x86_64_merged/562/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_create-rpms-el6-x86_64_merged/559/ : ABORTED
http://jenkins.ovirt.org/job/vdsm_master_create-rpms-fc20-x86_64_merged/555/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_create-rpms-fc21-x86_64_merged/537/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-el7-x86_64_mer... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-el6-x86_64_mer... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-fc20-x86_64_me... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master-libgfapi_create-rpms-fc21-x86_64_me... : SUCCESS
http://jenkins.ovirt.org/job/vdsm_master_unit-tests_merged/4546/ : SUCCESS
vdsm-patches@lists.fedorahosted.org