osmo-gsm-tester[master]: pcu_osmo: workaround osmo-pcu failing if bts not ready

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Nov 27 10:01:08 UTC 2017


Patch Set 1:

(2 comments)

https://gerrit.osmocom.org/#/c/5005/1/src/osmo_gsm_tester/pcu_osmo.py
File src/osmo_gsm_tester/pcu_osmo.py:

Line 43:         # TODO: othwerwise osmo-pcu ends after connecting to socket with "pcu_l1_if.cpp:416 BTS not available"
> Why is that a problem? AFAIK it will keep trying until BTS come up.
That's not true, after that message the osmo.pcu exits. You don't notice it when running it in the sysmobts because the systemd service restarts it once it exits, and then at some point it works.


Line 45:         event_loop.sleep(self, seconds=20)
> ugh, that's ugly ... can't you parse the log outputlike in trx_ready()? see
I wanted to leave that for later, but I'll have a look.

Initially I though about checking for unix socket available with netstat, but the issue isn't actually that the unix socket is not there. Some info is transfered but as the bts is not yet configured, then it fails. We should fix that in the osmo-pcu code to wait for the message instead of exiting.


-- 
To view, visit https://gerrit.osmocom.org/5005
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I647f287a7e652df74021093fa5edb330a333c7c3
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-HasComments: Yes



More information about the gerrit-log mailing list