Bug 1968634
| Summary: | [master] [assisted operator] Installed Clusters are missing DNS setups | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | hanzhang | |
| Component: | assisted-installer | Assignee: | Igal Tsoiref <itsoiref> | |
| assisted-installer sub component: | Installer | QA Contact: | Omri Hochman <ohochman> | |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | ||
| Severity: | high | |||
| Priority: | high | CC: | akrzos, aos-bugs, itsoiref, sdayan, yobshans | |
| Version: | 4.8 | Keywords: | Triaged | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | KNI-EDGE-JUKE-4.8 AI-Team-Platform | |||
| Fixed In Version: | OCP-Metal-v1.0.22.1 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1969752 1971298 (view as bug list) | Environment: | ||
| Last Closed: | 2022-08-28 08:45:59 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1969752, 1971298 | |||
|
Description
hanzhang
2021-06-07 17:33:01 UTC
It can be related to the forcedns sed command not working:
```
# cat /etc/NetworkManager/dispatcher.d/forcedns
export IP="198.18.8.147"
if [ "$2" = "dhcp4-change" ] || [ "$2" = "dhcp6-change" ] || [ "$2" = "up" ] || [ "$2" = "connectivity-change" ]; then
if ! grep -q "$IP" /etc/resolv.conf; then
sed -i "s/sno00030.rdu2.scalelab.redhat.com//" /etc/resolv.conf
sed -i "s/search /search sno00030.rdu2.scalelab.redhat.com /" /etc/resolv.conf
sed -i "0,/nameserver/s/nameserver/nameserver $IP\nnameserver/" /etc/resolv.conf
fi
fi
# journalctl | grep -C10 "/etc/NetworkManager/dispatcher.d/forcedns"
...
Jun 04 23:29:54 sno00030 kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
Jun 04 23:29:54 sno00030 dbus-daemon[1360]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jun 04 23:29:54 sno00030 systemd[1]: Started Network Manager Script Dispatcher Service.
Jun 04 23:29:54 sno00030 kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
Jun 04 23:29:54 sno00030 nm-dispatcher[1605]: Error: Device '' not found.
Jun 04 23:29:54 sno00030 nm-dispatcher[1605]: Error: Device '' not found.
Jun 04 23:29:54 sno00030 nm-dispatcher[1605]: grep: /etc/resolv.conf: No such file or directory
Jun 04 23:29:54 sno00030 nm-dispatcher[1605]: sed: can't read /etc/resolv.conf: No such file or directory
Jun 04 23:29:54 sno00030 nm-dispatcher[1605]: sed: can't read /etc/resolv.conf: No such file or directory
Jun 04 23:29:54 sno00030 nm-dispatcher[1605]: sed: can't read /etc/resolv.conf: No such file or directory
Jun 04 23:29:54 sno00030 nm-dispatcher[1605]: req:2 'connectivity-change', "/etc/NetworkManager/dispatcher.d/forcedns": complete: failed with Script '/etc/NetworkManager/dispatcher.d/forcedns' exited wit$ error status 2.
Jun 04 23:29:54 sno00030 NetworkManager[1593]: <warn> [1622849394.1499] dispatcher: (2) /etc/NetworkManager/dispatcher.d/forcedns failed (failed): Script '/etc/NetworkManager/dispatcher.d/forcedns' exit$d with error status 2.
```
*** Bug 1969574 has been marked as a duplicate of this bug. *** Verified with latest 1k cluster provisioning test, not seeing this issue any more. *** Bug 2042378 has been marked as a duplicate of this bug. *** |