system dns-modify shortly after controller-0 unlock fails silently
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Ran An |
Bug Description
Title
-----
system dns-modify shortly after controller-0 unlock fails silently
Brief Description
-----------------
After installing and unlocking controller-0 for the first time, adding a DNS nameserver soon after the reboot may pass, but the /etc/resolv.conf file is not updated. The command example is:
system dns-modify nameservers=8.8.8.8
The 250.001 config out-of-date alarm may persist, however an unrelated request may clear the alarm. Though the alarm clears, /etc/resolv.conf remains not updated.
Severity
--------
Minor; this workaround corrects the condition:
# system dns-modify nameservers=
# # wait for 250.001 alarm to clear
# system dns-modify nameservers=8.8.8.8
Steps to Reproduce
------------------
One needs to login quickly and run the following until the system provides credential and until the system accepts the command:
source /etc/nova/openrc
system dns-modify nameservers=8.8.8.8
Expected Behavior
------------------
This command either works (updating /etc/resolv.conf), or is explicitely blocked until the system is ready:
system dns-modify nameservers=8.8.8.8
Actual Behavior
----------------
The command is allowed, the "system dns-show" command lists the revision, but /etc/resolv.conf is not updated. The 250.001 config out-of-date alarm may either persist or clear due to a different request.
Reproducibility
---------------
Intermittent - it is racey.
System Configuration
-------
any probably; standard controller and simplex were observered
Branch/Pull Time/Commit
-------
2019-01-16_20-18-01
starlingx/master
Timestamp/Logs
--------------
PS: Collect content is available upon request.
# system dns-modify nameservers=8.8.8.8
+------
| Property | Value |
+------
| uuid | 694f6811-
| nameservers | 8.8.8.8 |
| isystem_uuid | 2fdf7a36-
| created_at | 2019-01-
| updated_at | 2019-01-
+------
# system show
...
| nameservers | 8.8.8.8 |
# cat /etc/resolv.conf
nameserver 192.168.204.2
# grplist="$( echo "8\.8\.8\.8
config out of date
Raise system config alarm
Clear.*alarm
config_update_hosts
14a7482e-
req-a19bf780-
# grep "$grplist" sysinv.log
2019-01-17 19:16:25.864 7253 WARNING sysinv.
2019-01-17 19:16:26.710 3994 WARNING sysinv.
2019-01-17 19:16:26.711 3994 WARNING sysinv.
2019-01-17 19:16:26.892 3994 INFO sysinv.
2019-01-17 19:16:32.044 3994 INFO sysinv.
2019-01-17 19:17:22.886 3994 WARNING sysinv.
2019-01-17 19:17:22.886 3994 WARNING sysinv.
2019-01-17 20:05:42.912 3994 WARNING sysinv.
2019-01-17 20:05:42.912 3994 WARNING sysinv.
2019-01-17 20:05:42.980 3994 INFO sysinv.
2019-01-17 20:05:46.069 3994 WARNING sysinv.
2019-01-17 20:05:46.069 3994 WARNING sysinv.
2019-01-17 20:05:46.126 3994 INFO sysinv.
2019-01-17 20:05:46.201 3994 INFO sysinv.
2019-01-17 20:11:50.250 3994 INFO sysinv.
2019-01-17 20:12:23.842 3994 INFO sysinv.
Changed in starlingx: | |
assignee: | nobody → Cindy Xie (xxie1) |
tags: | added: six.config |
tags: |
added: stx.config removed: six.config |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: |
added: stx.2019.05 removed: stx.2019.03 |
Changed in starlingx: | |
assignee: | Cindy Xie (xxie1) → Ran An (an.ran) |
tags: |
added: stx.2.0 removed: stx.2019.05 |
Marking as release gating - timing issue; would be nice to address as a robustness item in the upcoming release.