From 7844ecec381ec68d766bdf832a7c54c8812020ea Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Tue, 12 Feb 2019 15:07:33 +0000 Subject: [PATCH] Unhardcode dns server for ironic pxe network Is configurable in tempest chart but not ironic Change-Id: I029258a5f2cd33d5770f006ea212afb8310228fd --- ironic/templates/bin/_manage-cleaning-network.sh.tpl | 2 +- ironic/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ironic/templates/bin/_manage-cleaning-network.sh.tpl b/ironic/templates/bin/_manage-cleaning-network.sh.tpl index 3b28a95adc..47381a1671 100644 --- a/ironic/templates/bin/_manage-cleaning-network.sh.tpl +++ b/ironic/templates/bin/_manage-cleaning-network.sh.tpl @@ -40,7 +40,7 @@ if [ "x${SUBNET_EXISTS}" != "xtrue" ]; then openstack subnet create \ --gateway ${neutron_subnet_gateway%/*} \ --allocation-pool start=${neutron_subnet_alloc_start},end=${neutron_subnet_alloc_end} \ - --dns-nameserver 10.96.0.10 \ + --dns-nameserver ${neutron_subnet_dns_nameserver} \ --subnet-range ${neutron_subnet_cidr} \ --network ${neutron_network_name} \ ${neutron_subnet_name} diff --git a/ironic/values.yaml b/ironic/values.yaml index 40129b02a2..5ef2b86303 100644 --- a/ironic/values.yaml +++ b/ironic/values.yaml @@ -206,6 +206,7 @@ network: neutron_subnet_cidr: 172.24.6.0/24 neutron_subnet_alloc_start: 172.24.6.100 neutron_subnet_alloc_end: 172.24.6.200 + neutron_subnet_dns_nameserver: 10.96.0.10 api: ingress: public: true