Browse Source

Use default-worker instead of production_group

At present, resize cluster invocation via the magnum-ui fails because it
tries to resize production_group nodegroup which is not a thing. Until
we support ability to specify nodegroups, we ought to use the default of
default-worker nodegroup.

Change-Id: I3e9553e6d337ab1580c0e3bb3d1a88e8b97f2f23
(cherry picked from commit fb8eee430e)
changes/09/767309/2 train-em
Bharat Kunwar 1 year ago
committed by Tobias Urdin
parent
commit
7e10a6aec2
  1. 2
      magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.js
  2. 2
      magnum_ui/static/dashboard/container-infra/clusters/rolling-upgrade/upgrade.service.js
  3. 8
      magnum_ui/static/dashboard/container-infra/magnum.service.spec.js

2
magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.js

@ -181,7 +181,7 @@
function onModalSubmit() {
var postRequestObject = {
node_count: formModel.node_count,
nodegroup: 'production_group'
nodegroup: 'default-worker'
};
if (formModel.node_count < formModel.original_node_count &&

2
magnum_ui/static/dashboard/container-infra/clusters/rolling-upgrade/upgrade.service.js

@ -203,7 +203,7 @@
return magnum.upgradeCluster(formModel.id, {
cluster_template: formModel.cluster_template_id,
max_batch_size: formModel.max_batch_size,
nodegroup: 'production_group'
nodegroup: 'default-worker'
}).then(onRequestSuccess);
}

8
magnum_ui/static/dashboard/container-infra/magnum.service.spec.js

@ -82,7 +82,7 @@
"data": {
"node_count": 2,
"nodes_to_remove": ["456"],
"nodegroup": "production_group"
"nodegroup": "default-worker"
},
"error": "Unable to resize given cluster id: 123.",
"testInput": [
@ -90,7 +90,7 @@
{
"node_count": 2,
"nodes_to_remove": ["456"],
"nodegroup": "production_group"
"nodegroup": "default-worker"
}
]
},
@ -109,7 +109,7 @@
"data": {
"cluster_template": "ABC",
"max_batch_size": 1,
"node_group": "production_group"
"node_group": "default-worker"
},
"error": "Unable to perform rolling upgrade.",
"testInput": [
@ -117,7 +117,7 @@
{
"cluster_template": "ABC",
"max_batch_size": 1,
"node_group": "production_group"
"node_group": "default-worker"
}
]
},

Loading…
Cancel
Save