[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-28 Thread Lucas Kanashiro
** Description changed: + [Impact] + + The command 'systemctl reload openvpn @ $ foo' is broken for a while and + no one have reported that. Users should not be using it a lot. After + some investigation we notice the restart command does basically the same + thing, and users should be using

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-28 Thread Lucas Kanashiro
** Changed in: openvpn (Ubuntu Bionic) Assignee: (unassigned) => Lucas Kanashiro (lucaskanashiro) ** Changed in: openvpn (Ubuntu Eoan) Assignee: (unassigned) => Lucas Kanashiro (lucaskanashiro) ** Changed in: openvpn (Ubuntu Focal) Assignee: (unassigned) => Lucas Kanashiro

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-28 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/openvpn/+git/openvpn/+merge/384724 ** Merge proposal linked: https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/openvpn/+git/openvpn/+merge/384725 ** Merge proposal linked:

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-27 Thread Lucas Kanashiro
I brought more people into this discussion and we decided to drop the reload support from the stable/supported releases since it is already broken and the restart does basically the same thing. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-27 Thread Launchpad Bug Tracker
This bug was fixed in the package openvpn - 2.4.9-2ubuntu2 --- openvpn (2.4.9-2ubuntu2) groovy; urgency=medium * Drop reload support from systemd unit files (LP: #1868127) -- Lucas Kanashiro Tue, 26 May 2020 19:04:33 -0300 ** Changed in: openvpn (Ubuntu) Status: In

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-27 Thread Simon Déziel
I'd like to mention that `systemctl $action openvpn@$foo` is using the legacy systemd unit. On 18.04 and newer, you are better off moving your config to /etc/openvpn/client or /etc/openvpn/server and use corresponding and modern systemd units: openvpn-client@$foo and openvpn-server@$foo -- You

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-27 Thread Lucas Kanashiro
After a discussion with a colleague I think we should leave it as is in the supported/stable releases (I already fixed it in Groovy, it should land in the archive soon). The rationale is: even if the reload command fails the service keeps active and running, the proposed solutions would not fix

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-26 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~lucaskanashiro/ubuntu/+source/openvpn/+git/openvpn/+merge/384585 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868127 Title: OpenVPN will

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-26 Thread Lucas Kanashiro
I proposed to add the '+' in the supported releases to avoid a failure while users try to reload the service: $ sudo systemctl reload openvpn@server Job for openvpn@server.service failed because the control process exited with error code. See "systemctl status openvpn@server.service" and

Re: [Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-26 Thread John Runyon
I'm not sure there's even any point to adding the '+': an error will occur either way, whether it's in kill or in OpenVPN. At least when it appears from kill it's obvious something went wrong (even if it's not obvious what...). Personally I think removing reload is the right call going forward -

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-26 Thread Lucas Kanashiro
Executing the ExecReload= command with full privileges (adding '+') indeed fixes the reload failure (I ran my tests in a Bionic and Focal VMs but it should apply to the other releases): May 26 10:01:41 openvpn-reload kill[1764]: kill: (1738): Operation not permitted I mean the command 'systemctl

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-25 Thread Lucas Kanashiro
** Also affects: openvpn (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: openvpn (Ubuntu Bionic) Importance: Undecided Status: New ** Also affects: openvpn (Ubuntu Eoan) Importance: Undecided Status: New ** Changed in: openvpn (Ubuntu Bionic)

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-22 Thread John Runyon
That is a very good point. I never noticed it but it looks like my OpenVPN is actually failing to reload, exiting, and being restarted by systemd. It looks like I'll need to modify my 'overlay' service to use SIGUSR1 instead. -- You received this bug notification because you are a member of

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-05-20 Thread Rafael David Tinoco
** Changed in: openvpn (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868127 Title: OpenVPN will not reload due to misconfigured .service file To manage

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-03-20 Thread Christian Ehrhardt 
** Tags added: server-next -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868127 Title: OpenVPN will not reload due to misconfigured .service file To manage notifications about this bug go to:

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-03-19 Thread Simon Déziel
The "ExecReload=+/bin/kill" way of reloading without needing extra caps seems sensible. That said, I'm wondering what's the use case for a reload instead of a restart as man openvpn(8) describes what happens on SIGHUP: SIGNALS SIGHUP Cause OpenVPN to close all TUN/TAP and network connections,

[Bug 1868127] Re: OpenVPN will not reload due to misconfigured .service file

2020-03-19 Thread John Runyon
(PS: issue also exists in 2.4.7-1ubuntu2) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868127 Title: OpenVPN will not reload due to misconfigured .service file To manage notifications about this