Commit Graph

29 Commits

Author SHA1 Message Date
Dale Smith fb28368899 Bugfix: master_lb_enabled flag now works as intended.
The value for master_lb_enabled resulted in it being treated the
same as master_lb_disabled.

Change-Id: Ia11d9e1ba20dbb37cd6467c2ae0555ddf25df5d3
Closes-Bug: #2039040
2023-10-11 13:14:43 +00:00
Jake Yip 7d9f02bd23 Fix multi-line strings spaces
Change-Id: Ia97821dcde54b46a8ff31dd13657a69a007ccd9a
2023-07-29 09:55:44 +10:00
Feilong Wang 282753384d Fix master_lb_enabled for cluster creation
The master_lb_enabled is not really working for disabled case.
This patch fix it by introducing the --master-lb-disabled param.

Story: 2008655
Task: 41924
Change-Id: I90db6d91dd3887fbec629ce5037d6a7e6f7c05e4
2021-04-08 04:34:34 +00:00
Jake Yip d549651f6d Show docker_volume_size in `cluster show`
docker_volume_size is an parameter for creating cluster, it should also
be displayed when showing it

Change-Id: I354043496cc60a99c362f7d8bf36d5ca27ed6d30
2020-10-22 14:58:37 +11:00
Zuul 047cd8ae2b Merge "Show cluster fixed_network, fixed_subnet, floating_ip_enabled" 2020-07-03 12:19:44 +00:00
Feilong Wang c6b7952982 Support master_lb_enabled when creating cluster
Task: 40263
Story: 2007634

Change-Id: I59ad158753f25a56219ecaa5a55dd3f0ae67965a
2020-07-03 14:04:16 +12:00
Bharat Kunwar 7ecbab5dbf Show cluster fixed_network, fixed_subnet, floating_ip_enabled
Since we are able to override the values in cluster scope, we should be
able to see them too.

Story: 2006208
Task: 40254

Change-Id: I6c615697a732566290418ea3a3dd3263cb817fb8
2020-07-01 10:56:59 +00:00
Theodoros Tsioutsias 0febfc728f Labels override
This adds a boolean flag called --merge-labels at the create CLIs
for clusters and nodegroups. The show output for clusters and
nodegroups is modified to contain also new fields called
"labels_overridden", "labels_added", "labels_skipped". The new labels
contain the differences of the object's labels with its parent's.

story: 2007515
task: 39692
Depends-On: I1054c54da96005a49e874de6f4cf60b5db57fc02
Change-Id: Ie68bb85f4b8bbacc5b71b523d8639cf30e6e1992
2020-05-14 10:14:22 +00:00
Spyros Trigazis c0d3683608 Allow cluster config for any cluster state
Similar to what the certificates api does, it doesn't make sense to
disallow cluster config.

story: 2006651
task: 36891

Change-Id: Ia57e95e4570d04c2a20f7674d1ae3e21b8dd8efb
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-10-03 12:26:00 +00:00
Feilong Wang 5ad8b7dcf7 Support network, subnet and FIP when creating cluster
Change-Id: Ia4f1ce4be215262fc89ceac30a2edb878ebd9937
Task: 36027
Story: 2006208
2019-07-30 15:44:53 +12:00
Zuul d29d5cdec4 Merge "Support upgrade API" 2019-07-12 14:24:13 +00:00
Feilong Wang d91d4c72a1 Display project_id for cluster show
It would be useful for cloud admin/ops to display the project_id
in cluster show.

Task: 30676
Story: 2005537

Change-Id: I0f1ae84cf2238ebbf8fc30237d88c7db1eeba6dd
2019-05-01 10:00:49 +12:00
Feilong Wang 6b756aa75f Support upgrade API
Task: 30168
Story: 2002210

Change-Id: I458985f97e1e9bbe89702ce04e74bdcf66e36244
2019-03-26 21:19:32 +13:00
Feilong Wang 94380f9ad5 Support resize api
Task: 29572
Story: 2005054

Change-Id: Ic9ede21bbf87883d7dbdf9fde02e7dba24440ce7
2019-03-25 11:03:10 +13:00
Feilong Wang 74c5f22c6f Support health_status on client side
Task: 29762
Story: 2002742

Depends-on: If702584fabe1402257b45db281561a5f5b83b972
Change-Id: Iffce9a2cc422bbce70152be3a58d2573e80b104b
2019-03-07 10:56:51 +00:00
Feilong Wang 81b84804cc Keystone auth support
Add Keystone auth support for generated kubeconfig

