44 Commits

Author SHA1 Message Date
jonnary
8a03b35610 Profile id or name is a default profile
In a cluster, nodes can have differnet profiles.
So here the profile id or name is a default profile.

Change-Id: Ifce8ed47d3270203f08db5df2901fd54d918ec0a
2017-07-11 16:21:24 +08:00
Jenkins
79a9a760b0 Merge "Check node status before do cluster-recover action" 2017-07-03 02:05:57 +00:00
chohoor
0a8fa962c4 remove redundant value when cluster-show
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
2017-05-27 09:34:19 +08:00
chohoor
116eeec54a Check node status before do cluster-recover action
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
2017-05-05 15:32:57 +08:00
Jenkins
39c943bb77 Merge "Support profile-only to cluster update" 2017-04-03 02:23:06 +00:00
jonnary
62a84cf3cb Revise command reminder when we run openstack cluster resize
This patch revises command reminder when we run `openstack cluster resize`.
Closes-Bug: #1677565

Change-Id: Ifeee8e46a5c1035fb05c403dfe12746d924a70ed
2017-04-02 16:43:14 +08:00
liyi
6d238496e8 Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: If4d80503845a14ebf3778cad36b6a21aac4eec54
2017-03-23 11:37:47 +08:00
chohoor
06b91c7712 Support profile-only to cluster update
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>
2017-03-10 13:04:01 +08:00
Aaron-DH
46ebf3e195 Fix cluster update failed problem
This patch fix cluster update cmd with openstack client

Closes-Bug: #1664885

Change-Id: I972bea595dff4c581ec5374e10aa4ee1042448f1
2017-02-15 17:24:20 +08:00
Jenkins
9e53229b64 Merge "Add parameter in CLUSTER_DEL_NODES action" 2017-02-15 05:49:10 +00:00
jolie
a52dbabcc0 Replace six.itervalues with dict.values()
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
2017-02-14 17:56:04 +08:00
jolie
0798492bf4 Add parameter in CLUSTER_DEL_NODES action
This patch add paramater of CLUSTER_DEL_NODES in client.

Depends-On: I8b76cbebf1c973ea39d34f11b1b8c2f19fa2416f
Change-Id: If305f6fe8e49df0ec28ad2744676ea574aeed2ef
2017-01-03 15:33:07 +08:00
Jenkins
31a2c0a0df Merge "Add metadata clean help" 2016-12-13 03:24:20 +00:00
miaohb
d724f4109d Client support for node replace
This patch adds support for "cluster members replace" at client side.

partial-blueprint: support-cluster-replace-action
https://blueprints.launchpad.net/senlin/+spec/support-cluster-replace-action

Change-Id: Ibb1180402281036aa26b47968c0e6e5c1303f4c4
2016-12-12 15:40:40 +08:00
jonnary
43bd4f6d84 Add metadata clean help
We have supported metadata clean before.This patch adds
help for this function.

Change-Id: I0aba991202ec6053228678dea63ac15679cfd92b
Depends-On:Id541b209b2e0a67a5243ccc3099ed3f5a8d13460
2016-12-10 18:04:59 +08:00
miaohb
333ba62294 Trivial: Fix a typo in cluster-run's error message
Change-Id: I5d099447bb71ca3a5a94928619afad62bdb83f32
typo: "Cound not open script file" to "Could"
2016-11-23 15:31:06 +08:00
Jenkins
11191fc11c Merge "Point out valid filter keys in openstack cluster member list" 2016-11-22 03:00:27 +00:00
jonnary
b6905207c7 Point out valid filter keys in openstack cluster member list
This patch points out valid filter keys in `openstack cluster member list`

Change-Id: I7c4be7ea1450e66f6ab9b9324e12d1f21af29f16
2016-11-22 10:59:40 +08:00
jonnary
985ac95301 key=value should be key2=value2
This patch revise cluster list filters's metavar.

Change-Id: I4ccd4f0e4820dafcda2c1320115534d98dba0e0e
2016-11-22 02:42:12 +00:00
Jenkins
cb7ef8015d Merge "Revise the help info of cluster collect" 2016-11-22 02:41:42 +00:00
Jenkins
692b528af2 Merge "Revise key1=value to key1=value1" 2016-11-22 02:40:01 +00:00
Jenkins
c394c5ed98 Merge "Point out valid sort keys in openstack cluster member list" 2016-11-22 02:39:25 +00:00
Jenkins
7c05b0c7d1 Merge "Show project_id field when xyz-list with global-project" 2016-11-22 02:34:03 +00:00
miaohb
ed1495f369 Revise the help info of cluster collect
Its help message is copied from "cluster recover", should be
modified.

Change-Id: I7b23d1cf3cf908b9cc7aa4a0b0c913f760819bf6
Closes-Bug: #1643395
2016-11-21 16:36:55 +08:00
jonnary
aa8802801d Revise key1=value to key1=value1
This patch revises key1=value to key1=value1

Change-Id: Ibcfac3de2a0fb63d4981f1d39631c7793609de73
2016-11-19 11:23:47 +00:00
jonnary
1d198552c8 Point out valid sort keys in openstack cluster member list
This patch points out valid filter keys in `openstack cluster member list`.

Change-Id: I34d25c285711c16b0484162b68d4795bba1b8787
2016-11-19 14:15:53 +08:00
miaohb
544e3070a3 cluster policy attach cannot work
The value of parsed_args.enabled must be changed from string
to bool

Change-Id: Icf4fb6d93db269ebfe828d57736563d20a90686d
Closed-Bug: 1639706
2016-11-07 14:32:01 +08:00
lvdongbing
3940b7df38 Show project_id field when xyz-list with global-project
Change-Id: I1a3b6d607e9c70eaf7f5fa10ee3a802ca720b279
2016-10-26 22:44:29 -04:00
jonnary
ed4b2905cb All dictionary options need be a string
All dictionary options need be a string, otherwise only the first
"key: value" valids.

Change-Id: I17802a362b0e78f2d9a5a4930472704f76510fd6
2016-10-26 09:18:41 -07:00
jonnary
c94ab235d2 profile's name also can be use in some commands
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
2016-10-26 06:49:37 -07:00
miaohb
b7cd21047c Change the type of the parameter "enabled" to boolean
According to the original design, change the type of the parameter
"enabled" in cluster-policy-attach to boolean.

Change-Id: Ie8a7c021850f0d14e2bd8d9cfd74a8b844654efc
2016-10-08 16:27:50 +08:00
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