Newly configured DNS server is removed after both controllers rebooted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Fabiano Correa Mercer |
Bug Description
Brief Description
-----------------
Added a dns nameserver using system commands (system dns-modify) in an AIO-DX env. The /etc/resolv.conf shows the updated nameserver entry but when both controllers are rebooted, the /etc/resolv.conf reverts the change.
Severity
--------
Major
Steps to Reproduce
------------------
- system dns-modify nameservers=
- cat /etc/resolv.conf
- sudo reboot controller-1 and sudo reboot controller-0 (at the same time in the given sequence)
- system dns-show
- cat /etc/resolv.conf
Expected Behavior
------------------
/etc/resolv.conf values should not be overridden
Actual Behavior
----------------
/etc/resolv.conf values are overridden
Reproducibility
---------------
100% reproducible
System Configuration
-------
AI0-DX
Branch/Pull Time/Commit
-------
master/2022-09-06
Last Pass
---------
N/A
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Developer Testing
Workaround
-----------
N/A
Changed in starlingx: | |
assignee: | nobody → Fabiano Correa Mercer (fcorream) |
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.8.0 stx.config stx.networking |
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/856560 /opendev. org/starlingx/ stx-puppet/ commit/ 751a93a89b59ac6 955ea394bc6d259 5676e693de
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 751a93a89b59ac6 955ea394bc6d259 5676e693de
Author: Fabiano Mercer <email address hidden>
Date: Thu Sep 8 15:56:09 2022 -0300
Create runtime class to update DNS resolv.conf
It was detected the command 'system dns-modify' updates the manifest- apply.sh to update manifest- apply.sh.
resolv.conf correctly but after reboot the resolv.conf
is overwritten with old values.
The reason was the system.yaml was being updated but code
was not calling script: puppet-
YAMLs in the path that puppet will use.
Changed code to use puppet runtime class and the right
function to update YAMLs and call puppet-
Test Plan (DEBIAN: Standard CENTOS: AIO-DX):
PASS Modify DNS and check resolv.conf in both controllers
PASS Modify DNS and reboot both controllers
PASS Install AIO-DX in VBox using ISO with this fix
PASS Install Standard in VBox using ISO with this fix
Partial-Bug: #1989142
Signed-off-by: Fabiano Mercer <email address hidden> e80ba7d1d41147e 12424582d83
Change-Id: I3f98264a74371c