The config or metadata in cluster update should only be sent if the
values is not None. Sending empty dictionary will override any existing
config or metadata setting.
Change-Id: Id23e743d1db30a0549d06081e87249a0dbd326a2
Add option to wait for CLI command to complete for the following cluster
commands: create, update, delete, resize, scale in, scale out, policy
attach, policy detach, node add, node delete, node replace, cluster
check, recover and cluster operation.
Change-Id: I5663ca7286c55da4491644f979d5ab44f0cfc915
This patch set fixes a bug where config parameter was not send correctly
as part of cluster update.
Change-Id: I38d4a56a55cbb870c2afe1fa9de7564b5748dfba
Closes-Bug: #1896260
The name of the job now follows the guidelines.
Remove the old scripts which are not needed anymore.
Also, even though OS_TENANT_NAME is still exported,
read OS_PROJECT_NAME as first choice.
Depends-On: https://review.opendev.org/746235
Change-Id: I2d698e4f7c38e010cfef2961446914fff136b181
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: If70feb43be0b12c582bc4a9f27faa8f83de93774
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Confirmation messages for cluster, profile, policy, receiver and node
deletions are printed using sys.stdout.write. However sys.stdout.write
output is line-buffered [1]. Since the confirmation message does not
contain a newline, the message may not appear in the user's terminal.
[1] https://docs.python.org/3/library/sys.html#sys.stdout
Change-Id: I829811df362bcfd7d074523958d2aa5232da6f09
Closes-Bug: 1861042
- Update supported microversion to 1.13
- Return node tainted field
- Support setting tainted field for node update
Depends-On: https://review.opendev.org/#/c/690755/
Change-Id: I1b36e6e9b8f743308d4a8361ad1f6564a462f4f3
Retrieve meta-data field for events from openstacksdk
Depends-On: https://review.opendev.org/#/c/678585/
Change-Id: Ib47ba849a9503122727eddd9f548684131417676
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.
Note that redirects will be set up as well but let's point now to the
new location.
For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html
Change-Id: I59ae41adc16f3a05f29fcca1b1ba18b75be4df10
openstacksdk was changed to return action object with id inside for API
calls that have location in response header.
This change retrieves the action id from the action object returned when
calling cluster delete and node delete.
Depends-On: https://review.openstack.org/#/c/631362/
Change-Id: Ife9d3be5acd740f6de7721ba54aa87d44f924728
Closes-Bug: #1814171
Several clustering functions were deprecated in openstacksdk. This
patch removes calls to those functions and replaces them with calls to
the renamed functions in openstacksdk.
Closes-Bug: 1802417
Change-Id: I799f7234a19d31def05f8bf5b778dcec31c59a7d
I7bc0bfdecf1b1461714de1da8b56e3e47154726d tried to introduce some method
to reuse profiles, but the key building was backwards.
Change-Id: I36bd0492be98b60594a742cd6ff316fa83e58d54
OpenStackSdk project was support api microversion.
and senlinclient was change sdk connection.
https://review.openstack.org/#/c/587411/
Change-Id: I15ad5caf7ca257b5f14a3a3204be11993cba1973
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
senlinclient still uses Profile, which is deprecated and marked for
removal. Update create_connection to be able to work in a post-Profile
world. Amongst other things, this was causing nothing to set the
default_microversion setting.
Also, make_client was calling create_connection, but it doesn't need to
because openstackclient already has an sdk_connection object that can be
used. Just return it.
Related to https://storyboard.openstack.org/#!/story/2003146
Change-Id: I7bc0bfdecf1b1461714de1da8b56e3e47154726d
- cluster function test
- policy attach/detach function test
- receiver function test
Add api microversion openstacksdk bug report link:
https://storyboard.openstack.org/#!/story/2003146
Change-Id: Ibe30c1402c80061a60b9499681fe00771d72ab0e
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
This patch allows the senlin client to properly parse a 409
error when a scaling action fails due to a conflict or cooldown
Depends-On: https://review.openstack.org/585573
Change-Id: I2fff7c2cc1bb17c0e32ef5b67294b811aff22192
This patch fix API version control requests failed,
print message error. The request cannot succeed when
the version of the request API operation has a special
request. Look:
https://github.com/openstack/senlin/blob/master/senlin/
api/openstack/v1/clusters.py#L123
And fix ResizeCluster max-complexity limit error.
Change-Id: Ieb474ee576e838843b8c03a692d7c09e594975b6
Closes-Bug: #1753747
The request version is processed in the senlin code, so there are
different return values. The senlinclient should do different things.
Change-Id: I1091377e18e5e57d6c605d42ec40bd5b75625a3b
Closes-Bug: #1750964
- base module add output result format
- base module add access to the profile/policy file path
- base module add profile/policy create/delete call
- profile/policy module add create/update/delete tests
Change-Id: Iba3895a4ed8ed02cda68571457dad135f73ee33e
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
The removal of the Client module breaks downstream consumers such as
heat. This patch adds it back.
Change-Id: I422bd6e9ab0cbb985380f1b898435344f1dd8ac9
This patch fix action default value None, schem
'ClusterActionName' check, the None not in CLUSTER_ACTION_NAMES
Closes-bug: #1746391
Change-Id: I6b867611f99fc9fd35f08da8d225101ae3c3831e
There were two code paths that did the same thing, and while
the code paths did the same thing, one of them supported region_name
and the other one did not.
Moving all this functionality into a single function to prevent this
from happening in the future.
- Re-factored make_client and create_connection.
- Remove now unused sdk.py.
- Renamed test_sdk to test_plugin.
Change-Id: Ibb477290c90e9af51be3537d11cf5142041db37f