13 Commits

Author SHA1 Message Date
miaohb
6612e928f1 revise the "cluster-policy-attach"
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
2016-09-23 13:40:35 +08:00
tengqm
6e41ab2265 Fix output from cluster/node delete
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
2016-08-30 21:47:33 -04:00
tengqm
6b812ff405 OSC plugin command for cluster-run
Change-Id: I9530f3ca9a679f011c94019af2fe185172ff90ad
2016-08-29 04:33:25 -04:00
Lu lei
7b83eec5b8 py3:Rmove six.iteritems/iterkeys in python-senlinclient
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
2016-08-24 14:12:35 +08:00
Ethan Lynn
a619b79c3b Reorder required parameters
This patch put required parameters to an visible position.

Change-Id: Ib68ab28c8f616d912b81ee38ec6325e087f6c648
2016-08-11 22:15:32 +08:00
tengqm
f7ecc4bb86 Add cluster_collect support
This patch adds the cluster_collect command.

Change-Id: I750a33ceb9353aa445dba8464affd8ae7798eba6
2016-08-09 11:42:53 -04:00
tengqm
69ba1c6d26 Fix nodes display in cluster-show
This patch fixes the problem caused by latest changes to openstacksdk
where 'nodes' was changed to 'node_ids'.

Closes-Bug: 1608325
Change-Id: Ie68a3af9103343b2e314d2e90d5b067cf3b8ed81
2016-07-31 22:10:00 -04:00
Jenkins
3743dbc8b9 Merge "Update senlinclient for new sdk version" 2016-07-30 15:37:05 +00:00
tengqm
dd21b7aa0b Update senlinclient for new sdk version
This patch fixes problem found after sdk version 0.9.1 which includes a
new implementation of senlin cluster resources.

Change-Id: I67b265731f34080df85233dac09c1256f43aecdb
2016-07-29 02:15:56 -04:00
Tang Chen
4437ed83be Use osc_lib instead of cliff
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
2016-06-27 20:22:56 +08:00
Tang Chen
9891067bb0 Use osc-lib instead of openstackclient
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
2016-06-24 11:58:04 +08:00
yanyanhu
84916acf84 Fix openstack cluster resize
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
2016-06-13 04:42:55 -04:00
tengqm
735b018198 Refactor osc support
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
2016-03-24 23:07:37 -04:00