-
Notifications
You must be signed in to change notification settings - Fork 463
Bug 1876216: Check if /etc/resolv.conf is present before overriding #2062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1876216: Check if /etc/resolv.conf is present before overriding #2062
Conversation
|
@Gal-Zaidman: This pull request references Bugzilla bug 1876216, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/cc @mandre |
|
/bugzilla refresh |
|
@Gal-Zaidman: This pull request references Bugzilla bug 1876216, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/test e2e-ovirt |
|
@Gal-Zaidman: This pull request references Bugzilla bug 1876216, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/test e2e-ovirt |
3a11190 to
f90ee08
Compare
|
/test e2e-ovirt |
f90ee08 to
2f10ace
Compare
|
/test e2e-ovirt |
We copy /var/run/NetworkManager/resolv.conf to /etc/resolv.conf for the case that /etc/resolv.conf is not present, but if it is present we override it. On oVirt is causes the api-int to not be resolveable for a short period of time, causing failures and events. This PR adds a check to override cp only if it is not present. Notice that at the end of this script we replace it with a new file anyway but that is ok. Signed-off-by: Gal-Zaidman <[email protected]>
2f10ace to
03c8800
Compare
|
/assign @sinnykumari |
|
/test e2e-ovirt |
|
All good for OpenStack 👍 |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
20 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
@Gal-Zaidman: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
@Gal-Zaidman: All pull requests linked via external trackers have merged: Bugzilla bug 1876216 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
It looks like this breaks some baremetal IPI deployments, since it's possible for resolv.conf to exist like: This won't work for external resolution though, so the podman then fails to pull the image and we reintroduce the bug fixed via #1765 So I think we either need to partially revert this (for the baremetal platform), or do some smarter check to still overwrite the resolv.conf when it only contains a local search domain and no upstream DNS? |
|
This appears to break rhel workers: https://bugzilla.redhat.com/show_bug.cgi?id=1879322 |
We copy /var/run/NetworkManager/resolv.conf to /etc/resolv.conf for the case that /etc/resolv.conf is not present, but if it is present we override it.
On oVirt this causes the api-int to not be resolvable for a short period of time, causing failures and events.
This PR adds a check to override cp only if it is not present.
Notice that at the end of this script we replace it with a new file anyway but that is ok.
** Sent this fix to all the platforms that have similar logic to be consistent
Signed-off-by: Gal-Zaidman [email protected]
- What I did
Added a check to see if /etc/resolv.conf exist before overriding it
- Description for the changelog
Check if /etc/resolv.conf is present before overriding at the beginning of NetworkManager-resolv-prepender