Repository navigation
fix(supervisor): reread resolv.conf for policy DNS upstreams - #5224
ericcurtin wants to merge 5 commits into
Conversation
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
|
/ok to test dd943e7 |
TaylorMutch
left a comment
There was a problem hiding this comment.
I found one resolver-selection concern. Validation used a standalone Rust reproduction of the PR's selection method; full crate tests and sandbox E2E were not run.
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
|
@TaylorMutch @shailendra-nv The resolver preference now resets on config change and expires so the primary is retried (1b62ba2). PTAL when you get a chance, and |
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
|
Extracted the duplicated resolver setup into one helper (812f16a); clippy and policy_dns tests pass. @TaylorMutch @shailendra-nv PTAL when you get a chance, and |
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
|
@TaylorMutch @johntmyers PTAL, the primary is now always tried first. Could one of you comment ok to test 9a1f175? Thank you! |
|
/ok to test 9a1f175 |
|
@sideDesert, are you able to build OpenShell from source locally and test this PR against the macOS/GlobalProtect VPN scenario you reported in #5197? If so, please check whether DNS lookups in the same running VM sandbox continue working after connecting or reconnecting the VPN, without restarting the sandbox or supervisor. Does this fix resolve the issue you observed? Please share the commit tested and the result. If building locally isn't practical, let us know. |
Signed-off-by: Eric Curtin <eric.curtin@docker.com> # Conflicts: # crates/openshell-supervisor-network/src/policy_dns/resolver.rs
|
Merged main, conflict resolved. PTAL. |
Summary
Policy DNS now rereads
/etc/resolv.confper query and falls through to the next nameserver on timeout or I/O error.Related Issue
Closes #5197
Changes
runtime.rsTesting
Checklist