diff options
author | Alex O'Rourke <alex.orourke@hpe.com> | 2016-03-01 08:51:53 -0800 |
---|---|---|
committer | Alex O'Rourke <alex.orourke@hpe.com> | 2016-03-01 08:58:38 -0800 |
commit | 66f7a083851a6b6adebc4e8b1a5736e1191a409d (patch) | |
tree | 52576434dba8970c3258d1b2461cc51c5ac96dc7 /cinderclient/v2/shell.py | |
parent | c4f4ae200a2efd750a8dbcd1e1f6df3a2ddf94e8 (diff) | |
download | python-cinderclient-aeb0f1241d7911ab777bbaf19deb7ae23f19d42a.tar.gz |
Remove replication v2 calls1.6.0
With replication v2.1 merged in cinder and the calls merged in the
client, there is no longer a need for the old calls. If these commands
are called with the newest cinder code, it fails miserably.
Basically reverts this patch: https://review.openstack.org/#/c/231708
Change-Id: I29c0565c1efe518e40c3483ceb4ca0d40cd7d0d7
Diffstat (limited to 'cinderclient/v2/shell.py')
-rw-r--r-- | cinderclient/v2/shell.py | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index 409675e..2dec452 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -1287,60 +1287,6 @@ def do_migrate(cs, args): six.text_type(e))) -@utils.arg('volume', - metavar='<volume>', - help='ID of volume to enable replication.') -@utils.service_type('volumev2') -def do_replication_enable(cs, args): - """Enables volume replication on a given volume.""" - volume = utils.find_volume(cs, args.volume) - volume.replication_enable(args.volume) - - -@utils.arg('volume', - metavar='<volume>', - help='ID of volume to disable replication.') -@utils.service_type('volumev2') -def do_replication_disable(cs, args): - """Disables volume replication on a given volume.""" - volume = utils.find_volume(cs, args.volume) - volume.replication_disable(args.volume) - - -@utils.arg('volume', - metavar='<volume>', - help='ID of volume to list available replication targets.') -@utils.service_type('volumev2') -def do_replication_list_targets(cs, args): - """List replication targets available for a volume.""" - volume = utils.find_volume(cs, args.volume) - resp, body = volume.replication_list_targets(args.volume) - if body: - targets = body['targets'] - columns = ['target_device_id'] - if targets: - utils.print_list(targets, columns) - else: - print("There are no replication targets found for volume %s." % - args.volume) - else: - print("There is no replication information for volume %s." % - args.volume) - - -@utils.arg('volume', - metavar='<volume>', - help='ID of volume to failover.') -@utils.arg('secondary', - metavar='<secondary>', - help='A unique identifier that represents a failover target.') -@utils.service_type('volumev2') -def do_replication_failover(cs, args): - """Failover a volume to a secondary target""" - volume = utils.find_volume(cs, args.volume) - volume.replication_failover(args.volume, args.secondary) - - @utils.arg('volume', metavar='<volume>', help='Name or ID of volume for which to modify type.') @utils.arg('new_type', metavar='<volume-type>', help='New volume type.') |