Hardcode the names of the default NGs
As decided, the names of the default NGs should follow the convention "default-<role>". This change fixes the migration responsible for populating the default nodegroups. Change-Id: I7a3ea4c14e1353a02ed91cfe47f89e2b00d802a1 Story: 2005953 Task: 34318
This commit is contained in:
parent
8146e8d737
commit
a1d385cc4a
@ -90,7 +90,7 @@ def upgrade():
|
|||||||
# Create a list containing populated master nodegroups
|
# Create a list containing populated master nodegroups
|
||||||
master_ngs = [{
|
master_ngs = [{
|
||||||
'uuid': uuidutils.generate_uuid(),
|
'uuid': uuidutils.generate_uuid(),
|
||||||
'name': '%s-master' % rs[1],
|
'name': 'default-master',
|
||||||
'cluster_id': rs[0],
|
'cluster_id': rs[0],
|
||||||
'project_id': rs[2],
|
'project_id': rs[2],
|
||||||
'docker_volume_size': rs[3],
|
'docker_volume_size': rs[3],
|
||||||
@ -107,7 +107,7 @@ def upgrade():
|
|||||||
# Create a list containing populated worker nodegroups
|
# Create a list containing populated worker nodegroups
|
||||||
worker_ngs = [{
|
worker_ngs = [{
|
||||||
'uuid': uuidutils.generate_uuid(),
|
'uuid': uuidutils.generate_uuid(),
|
||||||
'name': '%s-worker' % rs[1],
|
'name': 'default-worker',
|
||||||
'cluster_id': rs[0],
|
'cluster_id': rs[0],
|
||||||
'project_id': rs[2],
|
'project_id': rs[2],
|
||||||
'docker_volume_size': rs[3],
|
'docker_volume_size': rs[3],
|
||||||
|
Loading…
Reference in New Issue
Block a user