Your message dated Mon, 30 Jul 2018 10:09:59 +0200
with message-id <[email protected]>
and subject line Re: cannot write systemd nfs mount service which runs after 
openvpn is really up, because systemd openvpn unit goes into started state too 
early
has caused the Debian Bug report #857169,
regarding cannot write systemd nfs mount service which runs after openvpn is 
really up, because systemd openvpn unit goes into started state too early
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
857169: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857169
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: openvpn
Version: 2.3.4-5+deb8

I am doing this in /etc/network/interfaces:
auto wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    openvpn client

which will bring me up the systemd [email protected] service on
boot.

I want to mount an nfs export on boot which is only reachable over vpn.
since nameserver resolution is not working before vpn is up, the
mounting fails if started too early.

I know I can use /etc/fstab to dynamically create a mount unit for
systemd, but in order to investigate my problem I created no fstab
entry but instead created this one manually:

root@m2:/etc/systemd/system# cat home.mount
[Unit]
[email protected]

[Mount]
What=nfs.my.lan:/home
Where=/home
Type=nfs
Options=nolock,nosuid,nodev,nfsvers=3

[Install]
[email protected]

This makes sure that the mounting takes place after the vpn is really
up. Then I systemctl enable home.mount

After that I reboot and investigate journalctl afterwards (only the
interesting entries are shown here):

Mär 08 15:11:35 m2 systemd[1]: Starting OpenVPN connection to client...
Mär 08 15:11:36 m2 systemd[1]: Started OpenVPN connection to client.
Mär 08 15:11:36 m2 systemd[1]: Mounting /home...
Mär 08 15:11:36 m2 systemd[1]: Failed to mount /home.
Mär 08 15:11:50 m2 ovpn-client[678]: Initialization Sequence Completed

As you see, the [email protected] is in started state before
openvpn is reporting initialization sequence completed. for this
reason /home is mounted too early and fails.

Is it somehow possible to write
the /lib/systemd/system/[email protected] in a way that it reports
started only after initialization sequence is really completed?

(maybe openvpn can somehow write a temporary file when really finished
which systemd then tries to load to say yes we are really started, but
that one is just an idea...)

this bug report might be related to #681961.

cya
erik

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello Erik,

thank you for spending your time helping to make Debian better with
this bug report.

You file this bug against a currently not longer supported release. 
 
So I close this bug. If the bug still exists please file a new bug from
a supported release.

CU
Jörg


- -- 
New:
GPG Fingerprint: 63E0 075F C8D4 3ABB 35AB  30EE 09F8 9F3C 8CA1 D25D
GPG key (long) : 09F89F3C8CA1D25D
GPG Key        : 8CA1D25D
CAcert Key S/N : 0E:D4:56

Old pgp Key: BE581B6E (revoked since 2014-12-31).

Jörg Frings-Fürst
D-54470 Lieser


git:      https://jff.email/cgit/

Threema:  SYR8SJXB
Wire:     @joergfringsfuerst
Skype:    joergpenguin
Ring:     jff
Telegram: @joergfringsfuerst


My wish list: 
 - Please send me a picture from the nature at your home.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEY+AHX8jUOrs1qzDuCfifPIyh0l0FAltex9cACgkQCfifPIyh
0l10yg//VYxOPJ+wECbBU2pc67lj636bKNOQfNYsBLWrK+EQN83hWb/gOuPzZ+29
nwSNBr+OzdIoaJgy1vkgwCIphDORomQbpgTUnnp4kbvFUpMkWH9W5lAG67d4L84k
q/+6YcSbRvunrnZHr6eR7q/I0vx2/iuF8dcWEdGIzDsyu0CdMK4c63ilAutQQabI
yMux579mM4erIi90GAbYsylTYkMrOA/66E8hkTzer3gcUASchjHJAKosYu9OYYYr
s3N/Ivkt/fH7j0uDV18QUbtMJYaN+AvUPjA01iEcDkCHAGgDPE6aDHipe5fy/FsO
DZfslIYmQtrLcCZnYnw+6e807FmeJ8eDZIkahCabUcbaM3qw9SAHZQw9ievJNclH
zWoWZPRVvjOMl53sKEbfh83/KPlLWe+sizn00CgG/WhN8bfqup9iOP5XWgWAMxrQ
JoxBVWYYtz8blZ5ZoaXDL0xFQo76Pk6Le20UvgmeddNLn12T2cI83mPvymsLIUTc
zrh1RYEtxlZNL1fmk7D775iehl7V3UmXwDY6SPpTYqLVLJ3KnnqhQMHXVfhJXjQQ
d0eqYd4sBnDeFo3gyjTvFRmV98fq4NWIQUm/NAw6V2feKBrewDRAs9lny/FLAwGr
w6cwtcEFL1E56FT50dw3trYega3tbv4bxbsoS2gQVMv+5IWcC1U=
=vNjB
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to