From 9254f8b8949e44a588c88857daf44e2c69600a0b Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Mon, 5 Mar 2018 11:03:34 +0100 Subject: [PATCH] Configure heat DnsServers for undercloud install The netconfig option dns_servers is defined from DnsServers in t-h-t's net-config-undercloud.yaml. Add missing configuration for the client as well, which bounds nameservers defined in undercloud.conf's undercloud_nameservers to the corresponding DnsServers heat parameter. Change-Id: I48d889e7a631682a221e2828fbc30a900562498f Signed-off-by: Bogdan Dobrelya --- .../notes/undercloud-nameservers-fbfca8af10b3097f.yaml | 8 ++++++++ tripleoclient/v1/undercloud_config.py | 1 + 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/undercloud-nameservers-fbfca8af10b3097f.yaml diff --git a/releasenotes/notes/undercloud-nameservers-fbfca8af10b3097f.yaml b/releasenotes/notes/undercloud-nameservers-fbfca8af10b3097f.yaml new file mode 100644 index 000000000..807e1eb30 --- /dev/null +++ b/releasenotes/notes/undercloud-nameservers-fbfca8af10b3097f.yaml @@ -0,0 +1,8 @@ +--- +features: + - | + Bind ``undercloud_nameservers`` defined in `undercloud.conf` to the + ``DnsServers`` heat stack parameter. This ensures DNS + configuration applied via os-net-config undercloud install time as well. + That works additionally to ``UndercloudNameserver`` limited to the + ctlplane subnet DNS configuration executed at post-install steps only. diff --git a/tripleoclient/v1/undercloud_config.py b/tripleoclient/v1/undercloud_config.py index 6dfcc7caa..a201f9dc4 100644 --- a/tripleoclient/v1/undercloud_config.py +++ b/tripleoclient/v1/undercloud_config.py @@ -42,6 +42,7 @@ PARAMETER_MAPPING = { 'undercloud_public_host': 'CloudName', 'scheduler_max_attempts': 'NovaSchedulerMaxAttempts', 'local_mtu': 'UndercloudLocalMtu', + 'undercloud_nameservers': 'DnsServers' } THT_HOME = os.environ.get('THT_HOME',