unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54398: Adding network-manager-openvpn requires a full reboot
@ 2022-03-15 15:24 Maxim Cournoyer
  2022-03-15 16:32 ` Maxime Devos
  0 siblings, 1 reply; 2+ messages in thread
From: Maxim Cournoyer @ 2022-03-15 15:24 UTC (permalink / raw)
  To: 54398

Hello Guix,

I've been bitten by this before, and again this morning, so I'm
reporting this behavior as a bug.

The struggle looks a bit like this:

1. Add the 'network-manager-openvpn' plugin to your
'network-manager-configuration', like so:

--8<---------------cut here---------------start------------->8---
(modify-services %desktop-services
 [...]
 (network-manager-service-type config =>
 		               (network-manager-configuration
			        (inherit config)
			        (vpn-plugins (list network-manager-openvpn))))
--8<---------------cut here---------------end--------------->8---

2. 'guix system reconfigure' your system with the change

3. Try configuring/importing an OpenVPN connection; it fails because the
plugin hasn't yet been made available.

4. Restart the networking service and relogin.

5. Now it seems to be functional, but the connection fails to be
established, with a timeout error.

6. Reboot the machine.

7. Try again: it now works.

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#54398: Adding network-manager-openvpn requires a full reboot
  2022-03-15 15:24 bug#54398: Adding network-manager-openvpn requires a full reboot Maxim Cournoyer
@ 2022-03-15 16:32 ` Maxime Devos
  0 siblings, 0 replies; 2+ messages in thread
From: Maxime Devos @ 2022-03-15 16:32 UTC (permalink / raw)
  To: Maxim Cournoyer, 54398

[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]

Maxim Cournoyer schreef op di 15-03-2022 om 11:24 [-0400]:
> 1. Add the 'network-manager-openvpn' plugin to your
> 'network-manager-configuration', like so:
> 
> --8<---------------cut here---------------start------------->8---
> (modify-services %desktop-services
>  [...]
>  (network-manager-service-type config =>
>  		               (network-manager-configuration
> 			        (inherit config)
> 			        (vpn-plugins (list network-manager-openvpn))))
> --8<---------------cut here---------------end--------------->8---

Looking at 'network-manager-environment'

(define network-manager-environment
  (match-lambda
    (($ <network-manager-configuration> network-manager dns vpn-
plugins)
     ;; Define this variable in the global environment such that
     ;; "nmcli connection import type openvpn file foo.ovpn" works.
     `(("NM_VPN_PLUGIN_DIR"
        . ,(file-append (vpn-plugin-directory vpn-plugins)
                        "/lib/NetworkManager/VPN")))))),

I expect a potential issue to be that NM_VPN_PLUGIN_DIR is a
/gnu/store/... file name and hence the plugins in there are
not adjusted by a reconfiguration.  Maybe it could instead
refer to somewhere in /run/current-system/...?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-15 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 15:24 bug#54398: Adding network-manager-openvpn requires a full reboot Maxim Cournoyer
2022-03-15 16:32 ` Maxime Devos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).