Dear Ryutaroh,
> 
> I made an autopkgtest qemu testbed by debci setup -f -s sid -a amd64 -b qemu.
> Then I run autopkgtest -U -B -u debci openvpn -- qemu.
> 
> The test scripts in openvpn always fail. "summary" shows:
> 
> server-setup-with-ca FAIL non-zero exit status 1
> server-setup-with-static-key FAIL non-zero exit status 1
> 
> Inspection to log files does not give any useful cues to identify the
> cuase of the test failure.
> Full log of autopkgtest is attached.

Thanks for the report. The autopkgtest is usually not run in debci yet
due to the test needing machine-isolation and the debci infrastructure
not providing it, so it might be broken for real.

There is a patch in Ubuntu

+  * Added Changes:
+    - d/t/server-setup-*: adapt tests to output of v2.5.0

diff -pruN 2.5.0-1/debian/tests/server-setup-with-ca
2.5.0-1ubuntu1/debian/tests/server-setup-with-ca
--- 2.5.0-1/debian/tests/server-setup-with-ca   2020-10-28
18:37:34.000000000 +0000
+++ 2.5.0-1ubuntu1/debian/tests/server-setup-with-ca    2020-12-01
15:15:12.000000000 +0000
@@ -75,10 +75,10 @@ info "Check if Diffie-Hellman was initia
 cat $LOG_FILE | grep 'Diffie-Hellman initialized'

 info "Check if the $DEVICE is linked"
-cat $LOG_FILE | grep "/sbin/ip link set dev $DEVICE up"
+cat $LOG_FILE | grep "net_iface_up: set $DEVICE up"

 info "Check if the network route was correctly configured"
-cat $LOG_FILE | grep "/sbin/ip route add $IP_NETWORK/24"
+cat $LOG_FILE | grep "net_route_v4_add: $IP_NETWORK/24 via"

 info "Check if the Initialization Sequence completed"
 cat $LOG_FILE | grep 'Initialization Sequence Completed'
diff -pruN 2.5.0-1/debian/tests/server-setup-with-static-key
2.5.0-1ubuntu1/debian/tests/server-setup-with-static-key
--- 2.5.0-1/debian/tests/server-setup-with-static-key   2020-10-28
18:37:34.000000000 +0000
+++ 2.5.0-1ubuntu1/debian/tests/server-setup-with-static-key    2020-12-01
15:15:12.000000000 +0000
@@ -50,10 +50,10 @@ info "Check if the $STATIC_KEY is used b
 cat $LOG_FILE | grep "shared_secret_file = '$CONFIG_DIR/$STATIC_KEY'"

 info "Check if the $DEVICE is linked"
-cat $LOG_FILE | grep "/sbin/ip link set dev $DEVICE up"
+cat $LOG_FILE | grep "net_iface_up: set $DEVICE up"

 info "Check if the specified IP addresses were configured"
-cat $LOG_FILE | grep "/sbin/ip addr add dev tun0 local $IP_SERVER peer
$IP_CLIENT"
+cat $LOG_FILE | grep "net_addr_ptp_v4_add: $IP_SERVER peer $IP_CLIENT
dev tun0"

 # Clean up: kill tha OpenVPN process, remove the $DEVICE created and
$STATIC_KEY
 cleanup() {


Could you test this and ideally prepare a merge request for it? I want
to wait for 2.5.1-1 to enter testing but I'm willing to file an unblock
request for this.

Bernhard

Reply via email to