49 Commits

Author SHA1 Message Date
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
tengqm
02bf9dcaae Initial support to cluster create 2015-01-26 13:33:55 +08:00
tengqm
d3c4b191db Fixed flake8 errors 2015-01-25 19:50:02 +08:00
tengqm
8cef1bd3cf Implement exception handling for client module 2015-01-25 19:27:46 +08:00
tengqm
b225445a91 Fixed list() method errors
list() method takes arguments that are query parameters, not part of the
URI arguments.  This patch fixes that logic.

It also experiments the exception translation and handling logic.
2015-01-23 16:03:51 +08:00
tengqm
f6a7a292d6 Add support to profile show 2015-01-20 23:34:45 +08:00
tengqm
b7677be573 Revised profile list implementation 2015-01-20 21:45:14 +08:00
tengqm
fbbae2e492 Fixed common client to return object from create 2015-01-20 17:20:42 +08:00
tengqm
096a4c7637 Remove dict translation for list operation 2015-01-19 21:37:10 +08:00
tengqm
b28a16eafe Remove dict translation for create action 2015-01-19 21:33:19 +08:00
tengqm
1ad3b50c8a Added build info alike dictionary retrieval support 2015-01-16 17:41:35 +08:00
tengqm
96e651e642 Initial version of V1 client
This client conforms to the convention to call OpenStack SDK interfaces.
2015-01-16 15:54:44 +08:00
tengqm
9f76e79bb2 Rename old client.py to old_client.py 2015-01-15 17:18:25 +08:00
tengqm
d0a36c7068 Merge object definitions into a single module
Eventually, this module will be deprecated.
2015-01-13 15:19:31 +08:00
tengqm
c999597f63 Initial version
Mostly just framework code.
2015-01-05 13:09:32 +08:00