Browse Source

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
changes/73/667373/1
Theodoros Tsioutsias 3 years ago
parent
commit
a1d385cc4a
  1. 4
      magnum/db/sqlalchemy/alembic/versions/461d798132c7_change_cluster_to_support_nodegroups.py

4
magnum/db/sqlalchemy/alembic/versions/461d798132c7_change_cluster_to_support_nodegroups.py

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

Loading…
Cancel
Save