Add a labels override parameter on cluster-create to override
the value present on the cluster template.
Partial-Bug: #1697651
Depends-On: I8990c78433dcbbca5bc4aa121678b02636346802
Change-Id: I39f3423f6889ce93021248223600e342f4217cec
Add a docker-volume-size override parameter on cluster-create to override
the value present on the cluster template.
Partial-Bug: #1697648
Change-Id: Ib4d4af20dc5bb5fe631802dabe73d8ee341899b1
This replaces the deprecated (in python 3.2) unittest.TestCase
method assertRaisesRegexp() with assertRaisesRegex()
Closes-Bug: #1436957
Change-Id: I7e2eb18c1b5ecdd1691d7a51087b8a29ca152d89
Some codes in python magnumclient use Windows style
line endings, this violates H903 error pep8.
Change-Id: I4f5424403a5187d6845d59d005be2324ff40f354
Closes-Bug: #1658845
Rollback mechanism was added in Magnum in patch
https://review.openstack.org/343478 but currently
there is no support on the client side.
This patch add rollback support for Magnum cluster/bay,
user can enable rollback on cluster update failure by specifying
option '--rollback' when executing 'magnum cluster-update',
for example:
magnum cluster-update XXX replace node_count=5 --rollback
The code is based on outdated patch
https://review.openstack.org/347586 and improves it:
* added rollback support for clusters
* added API version check in CLI (should be >= 1.3)
* added several unit tests
Change-Id: Iaae51e084e8ffd69be38512eec8c4c54b158b55e
Co-authored-by: Wenzhi Yu <wenzhi_yu@163.com>
Implements: blueprint bay-rollback-on-update-failure
Adds a keypair-id override parameter on cluster-create
to optionally override the keypair present on the
given ClusterTemplate.
In cluster-template-create, keypair-id is now an optional
parameter.
Fixes old help text referencing Bays/Baymodel.
Change-Id: Iaa934432ec56268c70001579a02658eceaa76b6d
Implements: blueprint keypair-override-on-create
Depends-On: I177a5aa06f881156944a9f74c9ccc3cd2abac492
Add new base classes for Bay and Cluster to inherit from.
Add new tests for cluster and cluster_template code.
Leaves all commands in-place and adds new cluster-related
commands for magnumclient.
Add deprecation decorator and messages for bay/baymodel.
Implements: blueprint rename-bay-to-cluster
Change-Id: I64e1aa6a71b109687568005655c6de55f86fad29