From: "cron2 (Code Review)"
Date: Fri, 25 Oct 2024 09:02:19 +0000
In-Reply-To:
References:
Reply-To: gert@...1296..., arne-openvpn@...1227..., samuli@...515...,
openvpn-devel@lists.sourceforge.net, frank@...2641...
Message-ID:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="uMQbXLmIPtQ="; charset=UTF-8
Subject: [Openvpn-devel] [S] Change in openvpn[master]: t_server_null:
forcibly kill misbehaving servers
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: mattock
Cc: plaisthos , flichtenheld , openvpn-devel
--uMQbXLmIPtQ=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, mattock, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope=
nvpn/+/775?usp=3Demail )
Change subject: t_server_null: forcibly kill misbehaving servers
......................................................................
Patch Set 8: Code-Review-2
(4 comments)
Patchset:
PS8:
getting closer
File tests/t_server_null.sh:
http://gerrit.openvpn.net/c/openvpn/+/775/comment/eede43c8_d60b792c :
PS8, Line 72: wait
remembering the pid of the t_server_null_server.sh job after launching (`se=
rver_sh_pid=3D$!`) and then calling `wait $server_sh_pid` will nicely deliv=
er child program exit status in `$!`, without having to dance around with a=
n extra file that needs to be created, rc-filed, tested-for.
`wait` without a pid specified does not return child return code, which is =
somewhat annoying.
File tests/t_server_null_server.sh:
http://gerrit.openvpn.net/c/openvpn/+/775/comment/ea5470ba_cd74abb4 :
PS3, Line 106: fi
> I think we should make this a "test fail". [=E2=80=A6]
Done
File tests/t_server_null_server.sh:
http://gerrit.openvpn.net/c/openvpn/+/775/comment/81b60a59_9f45dafb :
PS8, Line 110: tail -n 20 "${t_server_null_logdir}/${SERVER_NAME}.l=
og"
this wants a `$RUN_SUDO` because root-owned logs are not readable otherwise=
(or we need to precreate them before openvpn startup)...
```
Waiting for servers to exit
ERROR: had to send SIGKILL to server t_server_null_server-1194_udp with pid=
23977!
Tail of server log:
tail: t_server_null-fbsd14bb.ov.greenie.net-20241025-105632/t_server_null_s=
erver-1194_udp.log: Permission denied
ERROR: had to send SIGKILL to server t_server_null_server-1195_tcp with pid=
23983!
Tail of server log:
tail: t_server_null-fbsd14bb.ov.greenie.net-20241025-105632/t_server_null_s=
erver-1195_tcp.log: Permission denied
FAIL: t_server_null.sh
```
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/775?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: Ic0f98cd3b87a7b86e032e63167ac9036f7c08fcb
Gerrit-Change-Number: 775
Gerrit-PatchSet: 8
Gerrit-Owner: mattock
Gerrit-Reviewer: cron2
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
Gerrit-Attention: mattock
Gerrit-Comment-Date: Fri, 25 Oct 2024 09:02:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: cron2
Gerrit-MessageType: comment
--uMQbXLmIPtQ=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, mattock, plaisthos.=
Patch set 8:Code-Review -2=
Vi=
ew Change
4 comments:
Done
<=
li style=3D"margin: 0; padding: 0;">File tests/t_server_null_server.sh:<=
/p>
Patch Set #8, Line =
110: tail -n 20=
"${t_server_null_logdir}/${SERVER_NAME}.log"
this wants a `$RUN_SUDO`=
because root-owned logs are not readable otherwise (or we need to precreat=
e them before openvpn startup)...
```
Waiting for servers to exit
ERROR: had to se=
nd SIGKILL to server t_server_null_server-1194_udp with pid 23977!
Tail =
of server log:
tail: t_server_null-fbsd14bb.ov.greenie.net-20241025-1056=
32/t_server_null_server-1194_udp.log: Permission denied
ERROR: had to se=
nd SIGKILL to server t_server_null_server-1195_tcp with pid 23983!
Tail =
of server log:
tail: t_server_null-fbsd14bb.ov.greenie.net-20241025-1056=
32/t_server_null_server-1195_tcp.log: Permission denied
FAIL: t_server_n=
ull.sh
```
To view, visit change 775. To unsubscrib=
e, or for help writing mail filters, visit settings.
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic0f98cd3b87a7b86e032e63167a=
c9036f7c08fcb
Gerrit-Change-Number: 775
Gerrit-PatchSet: 8
Gerrit-Owner: mattock <samuli@...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: flichtenheld <frank@...2375...=
41...>
Gerrit-Attention: mattock <samuli@...515...=
>
Gerrit-Comment-Date: Fri, 25 Oct 2024 09:02:19=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: cron2 <gert@...1296...=
>
Gerrit-MessageType: comment
--uMQbXLmIPtQ=--