Project

General

Profile

Actions

Bug #4317

open

external tests not enabled in jenkins.sh

Added by osmith over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
12/10/2019
Due date:
% Done:

10%

Spec Reference:

Description

The external tests are not running in jenkins. As time of writing, they were broken because the config paths were wrong. I'll submit a patch to fix that.

With that fix, the first 3 tests are running now. However, it fails later:

Failed to verify src/osmo-pcap-client -c /home/user/code/osmo-dev/src/osmo-pcap/doc/examples/osmo-pcap-client/osmo-pcap-client-tls.cfg
Current directory: /home/user/code/osmo-dev/src/osmo-pcap
Error was [Errno 111] Connection refused

Running the command manually:

$ src/osmo-pcap-client -c /home/user/code/osmo-dev/src/osmo-pcap/doc/examples/osmo-pcap-client/osmo-pcap-client-tls.cfg
<0005> ../../../../src/libosmocore/src/vty/telnet_interface.c:104 Available via telnet 127.0.0.1 4237
<0001> osmo_client_core.c:296 Failed to open the device: any: You don't have permission to capture on that device (socket: Operation not permitted)
<0001> osmo_client_core.c:234 Filter will only be applied later.
Error occurred during reading the below line:
 pcap filter host www.google.com

Failed to set the device.
<0001> osmo_client_main.c:236 Failed to parse the config file: /home/user/code/osmo-dev/src/osmo-pcap/doc/examples/osmo-pcap-client/osmo-pcap-client-tls.cfg

With setcap, the tests are passing:

$ sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' src/osmo-pcap-client

However, sudo is not configured in docker, so we can't do that in jenkins.sh.

Actions #1

Updated by osmith over 4 years ago

  • % Done changed from 0 to 10
Patches submitted to improve the situation: Here is how I would have enabled the tests with setcap in jenkins, but this does not work as described above:
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)