Bug 1253942
Summary: | NetworkManager-openconnect no longer passes nameservers to dispatcher scripts | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | James Ralston <ralston> |
Component: | NetworkManager | Assignee: | Lubomir Rintel <lkundrak> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | danw, dcbw, dwmw2, jklimes, lkundrak, psimerda |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-09-18 18:15:06 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
James Ralston
2015-08-15 21:38:49 UTC
Correction: I'm not sure whether NetworkManager was setting VPN_IP4_NAMESERVERS or IP4_NAMESERVERS, as the code in my dispatcher script checks for both. But it was definitely one of those two. (In reply to James Ralston from comment #0) > Again, the problem is *NOT* that the VPN server isn't communicating the > nameservers: it is, because NetworkManager updates /etc/resolv.conf with the > nameservers. The problem is that NetworkManager is no longer exporting the > nameservers into the environment for dispatcher scripts. That would be a NM bug then, rather then NM-openconnect. I have tested now on Fedora 22 (with vpnc) and I can see VPN_IP4_NAMESERVERS in the dispatcher output. Maybe you looked into the output for "up" action instead of "vpn-up" action. /etc/NetworkManager/dispatcher.d/99-my-test --8<------------ #!/bin/bash interface=$1 action=$2 echo "$interface $action" >> /tmp/nm-disp-output echo "===============" >> /tmp/nm-disp-output env >> /tmp/nm-disp-output echo "" >> /tmp/nm-disp-output -->8------------ This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Jirka is correct in comment 3: I was looking at the "up" action instead of the "vpn-up" action. I was fooled by the fact that until recently, most of the VPN_* variables were set in both "up" and "vpn-up". Now, most of them are only set in "vpn-up". (While this is arguably more correct behavior, it was confusing to anyone who was unintentionally relying on the old behavior, because this change wasn't announced.) |