From 075381d0aa6ff775cc9e7aa3d0bc713190bb2733 Mon Sep 17 00:00:00 2001 From: Kuo-tung Kao Date: Mon, 29 Jun 2015 15:16:36 +0800 Subject: [PATCH] Add more details for replication Show more information when user uses help function to get more details about replication-promote and replication_reenable. Change-Id: Icd41bd746c32cdfabbd27a80a818344136e7b71a Closes-Bug: #1401877 --- cinderclient/v2/shell.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index a85d77fe5..aa80f6cee 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -1934,7 +1934,9 @@ def do_unmanage(cs, args): @utils.arg('volume', metavar='', - help='Name or ID of the volume to promote.') + help='Name or ID of the volume to promote. ' + 'The volume should have the replica volume created with ' + 'source-replica argument.') @utils.service_type('volumev2') def do_replication_promote(cs, args): """Promote a secondary volume to primary for a relationship.""" @@ -1943,7 +1945,8 @@ def do_replication_promote(cs, args): @utils.arg('volume', metavar='', - help='Name or ID of the volume to reenable replication.') + help='Name or ID of the volume to reenable replication. ' + 'The replication-status of the volume should be inactive.') @utils.service_type('volumev2') def do_replication_reenable(cs, args): """Sync the secondary volume with primary for a relationship."""