Task: 28296
Story: 1755770

Change-Id: I743fe75f39477ba336636607fd9bc2e542342ca0
2019-02-26 15:47:20 +13:00
Zuul d856f05d54 Merge "osc: Don't pass parameters with null value" 2018-08-13 11:56:54 +00:00
Ricardo Rocha 48b85899a0 [k8s] Add embed certs to config
Add embed certs to kubernetes config file to cluster config

Add option --output-certs to cluster config enabling the output of the
certificates files (ca, key, cert). This is for compatibility with tools
that require the certificates in separate files.

Change-Id: I595d243bc9f30d813af06aad46a9037afe383ab5
Story: 1774643
Task: 21668
2018-08-08 21:17:35 -07:00
David Rabel 5f23c66258 osc: Don't pass parameters with null value
Don't pass parameters docker_volume_size, flavor_id and
master_flavor_id if they are null.

This is to be compatible with Ocata version of Magnum API.

Change-Id: I0d89e1b973585ae5d4633843feedc0c35b4f624a
Closes-Bug: #1779160
2018-06-28 18:47:23 +00:00
Ricardo Rocha 5e9f07b77c Set --labels default to None on cluster create
Set the default value for --labels to None, so the cluster template value is
used when no explicit labels argument is given on cluster create.

Closes-Bug: #1697651
Change-Id: I284db3f32cd5c8b6541d60c2a86d7d693ffbedea
2017-12-18 14:15:03 +00:00
Ricardo Rocha dd0958860d OSC: Add --flavor to coe cluster create
Add a flavor override parameter on osc cluster create to override
the value present on the cluster template.

Partial-Bug: #1699245
Depends-On: Ib60c05cce1cf2639ca4740abdd264403033433f9
Change-Id: Ib00514b66ee2d0a2ee4ddafb5b8c2ff8fa82de77
2017-12-15 14:32:17 +00:00
Ricardo Rocha c035f9299f OSC: Add --master-flavor to coe cluster create
Add a master-flavor override parameter on osc cluster create to override
the value present on the cluster template.

Partial-Bug: #1699247
Depends-On: Id1d973167b381538121583a0a9691304b39e98de
Change-Id: I7ef1c2d7c19be96089fbe0f0847294073ccab04e
2017-11-01 09:22:18 +00:00
Ricardo Rocha 92fa44e1d9 Make cluster config --force a boolean
Option --force of openstack coe cluster config is a boolean and should not
take an argument. Fix message in argument description.

Change-Id: Ic526589a8f5c11b13e16b080a04e262d8393c387
Closes-Bug: #1721267
2017-10-09 08:16:54 +00:00
Zuul b9f9e1c529 Merge "Now `name` is a positional argument in cluster creation" 2017-10-03 17:28:39 +00:00
Ricardo Rocha 5daa38e554 OSC: Add --labels to coe cluster create
Add a labels override parameter on osc cluster create to override
the value present on the cluster template.

Partial-Bug: #1697651
Depends-On: I8990c78433dcbbca5bc4aa121678b02636346802

Change-Id: I7c70f12012628aff5649cb238bde9186ce9552c8
2017-09-27 08:27:39 +00: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
Spyros Trigazis 5f3b69b15c OSC: Add cluster config command
Move certificate generation and config  generation
in magnum utils so that all clusters_shell, bays_shell
and OSC can use.

* Remove / from context name (see #1705480)
* Use absolute paths for the certificates in kubeconfig
  It's the same principle like #1614682

Change-Id: I5b8bb11b199b7646a984c7171f3853d3e73923ec
Implements: blueprint openstackclient-support
Related-Bug: #1705480
Related-Bug: #1614682
2017-07-26 19:05:51 +00:00
Stephen Watson a9918d16b8 OSC 4/4 Add remaining cluster commands
Adds the remaining cluster commands (delete, show, update)
to the magnumclient OSC plugin.

Adds delete, update unit tests. TODO: Add show tests

Implements: blueprint openstackclient-support
Change-Id: Id7542118e8068de4c346946d13efce1f4eeec7ad
2017-07-26 19:04:30 +00:00
Stephen Watson 98c4ed730d OSC 2/4 Add Cluster Create and List
Add cluster create and cluster list for magnum's OSC plugin.
Add cluster create and list unit tests

Implements: blueprint openstackclient-support
Co-Authored-By: Spyros Trigazis <strigazi@gmail.com>
Change-Id: I815633e45df681e6bf089ae82d7451c2c0df05ef
2017-07-26 19:01:36 +00:00