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:
Theodoros Tsioutsias 2019-06-25 15:53:20 +02:00
parent 8146e8d737
commit a1d385cc4a

View File

@ -90,7 +90,7 @@ def upgrade():
# Create a list containing populated master nodegroups
master_ngs = [{
'uuid': uuidutils.generate_uuid(),
'name': '%s-master' % rs[1],
'name': 'default-master',
'cluster_id': rs[0],
'project_id': rs[2],
'docker_volume_size': rs[3],
@ -107,7 +107,7 @@ def upgrade():
# Create a list containing populated worker nodegroups
worker_ngs = [{
'uuid': uuidutils.generate_uuid(),
'name': '%s-worker' % rs[1],
'name': 'default-worker',
'cluster_id': rs[0],
'project_id': rs[2],
'docker_volume_size': rs[3],