279 Commits

Author SHA1 Message Date
jonnary
734c10829f Revise senlin service-list
This patch revises the field name of `senlin service-list`.

Change-Id: Ie417d31bb2ccdcd9861f7d4da2e8ff1a9e6070bc
2017-07-20 15:52:14 +08:00
Jenkins
66610c55bb Merge "Support to cluster-op and node-op operations" 2017-07-18 00:43:13 +00:00
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
tengqm
7cf040ee4a Support to cluster-op and node-op operations
This patch adds support to node-op and cluster-op operations.

Change-Id: I72de19ff5a18bf36eb8d9d2cec2d8d75f47f9f58
2017-06-30 00:38:32 -04:00
Jenkins
87d645761d Merge "Add services list" 2017-06-27 07:20:18 +00:00
Yuanbin.Chen
79b83d96ae Support receiver update operation
This patch add receiver update operation,
Then user cloud run 'receiver-update' command.
use receiver-update change has exist receiver name,action and params.

Implements: blueprint add-receiver-update

Depends-On: I228edd1f5ada5b91e82ef04c95e9a7fa2b7de305
Change-Id: I8adaef75c18b93ec46d95e91f2058f6a4b8d4608
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2017-06-15 03:45:14 +00:00
Yuanbin.Chen
c75cad3d68 Add services list
This patch add senlinclient support display senlin service status

Change-Id: I8ea92d425d0a0ce5913abafba5d66fdf3d09b80f
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2017-06-14 21:13:25 +08: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
68b54e237e Revise command reminder when we run senlin cluster-resize
This patch revises command reminder when we run `senlin cluster-resize`.
Closes-Bug: #1677559

Change-Id: Idfaf8793371c5bef9aee585d537d18acf6103bf0
2017-03-31 21:37:57 +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
8ca170092c Support check before do node-recover action
This patch add a parameter 'check' to node-recover command.
Then user could choice whether check physical resource status before do
node-recover action.
partial-blueprint: refresh-status-before-do-node-recover

Change-Id: I94e33351593ffc49458ad85abde8acba5dc972e9
2017-03-10 14:08:12 +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
Jenkins
37ab6881a9 Merge "Client support for "destroy_after_deletion" in cluster del nodes" 2017-02-15 09:07:18 +00:00
Jenkins
0070f980d0 Merge "Print support status while listing policy types" 2017-02-15 05:48:24 +00:00
Jenkins
c47aad60ae Merge "Support status output for profile type list" 2017-02-15 05:48:15 +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
tengqm
fc00ae7d5e Print support status while listing policy types
This adds the output of support status when listing policy types.

Change-Id: Id1ac701e06257a13d19b6773a87b438d5864ea46
2017-02-10 00:54:55 -05:00
tengqm
f9fa670aaf Support status output for profile type list
Change-Id: Ica9b28977695ffdef7e2e64d7b6581181dbd2366
2017-02-10 00:45:23 -05:00
Jenkins
50a340000a Merge "Add user_id in receiver list" 2017-01-28 09:14:20 +00:00
jonnary
809a90ec6c Fix senlin cluster-policy-detach cannot disable
This patch fixes enabled option parameter of senlin cluster-policy-detach
command.

Change-Id: I55484e0738a282eab459084c6ac032c1a8956d27
Closes-Bug: #1659188
2017-01-25 12:09:52 +08:00
chohoor
ca3e3285d1 Add deprecation of cluster-run cli
Change-Id: I337349192292894204282abaa82e68cb159ede97
2017-01-19 17:29:22 +08:00
miaohb
aed76e662b Client support for "destroy_after_deletion" in cluster del nodes
This patch adds senlin client support for "destroy_after_deletion"
in cluster del nodes.

Change-Id: Ib32eb0d5eb3ae7f4fae742bcab31bd4ca76ac5ea
2017-01-07 14:46:15 +08:00
miaohb
a834bf97e3 Add user_id in receiver list
This patch adds the "user_id" column in receiver list.

Change-Id: Ic6a635cc652e4a7356cdd5984099e0c174f330fc
Closes-Bug: #1653579
2017-01-03 14:32:32 +08:00
miaohb
fc4b167301 Trivial: Modify the description of policy validate
The spec file should be of the policy to be validated, not created.

Change-Id: Icd31c549a7447022405051213c13e4b9b33f8de7
2016-12-27 06:19:16 +00:00
miaohb
2e1a6d1880 Trivial: Modify the description of profile validate
The spec file should be of the profile to be validated, not created,
which is copied from profile create.

Change-Id: Idd7b5426da45ca93c9405fd860c47178ffa1a399
2016-12-27 04:29:05 +00:00
miaohb
792f6aa37d Enhance the parameter check for "path" in cluster collect
Set the parameter "path" as required in senlinclient.

Change-Id: I0ff95ac201ad3b1e6bbfc22cebf258d68cb4f31e
Closes-Bug: #1643401
2016-12-19 09:46:03 +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
zhangyanxian
7a3a3f08d3 Fix import method to follow community guideline
Instead of "from i18n import _ 
            from i18n import _LE"
this style "from i18n import _, _LE" is recommended as community guideline [1].
[1]http://docs.openstack.org/developer/hacking/#real-world-import-order-examples

Change-Id: I34636afad831522e0781a5e48c5a25e960a04ff5
2016-12-02 03:07:53 +00:00
Jenkins
fb7d5268da Merge "Fix project_id show in 'senlin xyz_list -g'" 2016-12-01 07:00:14 +00:00
Jenkins
3a120b0791 Merge "Fix resource update issues" 2016-12-01 06:51:18 +00:00
xu-haiwei
e01394344f Fix resource update issues
Currently when updating a resource, the 'id' is not allowed to be
in the request body, openstacksdk is can not checking whether 'ID'
is legal or not. So pass an object to openstacksdk to get through.

Change-Id: I3b52ef9ceaa75ab28c3bb52a314b044fa51e6dda
2016-12-01 06:28:39 +00:00
Jenkins
b77dab2baa Merge "Correct deprecation of scale-in and scale-out cli" 2016-11-29 01:43:33 +00:00
jolie
4c3561bb2d Correct deprecation of scale-in and scale-out cli
Senlin is going to switch to openstackclient after Apr,2017.
The corresponding command in openstackclient is cluster shrink
and cluster expand not quite familiar with python-senlinclient.
So it's better to correct deprecation in scale-in and scale-out
commands to inform user with the going change.

Change-Id: I29a277fa91a029a029512b1ff9f163fe51ed388b
closes-bug:#1645249
2016-11-28 17:33:18 +08:00
Jenkins
4a40ebd395 Merge "Fix error in policy-show" 2016-11-25 09:46:47 +00:00
Jenkins
e1fe70f075 Merge "Fix error in cluster collect" 2016-11-25 09:44:02 +00:00
Jenkins
f88142315e Merge "Revise the help message of cluster-collect" 2016-11-25 09:20:45 +00:00
miaohb
d40787a747 Fix error in policy-show
The help of argument "id" is copied from "policy-update".
This patch will fix it.

Change-Id: Ia64305ae4887eee2b0dfb650b64e0d549f4fcd63
Closes-Bug: #1644750
2016-11-25 17:18:43 +08:00
lvdongbing
60c4eddc9b Fix project_id show in 'senlin xyz_list -g'
This patch fixes the issue that project_id is wrong when using
`senlin xyz_list -g`.

Depends-On: If5b14270fd339c199261e803d953e8dda6ef3151
Change-Id: I4cf47a8f09b5f5359c085f828333757db01ad3d0
2016-11-24 12:57:06 +00:00
miaohb
c1ccd71ff2 Fix error in cluster collect
Formatter of "attr_value" is error, which will cause "ValueError"
when doing print_list. This patch changes its formatter from
"json_formatter" to "lambda x: utils.json_formatter(x.attr_value)"

Change-Id: Ie058b034ab27b8600ebad07429012c3fea671775
Closes-Bug: #1643454
2016-11-22 18:06:43 +08:00
Jenkins
747760f6ce Merge "Revise 'openstack cluster node members list'" 2016-11-22 02:39:52 +00:00
Jenkins
7c05b0c7d1 Merge "Show project_id field when xyz-list with global-project" 2016-11-22 02:34:03 +00:00
miaohb
ace0eb502a Revise the help message of cluster-collect
In the help info, the default value of "--list" is True,
but actually it is False.

Change-Id: I7d10e4e1d467fd2ea476e3a1d05524ba4b52e2b1
Closes-Bug: #1643441
2016-11-22 08:58:49 +08:00
jonnary
86376d95df Support "global_project" arguments for action-list
In python-openstacksdk, senlin-api,senlin-engine layers,
"global_project" option has been support for action-list.
But in senlin client and db layer this hasn't been supported.
This patch Add "global_project" arguments for action-list in
senlinclient.

Depends-On: I064422a2b7058a1353206ab0978fe8ce0bffd732
Change-Id: Iaae58e8121e20789d072d5acbe28921ec255a8e0
2016-11-19 10:03:56 +00:00
jonnary
0b8a91c096 Revise 'openstack cluster node members list'
There is no command named 'openstack cluster node members list',
it should be 'openstack cluster members list'.

Change-Id: I2d301b01fba5cea94d39a8eba999533edc122b93
2016-11-19 14:13:16 +08:00
miaohb
f800068648 policy binding update cannot work
The value of args.enabled must change from string to bool
Revise the related unit test

Change-Id: Id297a26799ddad00221ef71f2e6c2f70b8e21ede
Closed-Bug: 1639687
2016-11-07 13:36:29 +08:00