From: "cron2 (Code Review)" Date: Wed, 16 Apr 2025 13:58:26 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <630f7f3922ac31b24a55e2f3337ac1b0e3ea9918-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="k1PUoBNXmFc="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: dns: apply settings via script on unixoid systems List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: flichtenheld , plaisthos , openvpn-devel --k1PUoBNXmFc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/838?usp=3Demail ) Change subject: dns: apply settings via script on unixoid systems ...................................................................... Patch Set 21: Code-Review-1 (3 comments) Patchset: PS21: So, tested Gentoo and Debian. Gentoo has "no systemd" and it seems "no /sb= in/resolvconf" either, so the script does "nothing, but return 1" - see the= comment there. I could see Gentoo being an oddball, but Debian testing does not work eithe= r - the resolv conf says `# Generated by NetworkManager` and there is no `s= ystemd-resolved` or `/sbin/resolvectl` either. I think this, at least, sho= uld work... now need to find a system that is a) linux and b) is using one= of these things... File distro/dns-scripts/Makefile.am: http://gerrit.openvpn.net/c/openvpn/+/838/comment/4845ab0a_21384a93 : PS21, Line 27: can we `chmod +x` this here? Then it could be run from `t_client.rc` to te= st "what we made for this particular OS" without having to modify/copy arou= nd that file. File distro/dns-scripts/systemd-dns-updown.sh: http://gerrit.openvpn.net/c/openvpn/+/838/comment/a3512cba_41c3b0c0 : PS21, Line 194: do_resolved || do_resolvconf On a system that has neither systemd nor `/sbin/resolvconf` (namely my gen= too system here), this will do nothing but "exit 1", and the caller will log ``` 2025-04-16 15:01:20 us=3D547785 ../distro/dns-scripts/dns-updown 2025-04-16 15:01:20 us=3D551358 dns up command exited with status 1 ``` which is not that helpful in figuring out what's going on. Maybe print som= e diagnostics from the scripts if things can not be done due to "your syste= m is too old fashioned, go away"? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/838?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ifbe4ffb44d3bfcaa50adb38cacb3436fcdc71b10 Gerrit-Change-Number: 838 Gerrit-PatchSet: 21 Gerrit-Owner: d12fk Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: d12fk Gerrit-Comment-Date: Wed, 16 Apr 2025 13:58:26 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --k1PUoBNXmFc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: d12fk, plaisthos.

Patch set 21:Code-Review -1

V= iew Change

3 comments:

  • Patchset:

    • Patch Set #21:

      So, tested Gentoo and Debian. Gentoo has &= quot;no systemd" and it seems "no /sbin/resolvconf" either, = so the script does "nothing, but return 1" - see the comment ther= e.

      I could se= e Gentoo being an oddball, but Debian testing does not work either - the re= solv conf says `# Generated by NetworkManager` and there is no `systemd-res= olved` or `/sbin/resolvectl` either. I think this, at least, should work..= . now need to find a system that is a) linux and b) is using one of these = things...

  • File di= stro/dns-scripts/Makefile.am:

      Patch Set #21, Line 27:

      can we `chmod +x` this here? Then it could be run from `t_client.rc= ` to test "what we made for this particular OS" without having to= modify/copy around that file.

  • File distro/dns-scripts/systemd-dns-updown.sh:

    • Patch Set #21, Line 194: do_resolved || do_resolvconf<= /code>

      On a s= ystem that has neither systemd nor `/sbin/resolvconf` (namely my gentoo sy= stem here), this will do nothing but "exit 1", and the caller wil= l log

      ```
      = 2025-04-16 15:01:20 us=3D547785 ../distro/dns-scripts/dns-updown
      2025-04= -16 15:01:20 us=3D551358 dns up command exited with status 1
      ```

      which is not that he= lpful in figuring out what's going on. Maybe print some diagnostics fr= om the scripts if things can not be done due to "your system is too ol= d fashioned, go away"?

To view, visit change 838.= To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifbe4ffb44d3bfcaa50adb38cacb= 3436fcdc71b10
Gerrit-Change-Number: 838
Gerrit-PatchSet: 21
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: d12fk <heiko@...515...>= ;
Gerrit-Comment-Date: Wed, 16 Apr 2025 13:58:26= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--k1PUoBNXmFc=--