Use cluster name for fixed_network instead of private

At present, when a fixed_network is not specified, it is given the name
"private" by default. When multiple clusters are created, we end up in a
situation where we end up with multiple networks all with the same name.
This PS intends to make it easier to see where the resources belong to
by using the cluster name.

Story: 2007460
Task: 39139

Change-Id: I7f8028b716f9a9eced17d85ca2e46e2b1e34875f
This commit is contained in:
Bharat Kunwar 2020-03-24 06:38:18 +00:00
parent ce70da25ad
commit 2864fc57d4
No known key found for this signature in database
GPG Key ID: BD9EE5A336F305B9
3 changed files with 2 additions and 2 deletions

View File

@ -185,6 +185,8 @@ class K8sTemplateDefinition(template_def.BaseTemplateDefinition):
net_name = neutron.get_fixed_network_name(context, fixed_network)
if net_name:
extra_params['fixed_network_name'] = net_name
else:
extra_params['fixed_network_name'] = cluster.name
# NOTE(brtknr): Convert fixed subnet name to UUID. If fixed_subnet
# is not specified in cluster template use 'private' as the default

View File

@ -81,7 +81,6 @@ parameters:
fixed_network_name:
type: string
description: name of a private network to use to provision machines
default: "private"
fixed_subnet:
type: string

View File

@ -81,7 +81,6 @@ parameters:
fixed_network_name:
type: string
description: name of a private network to use to provision machines
default: "private"
fixed_subnet:
type: string