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>
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
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>
`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
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
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
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
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
Add cluster template delete, show, and update including
unit tests.
Implements: blueprint openstackclient-support
Change-Id: I457b6eb9f1944a6a90e1e8fe2b2154cbfbe48f23
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