[Bug 848070] New: No rcopenvpn
https://bugzilla.novell.com/show_bug.cgi?id=848070 https://bugzilla.novell.com/show_bug.cgi?id=848070#c0 Summary: No rcopenvpn Classification: openSUSE Product: openSUSE 13.1 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mhrusecky@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- openvpn package is missing rcopenvpn script to handle start/stop. In 12.3 I was able to use openvpn by running: rcopenvpn start rcopenvpn stop rcopenvpn wrapper is not present anymore in 13.1 Apart from that calling systemctl start openvpn.target does not start my VPNs and I have to start them manually one by one. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c1
Marius Tomaschewski
openvpn package is missing rcopenvpn script to handle start/stop.
In 12.3 I was able to use openvpn by running:
rcopenvpn start rcopenvpn stop
rcopenvpn wrapper is not present anymore in 13.1
This is not a bug. There is no init script any more, openvpn is started directly from a native template service file.
Apart from that calling
systemctl start openvpn.target
does not start my VPNs and I have to start them manually one by one.
What does a "ls -l /etc/systemd/system/openvpn.target.wants/" say? You have to enable the autostart of the instance(s) first: systemctl enable [--force] openvpn@foo.service systemctl enable [--force] openvpn@bar.service this causes to create openvpn@foo.service and openvpn@bar.service links in /etc/systemd/system/openvpn.target.wants/ pointing to the /usr/lib/systemd/system/openvpn@.service template file. Does it solve the openvpn.target issue? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c2
Michal Hrusecky
(In reply to comment #0)
openvpn package is missing rcopenvpn script to handle start/stop.
In 12.3 I was able to use openvpn by running:
rcopenvpn start rcopenvpn stop
rcopenvpn wrapper is not present anymore in 13.1
This is not a bug. There is no init script any more, openvpn is started directly from a native template service file.
rc scripts are not tied to init scripts. We even have a nice wrapper for simple services (see rcSuSEfirewall2 or rcnscd). But I can imagine that for backward compatibility openVPN one can be little more specific - like making sure that when I run rcopenvpn start, all my configured VPNs comes to live like in 12.3.
Apart from that calling
systemctl start openvpn.target
does not start my VPNs and I have to start them manually one by one.
What does a "ls -l /etc/systemd/system/openvpn.target.wants/" say?
You have to enable the autostart of the instance(s) first:
systemctl enable [--force] openvpn@foo.service systemctl enable [--force] openvpn@bar.service
this causes to create openvpn@foo.service and openvpn@bar.service links in /etc/systemd/system/openvpn.target.wants/ pointing to the /usr/lib/systemd/system/openvpn@.service template file.
Does it solve the openvpn.target issue?
Ok, it did, so misconfiguration (or too many expectations?) on my part. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c3
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c4
--- Comment #4 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c5
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c6
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c7
Michal Hrusecky
I still think we should not readd rcopenvpn -- we're using systemd mechanizms now.
Which is no excuse for deliberately breaking backward compatibility, see http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines (In reply to comment #6)
When you really want it back, please:
a) create an own package as extension to the existing package
No, it should be part of the openvpn package, see packaging guidelines
b) discuss it in bugzilla -- after 07.01. [I've a time-off]
I did that, you told me in comment #3 "write a script and make a submit request" so I did so.
But don't try to push not working scripts like in: https://build.opensuse.org/request/show/211229
That script works, can you at least try it before dismissing it or point to some testcase you see failing? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c8
Marius Tomaschewski
(In reply to comment #4)
I still think we should not readd rcopenvpn -- we're using systemd mechanizms now.
Which is no excuse for deliberately breaking backward compatibility, see
http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines
AFAIR, the backward compatibility link as proposed there: ln -s /sbin/service %{buildroot}%{_sbindir}/rcname simply does not work properly in this case. But, well -- here is an shorter variant I'm about to add: https://build.opensuse.org/request/show/211242 Stefan, may you review when you find the time before I'm back on January 7th? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c9
--- Comment #9 from Michal Hrusecky
AFAIR, the backward compatibility link as proposed there:
ln -s /sbin/service %{buildroot}%{_sbindir}/rcname
simply does not work properly in this case.
That's why I proposed script I sent in sr#211229
But, well -- here is an shorter variant I'm about to add:
https://build.opensuse.org/request/show/211242
Stefan, may you review when you find the time before I'm back on January 7th?
Little review: a) Status doesn't really work For some reason regardless of openvpn.target status it just states unused, didn't tried to debug yet, but neat idea reusing old rc scripts. b) It changes default behaviour which was in openSUSE < 13.1 and SLE < 12 to start all VPNs that have .conf file in /etc/openvpn by default, which this new rcopenvpn doesn't. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c10
--- Comment #10 from Michal Hrusecky
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c12
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c13
Michal Hrusecky
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c14
Marius Tomaschewski
Tested what landed in Factory and my comment still applies - it confusingly changes default and expected behavior of rcopenvpn. When you call rcopenvpn start it starts only vpns you previously enabled via systemctl. As I commented before, so far the default behavior was to start all I have configuration for.
Wrong. There was a OPENVPN_AUTOSTART sysconfig variable before, that contains the list of configs to handle. This variable (when set, otherwise all configs) is migrated in %post to "systemctl enable" at install time, which is the way to use per-tunnel/config enable under systemd now. The rcopenvpn is a compatibility wrapper, not more. When you don't want to use "systemctl enable openvpn@foo", you can use "rcopenvpn enable foo" now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c15
--- Comment #15 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=848070
https://bugzilla.novell.com/show_bug.cgi?id=848070#c16
--- Comment #16 from Michal Hrusecky
participants (1)
-
bugzilla_noreply@novell.com