Bug #3690
closedBSC_Tests.TC_dyn_pdch_osmo_act_deact failure: Unexpected TS Mode: "NONE mode"
0%
Description
We have seen BSC_Tests.TC_dyn_pdch_osmo_act_deact fail with:
BSC_Tests.ttcn:2754 setverdict(fail): none -> fail reason: "Unexpected TS Mode: "NONE mode"
For instance, see https://jenkins.osmocom.org/jenkins/view/TTCN3/job/ttcn3-bsc-test/402/
This failure needs to be investigated.
Updated by stsp over 5 years ago
This seems to be a race condition.
The following transcripts show VTY sessions extracted from TCP streams in pcap files stored by the test.
A successful test run shows 'NONE mode' once on the VTY, but then shows 'PDCH mode':
Welcome to the OsmoBSC VTY interface Copyright (C) 2008-2018 Harald Welte, Holger Freyther Contributions by Daniel Willmann, Jan L..bbe, Stefan Schmidt Dieter Spaar, Andreas Eversberg, Sylvain Munaut, Neels Hofmeyr License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ........"...OsmoBSC> enable enable OsmoBSC# configure terminal configure terminal OsmoBSC(config)# network network OsmoBSC(config-net)# bts 0 bts 0 OsmoBSC(config-net-bts)# trx 0 trx 0 OsmoBSC(config-net-bts-trx)# timeslot 6 timeslot 6 OsmoBSC(config-net-bts-trx-ts)# phys_chan_config TCH/F_TCH/H_PDCH phys_chan_config TCH/F_TCH/H_PDCH OsmoBSC(config-net-bts-trx-ts)# end end OsmoBSC# drop bts connection 0 oml drop bts connection 0 oml OsmoBSC# show timeslot 0 0 6 show timeslot 0 0 6 BTS 0, TRX 0, Timeslot 6, phys cfg TCH/F_TCH/H_PDCH (NONE mode), TSC 2 NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK' OsmoBSC# show timeslot 0 0 6 show timeslot 0 0 6 BTS 0, TRX 0, Timeslot 6, phys cfg TCH/F_TCH/H_PDCH (PDCH mode), TSC 2 NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK' OsmoBSC# configure terminal
Whereas the failing test run twice saw 'NONE mode' on the VTY:
Welcome to the OsmoBSC VTY interface Copyright (C) 2008-2018 Harald Welte, Holger Freyther Contributions by Daniel Willmann, Jan L..bbe, Stefan Schmidt Dieter Spaar, Andreas Eversberg, Sylvain Munaut, Neels Hofmeyr License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ........"...OsmoBSC> enable enable OsmoBSC# configure terminal configure terminal OsmoBSC(config)# network network OsmoBSC(config-net)# bts 0 bts 0 OsmoBSC(config-net-bts)# trx 0 trx 0 OsmoBSC(config-net-bts-trx)# timeslot 6 timeslot 6 OsmoBSC(config-net-bts-trx-ts)# phys_chan_config TCH/F_TCH/H_PDCH phys_chan_config TCH/F_TCH/H_PDCH OsmoBSC(config-net-bts-trx-ts)# end end OsmoBSC# drop bts connection 0 oml drop bts connection 0 oml OsmoBSC# show timeslot 0 0 6 show timeslot 0 0 6 BTS 0, TRX 0, Timeslot 6, phys cfg TCH/F_TCH/H_PDCH (NONE mode), TSC 2 NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK' OsmoBSC# show timeslot 0 0 6 show timeslot 0 0 6 BTS 0, TRX 0, Timeslot 6, phys cfg TCH/F_TCH/H_PDCH (NONE mode), TSC 2 NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK' OsmoBSC#
Updated by stsp over 5 years ago
Related proposed changes:
show dynamic timeslot details in 'show timeslot' vty command
https://gerrit.osmocom.org/c/osmo-bsc/+/11762
attempt to fix a race condition in BSC test's f_ts_dyn_mode_get
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/11763
Updated by laforge over 3 years ago
- Status changed from In Progress to Resolved
both patches merged ages ago