In a cluster, nodes can have differnet profiles.
So here the profile id or name is a default profile.
Change-Id: Ifce8ed47d3270203f08db5df2901fd54d918ec0a
cluster-show command returned a redundant value named is_profile_only,
this path removed the redundant value because it is not a attr belong
to cluster.
Change-Id: Ic11d0b8ea8eb07a0bbe3b3e125b1ba7d34663784
Closes-Bug: #1693156
This patch add a param 'check' to cluster-recover command.
Then user could choise whether the cluster should check it's nodes
status before doing cluster-recover action.
partial-blueprint: check-before-do-cluster-recover
Change-Id: I390c604c15d8fa841a44d905793198b09dbaf08e
This path revises cluster-update command.
The command could support 'profile-only' parameter.
partial-blueprint: add-profile-only-to-cluster-update
Change-Id: Ibf2e4d67abe76b92a508a3e22e5c528d53cde5a4
Signed-off-by: chohoor <chohoor@gmail.com>
As mentioned in [1], we should avoid using six.itervalues.
We can use dict.values instead.
[1]https://wiki.openstack.org/wiki/Python3
Change-Id: I0e6319adb8c84b88df0240cc0a5e8490d9352dd1
This patch add paramater of CLUSTER_DEL_NODES in client.
Depends-On: I8b76cbebf1c973ea39d34f11b1b8c2f19fa2416f
Change-Id: If305f6fe8e49df0ec28ad2744676ea574aeed2ef
We have supported metadata clean before.This patch adds
help for this function.
Change-Id: I0aba991202ec6053228678dea63ac15679cfd92b
Depends-On:Id541b209b2e0a67a5243ccc3099ed3f5a8d13460
When create profile, we use profile name only.
When we update cluster and node, we can use both profile id or name.
Change-Id: I45c5556667cc2b9c49aac27ab8def6cbf9e3f6d0
According to the original design, change the type of the parameter
"enabled" in cluster-policy-attach to boolean.
Change-Id: Ie8a7c021850f0d14e2bd8d9cfd74a8b844654efc
The parameter "--enabled" in "cluster policy attach" is useless,
which can not be set to False. Here we try to fix it so that
the parameter can be assigned to False when doing attach.
Change-Id: I0b5de3c6f61c38c62ac8c7e1b95d523175bbc11c
Closed-Bug: 1626833
As requested by some users, we are supposed to output the action IDs
spawned at server side when deleting cluster or node.
Change-Id: Id339affb413f81aa12cf00d86122d00e2302e471
Closes-Bug: #1564711
1、As mentioned in [1], we should avoid using six.iteritems/keys achieve
iterators. We can use dict.items/keys instead, as it will return iterators in
PY3 as well. And dict.items/keys will more readable.
2、In py2, the performance about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: I75d12f56821666ebaec8350acba3a5fc29957f1e
This patch fixes the problem caused by latest changes to openstacksdk
where 'nodes' was changed to 'node_ids'.
Closes-Bug: 1608325
Change-Id: Ie68a3af9103343b2e314d2e90d5b067cf3b8ed81
This patch fixes problem found after sdk version 0.9.1 which includes a
new implementation of senlin cluster resources.
Change-Id: I67b265731f34080df85233dac09c1256f43aecdb
Base classes of commands are defined in cliff,
but have been encapsulated again in osc-lib for
all plugin clients. So use osc-lib instead of
cliff.
Change-Id: I7b64c4dbedf270720f222471d57b9e20ab5a046c
osc-lib is a package of common support modules for writing
OSC plugins. All common functions, classes such as exceptions,
utils, logs and so on have been moved from openstackclient to
osc-lib.
So use osc-lib instead of openstackclient.
Change-Id: I94fceb763e7370596357db949f5e3eef091ee561
User should be allowed to resize cluster without
changing its size. This patch removes incorrect
constraint defined in openstack cluster resize
implementation.
Change-Id: I7592f76d23a583bcc696a86dc75ada41be6b0f9d
This patch refactors the OSC (OpenStackClient) support so that they are
moved out of a sub directory. We will use it as the 'default' CLI while
deprecating the previous shell.
Change-Id: I2553f0f38e5fa30735be63ab00dec4b3a4080ba5