Update ttcn3-*/jenkins.sh to log stdout+stderr of process to log file

This way we get VTY parsing failures as well as backtraces upon process
crash.

Related: OS#4212
Change-Id: I3d9f6de638dbc07391a32c6a0cbd469dc5adf2b5
This commit is contained in:
Pau Espin 2019-11-13 16:15:44 +01:00
parent 0193073507
commit c3f157b939
30 changed files with 50 additions and 139 deletions

View File

@ -33,9 +33,7 @@ for i in `seq 0 2`; do
--network $NET_NAME --ip 172.18.12.10$i \
--name ${BUILD_TAG}-bts$i -d \
$REPO_USER/osmo-bts-$IMAGE_SUFFIX \
/usr/local/bin/respawn.sh \
osmo-bts-omldummy \
172.18.12.20 $((i + 1234)) 1
/bin/sh -c "/usr/local/bin/respawn.sh osmo-bts-omldummy 172.18.12.20 $((i + 1234)) 1 >>/data/osmo-bts-omldummy-${i}.log 2>&1"
done
echo Starting container with BSC testsuite

View File

@ -41,8 +41,7 @@ for i in `seq 0 2`; do
--network $NET_NAME --ip 172.18.2.10$i \
--name ${BUILD_TAG}-bts$i -d \
$REPO_USER/osmo-bts-$IMAGE_SUFFIX \
/usr/local/bin/respawn.sh \
osmo-bts-omldummy 172.18.2.20 $((i + 1234)) 1
/bin/sh -c "/usr/local/bin/respawn.sh osmo-bts-omldummy 172.18.2.20 $((i + 1234)) 1 >>/data/osmo-bts-omldummy-${i}.log 2>&1"
done
echo Starting container with BSC testsuite

View File

@ -7,9 +7,9 @@ log gsmtap 172.18.2.203
logging level set-all debug
logging filter all 1
!
log file /data/osmo-bsc.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -6,9 +6,9 @@ log gsmtap 172.18.2.203
logging level set-all debug
logging filter all 1
!
log file /data/osmo-stp.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -7,7 +7,7 @@ log gsmtap 172.18.12.203
logging level set-all debug
logging filter all 1
!
log file /data/osmo-bsc.log
log stderr
logging filter all 1
logging color 1
logging print category 1

View File

@ -23,7 +23,8 @@ docker run --rm \
--network $NET_NAME --ip 172.18.15.20 \
-v $VOL_BASE_DIR/bscnat:/data \
--name ${BUILD_TAG}-bscnat -d \
$REPO_USER/osmo-nitb-$IMAGE_SUFFIX osmo-bsc_nat -c /data/osmo-bsc-nat.cfg
$REPO_USER/osmo-nitb-$IMAGE_SUFFIX \
/bin/sh -c "osmo-bsc_nat -c /data/osmo-bsc-nat.cfg >/data/osmo-bsc-nat.log 2>&1"
echo Starting container with BSCNAT testsuite
docker run --rm \

View File

