From afa22814249c9130bd64b94915bb43e3843848d9 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Mon, 26 Dec 2016 09:53:14 +0530 Subject: [PATCH] Allow cluster-config on cluster status 'ROLLBACK_COMPLETE' When cluster is updated with --rollback and cluster update fails the cluster state changes to 'ROLLBACK_COMPLETE'. We should allow cluster-config to work on 'ROLLBACK_COMPLETE' state as well. Change-Id: Iada1aa5451374b881085a3447af6ce6d0cabada6 Closes-Bug: #1652560 --- magnumclient/v1/clusters_shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magnumclient/v1/clusters_shell.py b/magnumclient/v1/clusters_shell.py index 7db5a68c..3f9deed2 100644 --- a/magnumclient/v1/clusters_shell.py +++ b/magnumclient/v1/clusters_shell.py @@ -235,7 +235,8 @@ def do_cluster_config(cs, args): """ args.dir = os.path.abspath(args.dir) cluster = cs.clusters.get(args.cluster) - if cluster.status not in ('CREATE_COMPLETE', 'UPDATE_COMPLETE'): + if cluster.status not in ('CREATE_COMPLETE', 'UPDATE_COMPLETE', + 'ROLLBACK_COMPLETE'): raise exceptions.CommandError("cluster in status %s" % cluster.status) cluster_template = cs.cluster_templates.get(cluster.cluster_template_id) opts = {