The cluster-policy-enable and cluster-policy-disable APIs are now
useless since we have removed almost all other properties from a
cluster-policy binding. The enable/disable logic has better be done
through the cluster-policy-update operation which is more generic than
these two. So we have deleted them from senlin-api and sdk.
This patch adapts the client to this change.
Change-Id: I3c3a58ab7e75faec21400bbbad0b5e8420790d51
We were trying to make the METAVAR a little bit intuitive for command
line options. However, the argparse package is obviously not that smart
as we imagined. It cannot parse '<KEY[:DIR]>' properly so the command is
now failing silently.
This patch fixes the problem.
Change-Id: I6eae7f0eb8b92ad8443236b1f1213a28a3118307
This adapts the client shell to use the new sorting option. In future we
can do a client side parsing and validation of sorting keys/dirs.
Change-Id: Ifd619ba3382759f00efcb292ed59c21dc3e74162
oslo incubator project has graduated. The only impact on senlinclient is
that we are gonna maintain some functions from the 'cliutils.py' module
by ourselves. This is not a big deal though.
Change-Id: I141bb9bd99a7c2d12d34dca41d2ff4f2b5da207b
Some sort_keys columns are not shown in node-list,
and action-list, which will make sort keys meanless,
so add those keys into list fields.
Change-Id: I6dd93a9f9d01dad4b81b43792d88f8495c75264c
Closes-bug: #1528103
After switching to SDK calls, we are not properly showing the name and
type of policies bound to a cluster. This patch fixes the problem.
Change-Id: Ie5549ba6c8c67943c0595469d9fc1d7094e6825b
In openstackSDK cluster_attach_policy method has 'cluster'
and 'policy' parameters out of **params, so senlinclient
should do the same thing for calling SDK.
Change-Id: I18d3c499467daf371f64c2a883af7c710d16db87
Closes-bug: #1530751
This patch removes the 'show-deleted' option from command line because
it is no longer available from senlin api.
Change-Id: I4395727ece8d677c16a7055038e3dd6de0e7246b
This patch fixes argument of paginated to resolve TypeError when list
profile type.
Change-Id: I1144e994a46cc542c5ba9f1e786f515c0696c5fa
Closes-bug: #1530019
This patch adds client side support to receivers.
Change-Id: Ifc15a524a8a7de1a7e283119385bfd2a5cf43481
partial-blueprint: support-general-receiver-abstraction
Depends-On: I400f9d34737d443e1cc4b7f4fcc6f6241ff96bd2
Currently when listing events, user can sort events by keys like
'user' and 'obj_name', but these columns are not in the list which
makes the sorting meanless.
Because 'user' is almost always keeping the same, so don't use it
as a sort key, adding 'level' as a sort key.
Change-Id: I3b298f660faf81e69431320248bc6b342faff3b2
Closes-bug: #1528103
If user wants to show the nodes which are already deleted they
can use '-D' in node-list, but if '-D' is not set, 'show_deleted'
column should not shown in node-list. 'show_deleted' option should
always be True/False, not None.
Change-Id: I83ace7515f31bcb30c83b9f0147f33dd94c72baf
Closes-bug: #1526177
Current help message of cluster-policy-update may make
user feel updating a policy attached to a cluster.
In fact, only policy's properties are about to be updated.
Change-Id: Id0560d146539f2807dbab8cc4cb9abb62dcbfe56
Closes-bug: #1524261
This patch fix the pep8 error D300 about symbol that
D300 Use """triple double quotes""" (found '''-quotes)
when execute run_tests.sh.
Change-Id: I79076b0d2a02eea59a47f263ad6bb30e48c6d1b7
Try to show policy after policy created, like what we do after
profile created, so that we can display created_time.
Closes-Bug: #1522324
Change-Id: I85eb5c7335315fb2f0a10b79ceaa4f228e4d7d2d
In the help msg of cluster_create and cluster_update, timeout is
described in minutes, but actually it's in seconds, this patch
fixes the issue.
Closes-Bug: #1523791
Change-Id: I8bb1f1da59aad902f2bb5068dc941f09e17cc638
This patch makes desired_capacity default to min_size if min_zize
specified but desired_capacity not when creating cluster, it would
be more friendly to user.
Change-Id: Ie498f128bbd410d116abdf759d65adec0488dcec
This patch is the client side fix for profile-type-schema and
policy-type-schema.
Depends-On: I61a406ec941f902cb88e4ec521a42af05bb5a93a
Change-Id: I3a932c47b3f72bc256ad49d1994301714e7df398