Commit Graph

11 Commits

Author SHA1 Message Date
Diogo Guerra 201b3527b0 Add CT tags argument and field to client
We noticed that from the user perspective it is hard
to know when a cluster_template provided by the cloud
admin is mature enough for a production release.
This field will allow the administrator to add an
annotation to the cluster template like
{deprecated, recommended, testing} giving further
usefull information to the end user about the
template's life cycle

This patch allows the magnumclient to pass the
--tags <text> when creating a cluster template
and also shows the observations available when listing
existent cluster templates.

story: 2004215
task: 40161

Depends-On: I5d1c4221f089bc5cd12b25f620aa01771a029df9
Change-Id: Ibbdc9a9cd7ae4733eb6d38a7db11a68866f0d446
Signed-off-by: Diogo Guerra <dy090.guerra@gmail.com>
2021-02-05 09:14:54 +00:00
Bharat Kunwar 3da3b4896f Use overlay2 driver by default
Also print deprecation message for devicemapper and overlay.

Change-Id: Idff7f518485528da45430ae85a1580ed9d306330
2020-07-10 15:22:07 +00:00
Hervé Beraud 190a34b04d Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Iaf13c7dc3cf908d3755116ac861f732c220e324d
2020-07-10 14:20:56 +00:00
Sean McGinnis 3eafa2a001
Use unittest.mock instead of third party mock
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: I4a5b1ec999110a50fc904f3ae93e3983efa64f88
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:58:37 -05:00
Jake Yip 5b7a671319 Bugfix: Use fields option for cluster template list
`openstack cluster template list` accepts a `fields` option, but this
was not used. Fixed it to have some behaviour as legacy magnum client.

Also fixed tests.

Change-Id: I0d75f4b597a46b652c082ead3db5e3ad0b56b479
2020-01-14 14:32:17 +11:00
Bharat Kunwar c72512d41a Conditional hidden arg for backward compatibility
At the moment, the python-magnumclient supplies the "hidden" arg when
creating cluster/cluster templates which is not backward compatible with
pre-Stein Magnum. This patch addresses the issue.

Story: 2005539
Task: 30678

Change-Id: Ib2c17cc0c244a89c700f309dc7dd971596fb0957
2019-06-03 20:02:50 +10:00
Ricardo Rocha ab8392c44c Add hidden property to cluster template
Add a new 'hidden' property to cluster template creation, allowing
operators to hide cluster templates from user listings.

The flag is controlled by two cmd line parameters, --hidden (true) and
--visible (false).

Change-Id: Id1dcf1dabb09b357923d3dda36eafa42377e4f35
Story: 2004941
Task: 29342
2019-02-06 15:26:42 +01:00
Costin Gamenț a6a76a31dc Add disable floating ip parameter
Fix behaviour of --floating-ip-enabled and add --floating-ip-disabled.
Removed default setting of floating_ip_enabled API call parameter from
the clients (now the API default is used if it's not explicitly set in
the client arguments).

Change-Id: I9e01addaab17a0d37bb2fed10b4672d421bc1e09
Closes-Bug: #1639119
2018-01-30 16:25:51 +01:00
M V P Nitesh e9f17af05c Now `name` is a positional argument in cluster creation
Now `name` is a positional argument in cluster creation and
cluster template creation of OSC command

Change-Id: I3819381d97cda7b75c7cf90265335c38aca3ad54
Partially-Implements: blueprint deprecate-magnum-client
2017-09-14 13:01:43 +05:30
Stephen Watson 0fcaffa6b0 OSC 3/4 Add remaining CT commands
Add cluster template delete, show, and update including
unit tests.

Implements: blueprint openstackclient-support
Change-Id: I457b6eb9f1944a6a90e1e8fe2b2154cbfbe48f23
2017-07-26 19:01:36 +00:00
Stephen Watson 7768eb6ea2 OSC 1/4 Add CT create and UT framework
Adds cluster template create to OSC plugin as well as
the unit test framework, including tests for CT list and
CT create.

Implements: blueprint openstackclient-support
Co-Authored-By: Spyros Trigazis <strigazi@gmail.com>
Change-Id: I1a8c7868e8c5573877052172d7a13f29f965b52a
2017-07-26 06:47:30 +00:00