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)
This commit is contained in:
Bharat Kunwar 2020-04-14 13:22:59 +00:00 committed by Tobias Urdin
parent 5183ec8126
commit 7e10a6aec2
3 changed files with 6 additions and 6 deletions

View File

@ -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 &&

View File

@ -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);
}

View File

@ -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"
}
]
},