Skip to content

fix dns server list issue when specified with more than one#501

Closed
Yaguang Tang (yaguangtang) wants to merge 1 commit intovexxhost:mainfrom
yaguangtang:fix-dns-list-issue
Closed

fix dns server list issue when specified with more than one#501
Yaguang Tang (yaguangtang) wants to merge 1 commit intovexxhost:mainfrom
yaguangtang:fix-dns-list-issue

Conversation

@yaguangtang
Copy link
Member

In magnum template when specify more than one dns servers,the cluster using that template fail to create due to dns list being regard as string
https://github.com/gophercloud/gophercloud/blob/main/openstack/networking/v2/subnets/requests.go#L125C1-L125C60

Comment on lines 2049 to 2055
"""\
- cidr: {{ .nodeCidr }}
dnsNameservers: {{ .dnsNameservers }}
dnsNameservers:
{{- range .dnsNameservers }}
- {{ . }}
{{- end }}
"""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should create a functional test for this to test the behaviour when 1 or many DNS servers are being included and make sure that it propagates properly. There are examples of this already

In magnum template when specify more than one dns servers,the
cluster using that template fail to create due to dns list
being regard as string.
@mnaser
Copy link
Member

Mohammed Naser (mnaser) commented Mar 3, 2025

This is covered in the Rust refactor in #519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants