Bug 1862941
| Summary: | Installation fails unless api-int entry is present in DNS records | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Jan Zmeskal <jzmeskal> |
| Component: | Installer | Assignee: | Roy Golan <rgolan> |
| Installer sub component: | OpenShift on RHV | QA Contact: | Lucie Leistnerova <lleistne> |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
| Severity: | high | ||
| Priority: | unspecified | CC: | smaitra |
| Version: | 4.6 | Keywords: | TestBlockerForLayeredProduct |
| Target Milestone: | --- | ||
| Target Release: | 4.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-08-12 10:20:34 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: | |||
|
Description
Jan Zmeskal
2020-08-03 09:30:38 UTC
DNS prepender script is present on the bootstrap VM:
cat /etc/NetworkManager/dispatcher.d/30-local-dns-prepender
#!/bin/bash
IFACE=$1
STATUS=$2
case "$STATUS" in
up)
logger -s "NM local-dns-prepender triggered by ${1} ${2}."
DNS_IP="127.0.0.1"
set +e
logger -s "NM local-dns-prepender: Checking if local DNS IP is the first entry in resolv.conf"
if grep nameserver /etc/resolv.conf | head -n 1 | grep -q "$DNS_IP" ; then
logger -s "NM local-dns-prepender: local DNS IP already is the first entry in resolv.conf"
exit 0
else
logger -s "NM local-dns-prepender: Looking for '# Generated by NetworkManager' in /etc/resolv.conf to place 'nameserver $DNS_IP'"
sed -i "/^# Generated by.*$/a nameserver $DNS_IP" /etc/resolv.conf
fi
;;
*)
;;
esac
Seems like the problem might be specific for the version in description. Right now I'm trying with 4.6.0-0.nightly-2020-08-03-091920 (only couple of hours apart from 4.6.0-0.nightly-2020-08-03-054919) and the problem does not reproduce. The content of /etc/NetworkManager/dispatcher.d/30-local-dns-prepender is actually from my 4.6.0-0.nightly-2020-08-03-091920 attempt. It's hard to believe there is a significant difference between those two builds. Hopefully this is not something flaky appearing seemingly randomly. The issue seems not to be reproducing any more, last time I tried with 4.6.0-0.nightly-2020-08-12-062953. Therefore I suggest to close it. |