Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openvpn implementation doesn't seem right #72

Open
tym2k1 opened this issue Jul 16, 2024 · 3 comments · Fixed by #73
Open

openvpn implementation doesn't seem right #72

tym2k1 opened this issue Jul 16, 2024 · 3 comments · Fixed by #73

Comments

@tym2k1
Copy link
Contributor

tym2k1 commented Jul 16, 2024

meta-rte version (if applicable)

v0.7.5 and onward

Affected component(s) or functionality (if applicable)

OpenVPN

Brief summary

1. Misaligned references

The openvpn_%.bbappend recipe specifies that the config for the rte openvpn service should be at /data/openvpn/
while the [email protected] we implement checks for /storage/openvpn/rte.conf which doesn't exist.

We also use sed to replace openvpn references to /etc with /storage while README.md specifies putting the rte.conf on the /data partition.

2. The service seems broken on version 0.7.5

cat /ets/os-release

ID=rte
NAME="RTE (Remote Test Environment Distro)"
VERSION="0.7.5 (dunfell)"
VERSION_ID=0.7.5
PRETTY_NAME="RTE (Remote Test Environment Distro) 0.7.5 (dunfell)"

systemctl status openvpn@rte

[email protected] - Our version of openvpn service
     Loaded: loaded (/lib/systemd/system/[email protected]; disabled; vendor preset: disabled)
     Active: inactive (dead)
                                                                                                                                                                                                                   
Jul 16 14:27:00 rte systemd[1]: /lib/systemd/system/[email protected]:9: PIDFile= references a path below legacy directory /var/run/, updating /var/run/openvpn/rte.pid → /run/openvpn/rte.pid; please update the unit file accordingly.

When starting the service with systemctl start openvpn@rte:

[email protected] - Our version of openvpn service
     Loaded: loaded (/lib/systemd/system/[email protected]; disabled; vendor preset: disabled)
     Active: inactive (dead)

Jul 16 14:35:35 rte systemd[1]: /lib/systemd/system/[email protected]:9: PIDFile= references a path below legacy directory /var/run/, updating /var/run/openvpn/rte.pid → /run/openvpn/rte.pid; please update the unit file accordingly.
Jul 16 14:35:35 rte systemd[1]: Condition check resulted in Our version of openvpn service being skipped.
Jul 16 14:35:35 rte systemd[1]: /lib/systemd/system/[email protected]:9: PIDFile= references a path below legacy directory /var/run/, updating /var/run/openvpn/rte.pid → /run/openvpn/rte.pid; please update the unit file accordingly.
Jul 16 14:35:36 rte systemd[1]: /lib/systemd/system/[email protected]:9: PIDFile= references a path below legacy directory /var/run/, updating /var/run/openvpn/rte.pid → /run/openvpn/rte.pid; please update the unit file accordingly.

3. scarthgap

When working on #70 I keep getting an error:

ERROR: openvpn-2.6.10-r0 do_package: Didn't find service unit 'openvpn@rte.service', specified in SYSTEMD_SERVICE:openvpn-rte. Also looked for service unit 'openvpn@.service'.
ERROR: Logfile of failure stored in: /build/tmp/work/cortexa7t2hf-neon-rte-linux-gnueabi/openvpn/2.6.10/temp/log.do_package.39524
ERROR: Task (/build/../work/meta-openembedded/meta-networking/recipes-support/openvpn/openvpn_2.6.10.bb:do_package) failed with exit code '1'

It seems we must implement some default rte.conf and ensure that it's disabled by default

@macpijan
Copy link
Member

Let's just drop it if it causes too much trouble. I thought I suggested elsewhere that we do not use openvpnv, so we can remove drop it, or simply keep installed in image, but drop all customizations.

@tym2k1
Copy link
Contributor Author

tym2k1 commented Jul 16, 2024

Then i'll remove all customization so it uses the standard recipe from poky and ensure that the service is disabled by default. If someone needs they'll be able to add their config and start the service.

@macpijan
Copy link
Member

Makes perfect sense to me.

tym2k1 added a commit that referenced this issue Jul 16, 2024
tym2k1 added a commit that referenced this issue Jul 18, 2024
Related to #72
Also deleted the `/data` partition that was used for
storing config
tym2k1 added a commit that referenced this issue Jul 18, 2024
Related to #72
Also deleted the `/data` partition that was used for
storing config
tym2k1 added a commit that referenced this issue Jul 19, 2024
Related to #72
Also deleted the `/data` partition that was used for
storing config
tym2k1 added a commit that referenced this issue Jul 19, 2024
Related to #72
Also deleted the `/data` partition that was used for
storing config
tym2k1 added a commit that referenced this issue Jul 19, 2024
Related to #72
Also deleted the `/data` partition that was used for
storing config
tym2k1 added a commit that referenced this issue Jul 19, 2024
Related to #72
Also deleted the `/data` partition that was used for
storing config
@tym2k1 tym2k1 linked a pull request Jul 19, 2024 that will close this issue
tym2k1 added a commit that referenced this issue Aug 13, 2024
Related to #72
Also deleted the `/data` partition that was used for
storing config
tym2k1 added a commit that referenced this issue Aug 13, 2024
Related to #72
Also deleted the `/data` partition that was used for
storing config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants