Project

General

Profile

Actions

Bug #3690

closed

BSC_Tests.TC_dyn_pdch_osmo_act_deact failure: Unexpected TS Mode: "NONE mode"

Added by stsp over 5 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/13/2018
Due date:
% Done:

0%

Spec Reference:

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.

Actions #1

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# 
Actions #2

Updated by stsp over 5 years ago

Actions #3

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

Actions #4

Updated by stsp over 5 years ago

  • Status changed from New to In Progress
Actions #5

Updated by laforge over 3 years ago

  • Status changed from In Progress to Resolved

both patches merged ages ago

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)