@ -6,9 +6,9 @@ log gsmtap 172.18.15.203
logging level set-all debug
logging filter all 1
!
log file /data/osmo-bsc_nat.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -18,7 +18,7 @@ start_bsc() {
-v $VOL_BASE_DIR/bsc:/data \
--name ${BUILD_TAG}-bsc -d \
$REPO_USER/osmo-bsc-$IMAGE_SUFFIX \
osmo-bsc -c /data/osmo-bsc.cfg
/bin/sh -c "osmo-bsc -c /data/osmo-bsc.cfg >>/data/osmo-bsc.log 2>&1"
}
start_bts() {
@ -35,7 +35,7 @@ start_bts() {
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-bts -d \
$REPO_USER/osmo-bts-$IMAGE_SUFFIX \
/usr/local/bin/respawn.sh osmo-bts-$variant -c /data/osmo-bts.cfg -i 172.18.9.10
/bin/sh -c "/usr/local/bin/respawn.sh osmo-bts-$variant -c /data/osmo-bts.cfg -i 172.18.9.10 >>/data/osmo-bts.log 2>&1"
}
start_fake_trx() {
@ -59,7 +59,7 @@ start_trxcon() {
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-trxcon -d \
$REPO_USER/osmocom-bb-host-master \
trxcon -i 172.18.9.21 -s /data/unix/osmocom_l2
/bin/sh -c "trxcon -i 172.18.9.21 -s /data/unix/osmocom_l2 >>/data/trxcon.log 2>&1"
}
start_virtphy() {
@ -70,6 +70,7 @@ start_virtphy() {
--name ${BUILD_TAG}-virtphy -d \
$REPO_USER/osmocom-bb-host-master \
virtphy -s /data/unix/osmocom_l2
/bin/sh -c "virtphy -s /data/unix/osmocom_l2 >>/data/virtphy.log 2>&1"
}
start_testsuite() {

View File

@ -6,9 +6,9 @@ log gsmtap 172.18.9.10
logging level set-all debug
logging filter all 1
!
log file /data/osmo-bts.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -7,9 +7,9 @@ log gsmtap 172.18.9.10
logging level set-all debug
logging filter all 1
!
log file /data/osmo-bsc.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -6,9 +6,9 @@ log gsmtap 172.18.9.10
logging level set-all debug
logging filter all 1
!
log file /data/osmo-bts.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -6,9 +6,9 @@ log gsmtap 172.18.9.10
logging level set-all debug
logging filter all 1
!
log file /data/osmo-bts.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -6,39 +6,12 @@ log gsmtap 172.18.3.202
logging level set-all debug
logging filter all 1
!
log file /data/osmo-ggsn.log
logging filter all 1
logging color 0
logging print category 1
logging timestamp 1
logging print extended-timestamp 1
logging level ip info
logging level tun info
logging level ggsn info
logging level sgsn notice
logging level icmp6 debug
logging level lglobal notice
logging level llapd notice
logging level linp notice
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp info
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 notice
logging level lsccp notice
logging level lsua notice
logging level lm3ua notice
logging level lmgcp notice
log stderr
logging filter all 1
logging color 1
logging print category 0
logging timestamp 0
logging print category 1
logging timestamp 1
logging print extended-timestamp 1
logging level ip info
logging level tun info
logging level ggsn info

View File

@ -22,7 +22,7 @@ docker run --rm \
-v $VOL_BASE_DIR/hlr:/data \
--name ${BUILD_TAG}-hlr -d \
$REPO_USER/osmo-hlr-$IMAGE_SUFFIX \
osmo-hlr
/bin/sh -c "osmo-hlr -c /data/osmo-hlr.cfg >/data/osmo-hlr.log 2>&1"
echo Starting container with HLR testsuite
docker run --rm \

View File

@ -8,15 +8,6 @@ log gsmtap 172.18.10.103
log stderr
logging filter all 1
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1
logging level all debug
logging level linp error
!
log file /data/osmo-hlr.log
logging filter all 1
logging color 0
logging print level 1
logging print category 1
logging print category-hex 0

View File

@ -9,32 +9,6 @@ log gsmtap 172.18.4.181
log stderr
logging filter all 1
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1
logging level all everything
logging level rtp notice
logging level lglobal notice
logging level llapd notice
logging level linp notice
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp notice
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 notice
logging level lsccp notice
logging level lsua notice
logging level lm3ua notice
logging level lmgcp debug
!
log file /data/osmo-mgw.log
logging filter all 1
logging color 0
logging print level 1
logging print category 1
logging timestamp 1

View File

@ -38,7 +38,7 @@ docker run --rm \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-msc -d \
$REPO_USER/osmo-msc-$IMAGE_SUFFIX \
osmo-msc
/bin/sh -c "osmo-msc -c /data/osmo-msc.cfg >>/data/osmo-msc.log 2>&1"
echo Starting container with MSC testsuite
docker run --rm \

View File

@ -6,9 +6,9 @@ log gsmtap 172.18.1.103
logging level set-all debug
logging filter all 1
!
log file /data/osmo-msc.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -6,9 +6,9 @@ log gsmtap 172.18.1.103
logging level set-all debug
logging filter all 1
!
log file /data/osmo-stp.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -27,7 +27,7 @@ docker run --rm \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-pcu-sns -d \
$REPO_USER/osmo-pcu-$IMAGE_SUFFIX \
/usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg
/bin/sh -c "/usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg -i 172.18.14.10 >>/data/osmo-pcu.log 2>&1"
echo Starting container with PCU testsuite
docker run --rm \

View File

@ -34,7 +34,7 @@ docker run --rm \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-pcu -d \
$REPO_USER/osmo-pcu-$IMAGE_SUFFIX \
/usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg -i 172.18.13.10
/bin/sh -c "/usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg -i 172.18.13.10 >>/data/osmo-pcu.log 2>&1"
echo Starting container with PCU testsuite
docker run --rm \

View File

@ -2,7 +2,7 @@ log gsmtap 172.18.13.10
logging level set-all debug
logging filter all 1
log file /data/osmo-pcu.log
log stderr
logging filter all 1
logging color 1
logging print level 1

View File

@ -2,9 +2,9 @@ log gsmtap 172.18.14.10
logging level set-all debug
logging filter all 1
log file /data/osmo-pcu.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print level 1
logging print category 1
logging print category-hex 0

View File

@ -14,7 +14,7 @@ start_server() {
-v $VOL_BASE_DIR/server:/data \
--name ${BUILD_TAG}-server -d \
$REPO_USER/osmo-remsim-$IMAGE_SUFFIX \
osmo-remsim-server
/bin/sh -c "osmo-remsim-server >/data/osmo-remsim-server.log 2>&1"
}
start_bankd() {
@ -24,7 +24,7 @@ start_bankd() {
-v $VOL_BASE_DIR/bankd:/data \
--name ${BUILD_TAG}-bankd -d \
$REPO_USER/osmo-remsim-$IMAGE_SUFFIX \
osmo-remsim-bankd -i 172.18.17.10
/bin/sh -c "osmo-remsim-bankd -i 172.18.17.10 >/data/osmo-remsim-bankd.log 2>&1"
}
start_client() {
@ -34,7 +34,7 @@ start_client() {
-v $VOL_BASE_DIR/client:/data \
--name ${BUILD_TAG}-client-d \
$REPO_USER/osmo-remsim-$IMAGE_SUFFIX \
osmo-remsim-client
/bin/sh -c "osmo-remsim-client >/data/osmo-remsim-client.log 2>&1"
}

View File

@ -41,7 +41,7 @@ docker run --rm \
-v $VOL_BASE_DIR/sgsn:/data \
--name ${BUILD_TAG}-sgsn -d \
$REPO_USER/osmo-sgsn-$IMAGE_SUFFIX \
osmo-sgsn
/bin/sh -c "osmo-sgsn -c /data/osmo-sgsn.cfg >/data/osmo-sgsn.log 2>&1"
echo Starting container with SGSN testsuite
docker run --rm \

View File

@ -6,7 +6,7 @@ log gsmtap 172.18.8.103
logging level set-all debug
logging filter all 1
!
log file /data/osmo-sgsn.log
log stderr
logging filter all 1
logging color 1
logging print category 1

View File

@ -6,9 +6,9 @@ log gsmtap 172.18.1.103
logging level set-all debug
logging filter all 1
!
log file /data/osmo-stp.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1

View File

@ -27,7 +27,7 @@ docker run --rm \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-sip-connector -d \
$REPO_USER/osmo-sip-$IMAGE_SUFFIX \
osmo-sip-connector
/bin/sh -c "osmo-sip-connector -c /data/osmo-sip-connector.cfg >>/data/osmo-sip-connector.log 2>&1"
echo Starting container with SIP testsuite
docker run --rm \

View File

@ -6,11 +6,11 @@ log gsmtap 172.18.11.103
logging level set-all debug
logging filter all 1
!
log file /data/osmo-sip-connector.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 0
logging timestamp 1
logging print extended-timestamp 1
logging print file basename
logging level all everything

View File

@ -5,39 +5,13 @@
log gsmtap 172.18.19.203
logging level set-all debug
logging filter all 1
log file /data/osmo-stp.log
log stderr
logging filter all 1
logging color 0
logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1
logging level set-all debug
log stderr
logging filter all 1
logging color 1
logging print category-hex 1
logging print category 1
logging timestamp 0
logging print file 1
logging level lglobal notice
logging level llapd notice
logging level linp notice
logging level lmux notice
logging level lmi notice
logging level lmib notice
logging level lsms notice
logging level lctrl notice
logging level lgtp notice
logging level lstats notice
logging level lgsup notice
logging level loap notice
logging level lss7 debug
logging level lsccp debug
logging level lsua debug
logging level lm3ua debug
logging level lmgcp notice
logging level ljibuf notice
logging level lrspro notice
!
stats interval 5
!