DHCP stomps on openvpn settings.

Bug #247257 reported by PaulSchulz
4
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

After starting the openvpn connection from network-manager, dhcp settings are loaded, which stomp all over the routes.. (bug reported elsewhere).

The openvpn service is not able to be cleanly stopped.. which stops the service being started again.

From /var/log/syslog:

Jul 10 21:18:52 shiny dhclient: DHCPREQUEST of <null address> on eth1 to 192.168.10.11 port 67
Jul 10 21:18:52 shiny dhclient: DHCPACK of 192.168.10.193 from 192.168.10.11
Jul 10 21:18:52 shiny dhclient: bound to 192.168.10.193 -- renewal in 233 seconds.
Jul 10 21:18:52 shiny NetworkManager: <info> DHCP daemon state is now 3 (renew) for interface eth1

<snip>
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 1 of 4 (Connection Prepare) scheduled...
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 1 of 4 (Connection Prepare) ran VPN service daemon org.freedesktop.NetworkManager.openvpn (PID 10187)
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 1 of 4 (Connection Prepare) complete.
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Jul 10 21:22:16 shiny NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 1 -> 6.
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 2 of 4 (Connection Prepare Wait) waiting...
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 2 of 4 (Connection Prepare Wait) complete.
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 3 of 4 (Connect) scheduled...
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 3 of 4 (Connect) sending connect request.
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 3 of 4 (Connect) request sent, waiting for reply...
Jul 10 21:22:16 shiny NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 6 -> 3.
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 3 of 4 (Connect) reply received.
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 4 of 4 (IP Config Get) timeout scheduled...
Jul 10 21:22:16 shiny NetworkManager: <info> VPN Activation (Rocksoft) Stage 3 of 4 (Connect) complete, waiting for IP configuration...
Jul 10 21:22:16 shiny nm-openvpn[10190]: OpenVPN 2.1_rc7 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 11 2008
Jul 10 21:22:16 shiny nm-openvpn[10190]: /usr/bin/openssl-vulnkey -q -b 1024 -m <modulus omitted>
Jul 10 21:22:16 shiny nm-openvpn[10190]: UDPv4 link local: [undef]
Jul 10 21:22:16 shiny nm-openvpn[10190]: UDPv4 link remote: <openvpn-server-ip>:1194

then

Jul 10 21:22:31 shiny nm-openvpn[10190]: [<snip>] Peer Connection Initiated with <openvpn-server-ip>:1194
Jul 10 21:22:31 shiny nm-openvpn[10190]: SIGINT[hard,] received, process exiting
Jul 10 21:22:31 shiny NetworkManager: <WARN> nm_vpn_service_process_signal(): VPN failed for service 'org.freedesktop.NetworkManager.openvpn', signal 'ConnectFailed', with message 'The VPN login failed because the VPN program could not connect to the VPN server.'.
Jul 10 21:22:31 shiny NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 3 -> 5.
Jul 10 21:22:31 shiny NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 5 -> 6.
Jul 10 21:22:31 shiny NetworkManager: <WARN> nm_vpn_service_stop_connection(): (VPN Service org.freedesktop.NetworkManager.openvpn): could not stop connection '<Connection>' because service was 6.

Revision history for this message
PaulSchulz (paulschulz) wrote :

This is with Ubuntu: 8.04

The openvpn server can be started from the command line sucessfully.

Revision history for this message
PaulSchulz (paulschulz) wrote :

--- more ---
After starting the VPN connection from Network manager I have the following in
"/etc/resolv.conf"
--------------------------------------------------------------------------------
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 5010
#
### END INFO

nameserver <openvpn-pushed-IP-address>
----------------------------------------------------------------------------------
then, about 10 sec later, this changes to..

----------------------------------------------------------------------------------
search <dhcp-domain>
nameserver <local-dhcp-configured-nameserver>
----------------------------------------------------------------------------------

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Could you try to reproduce the same with Ubuntu 8.10 or 9.04? Thanks in advance.

Changed in network-manager:
status: New → Incomplete
Revision history for this message
Anand Kumria (wildfire) wrote :

This issue exists for me. Same problem - running Jaunty on amd64.

Revision history for this message
Victor Vargas (kamus) wrote :

Since this report have a long time without activity, could you check (if is possible) in latest version included in Karmic if this issue is still happening? Thanks in advance.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for network-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in network-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.