Don't set dns-name-servers for ctlplane subnet

We set this with undercloud post_deploy since train. As stein
and queens have already been proposed for EOL, we can safely
remove this.

Change-Id: I5303ffee8abd775e5289440fdb1d50f3b697bda8
This commit is contained in:
ramishra 2021-07-13 19:33:52 +05:30
parent cc2468d6db
commit 33b7398512

View File

@ -106,15 +106,4 @@ sudo ifup ifcfg-{{ network.device_name }}
{% endif %}
## * Set the DNS server in the control plane network
## ::
{% if overcloud_dns_servers|default([]) %}
CTLPLANE_SUBNET=$(openstack subnet show ctlplane-subnet -f value -c id)
openstack subnet set $CTLPLANE_SUBNET --no-dns-nameserver \
{% for nameserver in overcloud_dns_servers %} --dns-nameserver "{{ nameserver }}" {% endfor %}
{% else %}
openstack subnet set $(openstack subnet list | awk '/ctlplane/{print $(NF-7) }') $(awk 'match($0, /nameserver\s+(([0-9]{1,3}.?){4})/,address){printf " --dns-nameserver %s", address[1]}' /etc/resolv.conf)
{% endif %}
### --stop_docs