Containers: config_controller replaces custom nameserver on /etc/resolv.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Bart Wensley |
Bug Description
Brief Description
-----------------
The config_controller --kubernetes command replaces existing DNS configuration. In some cases, users may want to specify their own DNS server instead of the default 8.8.8.8 used in the configuration stage.
Steps to Reproduce
------------------
Perform a fresh install of StarlingX and then set a DNS configuration. For example
$ cat /etc/resolv.conf
nameserver 10.233.12.12
Then, run config controller as usual:
$ sudo config_controller --kubernetes
The command it will fail in step 06 due not finding the DNS for docker pull commands. Then looking into /etc/resolv.conf the following configuration will be found:
nameserver 192.168.204.2
nameserver 8.8.8.8
Expected Behavior
------------------
The custom configuration should remain in /etc/resolv.conf
Actual Behavior
----------------
The custom configuration is deleted and replaced with:
nameserver 192.168.204.2
nameserver 8.8.8.8
This problem is more evident now that configuration requires internet access to complete.
Reproducibility
---------------
100%
System Configuration
-------
Tested on all-in-one configuration.
Branch/Pull Time/Commit
-------
http://
tags: | added: stx.containers |
summary: |
- config_controller replaces custom nameserver on /etc/resolv.conf + Containers: config_controller replaces custom nameserver on + /etc/resolv.conf |
Changed in starlingx: | |
assignee: | nobody → Bart Wensley (bartwensley) |
tags: |
added: stx.2.0 removed: stx.2019.05 |
The replacement of the configuration occurs when nameserver 192.168.204.2 is set.
On nameserver 8.8.8.8 the present configuration remains.