ndarshan has posted comments on this change.
Change subject: gluster Geo-replication: command to create and delete a geo-replication
session
......................................................................
Patch Set 8:
(7 comments)
....................................................
File vdsm/gluster/cli.py
Line 905: if rc:
Line 906: raise ge.GlusterGeoRepPublicKeyFileCreationFailedException(rc,
Line 907: out, err)
Line 908: path = out.partition('/')
Line 909: if not os.path.isfile('/'+path):
Done
Line 910: raise ge.GlusterGeoRepPublicKeyFileDoesNotExistException(rc, out, err)
Line 911: else:
Line 912: return True
Line 913:
....................................................
File vdsm/gluster/exception.py
Line 492: message = "Gluster Geo-Replication Exception"
Line 493:
Line 494:
Line 495: class GlusterGeoRepPublicKeyFileCreationFailedException(GlusterGeoRepException
Line 496: ):
Done
Line 497: code = 4561
Line 498: message = "Creation of public key file failed"
Line 499:
Line 500:
....................................................
File vdsm/gluster/vdsmapi-gluster-schema.json
Line 374: 'returns': 'GlusterServicesStatusInfo'}
Line 375:
Line 376: ## Category: @GlusterGeoReplication
######################################################
Line 377: ##
Line 378: # @GlusterGeoReplication:
Instead of having a separate category, I will add the following two under GlusterVolume
category which is already created in patch [WIP]vdsmapi: gluster: vdsmapi schema
definitions for existing gluster verbs. I will make my patch dependent to that patch.
Line 379: #
Line 380: # Gluster Geo Replication object.
Line 381: #
Line 382: # Since: 4.10.3
Line 392: # @mastervolname: is an existing volume name in the master node
Line 393: #
Line 394: # @slavehost: is remote slave host name or ip
Line 395: #
Line 396: # @slaveVolName: is an available existing volume name in the slave node
Done
Line 397: #
Line 398: # Returns:
Line 399: # True if session is successfully created
Line 400: #
Line 400: #
Line 401: # Since: 4.10.3
Line 402: ##
Line 403: {'command': {'class': 'GlusterGeoRep', 'name':
'create'},
Line 404: 'data': {'masterVolName': 'str', 'slaveHost':
'str', 'slaveVolName': 'str', 'Force': 'bool'},
Done
Line 405: 'returns': 'bool'}
Line 406:
Line 407:
Line 408:
Line 403: {'command': {'class': 'GlusterGeoRep', 'name':
'create'},
Line 404: 'data': {'masterVolName': 'str', 'slaveHost':
'str', 'slaveVolName': 'str', 'Force': 'bool'},
Line 405: 'returns': 'bool'}
Line 406:
Line 407:
Done
Line 408:
Line 409: ##
Line 410: # @GlusterGeoRep.delete:
Line 411: #
Line 417: #
Line 418: # @slaveVolName: is an available existing volume name in the slave node
Line 419: #
Line 420: # Returns:
Line 421: # True if session is successfully Deleted
Done
Line 422: #
Line 423: # Since: 4.10.3
Line 424: ##
Line 425: {'command': {'class': 'GlusterGeoRep', 'name':
'delete'},
--
To view, visit
http://gerrit.ovirt.org/17644
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: If8c979a89ce11a1622819c474b59dcf088733594
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: ndarshan <dnarayan(a)redhat.com>
Gerrit-Reviewer: Aravinda VK <avishwan(a)redhat.com>
Gerrit-Reviewer: Bala.FA <barumuga(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Timothy Asir <tjeyasin(a)redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: ndarshan <dnarayan(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes