64 Commits

Author SHA1 Message Date
jonnary
8682e2fc5e Fix openstack cluster service
1 Better to use command.Lister;
2 Revise to `openstack cluster service list`
3 Indeed, this command can't work now, implement it.

Closes-Bug: #1705321
Change-Id: I5986751ba6d8a0b33c3c3d53e1efd93f7003d028
2017-07-20 02:31:12 +08:00
jonnary
2300c078b2 List services doc link cannot be found
This patch revieses list services dock link.

Change-Id: Iefdd26c30ed42f192054f81b36db932c407c5507
2017-07-19 00:36:30 +08: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
Jenkins
4628248695 Merge "Support receiver update operation" 2017-06-27 07:19:52 +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
Yuanbin.Chen
d5e33217a7 Fix development document api-ref link error
Change-Id: I125aed809994dc4bebcaa4d04da833e930c22da7
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2017-06-03 01:18:29 +08:00
Ethan Lynn
491bc8fcbf Fix cluster_collect interface
Fix cluster_collect interface

Change-Id: I348b74bda50278cde70cd7b1546917992e1b875a
2017-01-23 16:02:47 +08: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
Jenkins
2062633993 Merge "Add policy validate operation to senlinclient" 2016-08-25 03:06:02 +00:00
Jenkins
82001696e0 Merge "Add profile validate operation to senlinclient" 2016-08-25 03:05:57 +00:00
Ethan Lynn
57aa17c9ec Fix get_node
Passing the correct args.

Change-Id: Ib890e6f7742fe2673570b2e141a3905d51e46caa
2016-08-24 18:32:04 +08:00
Ethan Lynn
3a212cde40 Add policy validate operation to senlinclient
Add policy validate operation to senlinclient

Change-Id: Ic014bbe199e00973e7fc0bfd39fdb08241c64d8f
2016-08-23 11:33:50 +08:00
Ethan Lynn
e450261b02 Add profile validate operation to senlinclient
Add profile validate operation to senlinclient

Change-Id: I7fd1e5e3fa9115ba270f2c0e5f645ac5183622e3
2016-08-23 11:18:44 +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
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
zzxwill
c67fe18766 Correct some typos
During my review of the project, I corrected these typos
to make it more clear. If we will generate docs based on
the code, this will help.

Change-Id: Iee3d9210431e0489c4872637fe04409fe0addc0e
2016-04-12 01:22:58 +00:00
yanyanhu
e42edf4d61 Add link to API doc in client module
This patch adds link to Senlin API document in client module to
give developers a guide to invoke senlinclient interfaces.

Change-Id: I1671e0f0f3df15cd9667ff2b039e61d5b462e8e7
2016-04-01 10:11:19 -04:00
Cindia-blue
0dbef6f95a Add cluster check and recover into CLI
Expose check and recover for manual health management scenario

Change-Id: Ib669d4e759d74f9dc7054e91d7247d50c90d41ed
Implements: blueprint support-health-management-customization
2016-03-14 11:02:16 +08:00
Cindia-blue
ed810946df Add node check and recover into CLI
Expose check and recover for manual health management scenario

Implements: blueprint support-health-management-customization

Change-Id: Ib5f3c6710459d31831f842534acaae547336d23f
2016-02-16 11:05:29 +08:00
tengqm
769a517a0a Add back show_details for node-show
We temporarily removed 'show_details' support due to SDK support. This
feature is not part of SDK now after the following patch is merged.
This patch proposes adding back the support.

https://review.openstack.org/262367

Change-Id: Iac00a927b0ebf9cbfe81d73b021c9ed4304f9985
2016-01-18 04:15:10 -05:00
tengqm
5285346821 Unit test for v1 client
This patch adds the missing unit tests for v1 client module.

Change-Id: Id836e9ab72283a9af65da151135a87d5668f99df
2016-01-18 03:01:49 -05:00
Ethan Lynn
8ff51b8398 Remove node join/leave from senlinclient
Remove node join/leave from senlinclient

Change-Id: Iad829753df418e5fe236d8d3f2a7c5151ce3cc02
2016-01-15 12:19:41 +08:00
tengqm
d14f733765 Switch to use SDK calls in client
This patch revises more calls from client side to use SDK interface.

Change-Id: I3ec4c3e7315f204d4eb6022bed63abd6b28e8157
2016-01-04 01:36:36 -05:00
tengqm
32535578c5 Make cluster action calls use SDK interface
Switch to use SDK interface directly for cluster action calls.

Change-Id: I79f4c281f9ec4393f91e81de7548ac523158f221
2016-01-01 10:36:29 -05:00
tengqm
64e9afa470 Directly use SDK calls in client (1)
Switch to use SDK calls from senlinclient.

Change-Id: I26383e44c2c8e59a3265846a172b22cf9a6d0f2a
2015-12-22 00:43:56 -05:00
tengqm
e69dc946f2 Use SDK calls when possible
This patch proposes a migration to use SDK calls directly from the
client module. After this migration is completed, we don't need to
maintain the 'models' in this project any more.

Change-Id: I3be1814634858278b2dc77a759c86ce315c51b8f
2015-12-21 21:52:39 -05:00
tengqm
7dbf6250d9 Client support to receivers
This patch adds client side support to receivers.

Change-Id: Ifc15a524a8a7de1a7e283119385bfd2a5cf43481
partial-blueprint: support-general-receiver-abstraction
Depends-On: I400f9d34737d443e1cc4b7f4fcc6f6241ff96bd2
2015-12-21 04:14:33 -05:00
tengqm
ceebe98a79 Fix profile/policy schema calls
This patch is the client side fix for profile-type-schema and
policy-type-schema.

Depends-On: I61a406ec941f902cb88e4ec521a42af05bb5a93a
Change-Id: I3a932c47b3f72bc256ad49d1994301714e7df398
2015-12-06 23:52:43 -05:00
Haiwei Xu
598e881aea Fix profile update parameters passing error
Currently profile udpate fails due to parameters
passing problem.

Change-Id: I1d31cd675b58ea1f941c6fd2486c7042739a9229
Closes-bug: #1521832
2015-12-02 15:00:30 +09:00
Haiwei Xu
74282d003f Remove Trigger related sources in client side
Change-Id: Ibca6c89ce744da264c990bc4192b9db5533de31a
Closes-bug: #1520030
2015-11-27 16:25:07 +09:00
tengqm
0e1e4857f6 Fix bug introduced by openstacksdk
This patch sets the default auth_plugin to 'password', it also removes
the authenticator reference from client module. These code are breaking
the client code.

Change-Id: I7f815d3847b0bd0f5e6c3f78c2cc0efd3c80a523
2015-11-24 02:00:25 -05:00
tengqm
f6935eacc7 Remove unused methods in client module
This patch proposes a removal of some methods that are never used in the
client module. They will eventually get invoked from sdk. We don't need
to do this at senlin client's side.

Change-Id: I9dd0cb9a3d60fba5e6c2cd3b7c1502d03b91119f
2015-11-06 04:59:54 -05:00
tengqm
6267116c7d Revised client interface
This is an effort to make the interface exposed by senlinclient more
usable for other software. Eventually, all these logic will go to
either openstackclient or openstacksdk, but for now we keep it locally
to make things work.

Change-Id: I25fdb0f3bb224951256ccb0eeafa09e906195805
2015-11-04 03:35:06 -05:00
tengqm
63b8839741 Fix client constructor for ease of use
This patch optimizes the client constructor so that caller doesn't have
to provide user_preferences or user_agent arguments. It would be a
convenience for projects such as senlin-dashboard.

Change-Id: I0e98fb055441a941ad7c9da6e36b4a388ae0a75a
2015-09-30 04:45:26 -04:00
tengqm
256e6302bd Revise client constructor
This patch revises the client.Client constructor so that other software
can invoke senlinclient in the same way as they do with other client
packages.

Change-Id: I060e2bf70d51ec381934cfd487a1a6cb44f0edd2
Closes-Bug: #1498906
2015-09-23 11:14:52 -04:00
Haiwei Xu
6fdbce89e4 Fix TypeError when doing cluster-scale-in
When trying to scale-in a cluster without configuring
'count' option, TypeError will happen. This is because
'count' is not the key of 'params'.

Closes-Bug: #1485820
Change-Id: I753bf2f9234910271254e6a60110b98a3d9994c7
2015-08-18 10:39:01 +09:00
tengqm
ec2c542b7c Fix resource listing error
This patch fixes the cluster-policy-list operation error where
'path_args' was not treated in a dedicated parameter.

Change-Id: I3a259b58585d9900e8db9ace141d85369f854bad
2015-07-25 10:49:22 -04:00
tengqm
d355c0b65a Fix list operation based on sdk interface
The SDK provides an additional parameter 'paginated' for specifying
whether the result will be paginated at server side. This feature saves
us from hacking the list function.

Also, the latest SDK revision has consolidated all kwargs in to a single
parameter named 'params'. This patch also fixes this problem.

Change-Id: Ib4ce1d03d18fe38cb655c541547faf41f3312a26
2015-07-18 01:55:59 -04:00
tengqm
bac0b1cde6 Remove thin methods which is not used
Due to recent changes in OpenStack SDK:

https://review.openstack.org/#/c/200822/

We will not use the thin interface any more.

Change-Id: Iab6648d45e855af55d1237c13e721df6d847c206
2015-07-16 05:09:54 -04:00
tengqm
bf4f39564d Try please flake8 for imports grouping
Flake8 is now complaining about the grouping of imports. This patch try
please it by moving imports around.

Change-Id: I65a0ee03d8fcc78de597d06424f647e0a2d2beae
2015-05-15 03:32:10 -04:00
tengqm
1558e75dee Add --details argument to node-show
This new parameter is used to show details of a physical node.

Change-Id: Ifad04a2ce9c352f48ad21bf07bebbbdf677a422c
2015-04-21 09:56:51 -04:00
yanyanhu
e711680767 Add webhook support
Change-Id: Ia34a449eeb22b41e9725500b4eb80a437ffd8c3c
2015-04-17 04:08:56 -04:00
tengqm
244357258e Fix initial gate errors
Change-Id: I8e7e0a65d658f5356a7e4e8436888d195bb53fe7
2015-03-21 18:42:25 +08:00
tengqm
4fc573db5a Ignore return value from update() 2015-03-03 18:00:53 +08:00
tengqm
70d3dab2e6 Added support to policy-update operation 2015-03-03 13:17:53 +08:00
tengqm
2217caed37 Support to cluster-node-add operation 2015-02-06 20:29:36 +08:00
tengqm
fd020012e1 Enable client module to handle any exception 2015-02-01 16:30:04 +08:00
tengqm
040837834f Fixed object listing logic
The previous endless listing behavior was actually caused by the
ignorance of 'marker' key.  This patch fixes that.
2015-01-26 22:45:16 +08:00