Project

General

Profile

Actions

Bug #5203

closed

osmo-pcap-server has same port as osmo-bts in default config

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

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
07/29/2021
Due date:
% Done:

100%

Spec Reference:

Description

As noted in Port Numbers, osmo-pcap-server and osmo-bts are listening on the same ctrl interface port.

osmo-pcap-server fails to start if osmo-bts is also running:

osmo-pcap-server -c osmo-pcap-server.cfg          
<0005> ../../../src/libosmocore/src/socket.c:939 unable to bind socket:127.0.0.1:4238: Address already in use             
<0005> ../../../src/libosmocore/src/socket.c:950 no suitable addr found for: 127.0.0.1:4238                               
<0005> ../../../../src/libosmocore/src/vty/telnet_interface.c:100 Cannot bind telnet at 127.0.0.1 4238                    
<0001> ../../../src/osmo-pcap/src/osmo_server_main.c:298 Failed to bind telnet interface

This caused repo-install-test to fail sometimes, so I'm disabling it there until this is resolved.

How should this be fixed, can we change the default port of osmo-pcap-server?

Do we even care if both can be started with the default config?

Actions #1

Updated by osmith over 2 years ago

Disabling the service for repo-install-test: https://gerrit.osmocom.org/c/osmo-ci/+/25100

Actions #2

Updated by laforge over 2 years ago

  • Assignee set to osmith
  • Priority changed from Low to Normal

I think we should change the default ports to be unique. There are few known users of osmo-pcap to begin with, and probably much fewer using its CTRL interface. I wasn't even aware there was one..

A quick grep also indicated there is no CTRL interface, and in fact your log snippet above talks about the VTY interface. Same applies here: let's change the port number.

Actions #3

Updated by osmith over 2 years ago

  • Subject changed from osmo-pcap-server has same ctrl interface port as osmo-bts in default config to osmo-pcap-server has same port as osmo-bts in default config
  • Status changed from New to In Progress
  • % Done changed from 0 to 90

laforge wrote:

I think we should change the default ports to be unique. [...]

Done: https://gerrit.osmocom.org/q/topic:pcap-4227-4228

A quick grep also indicated there is no CTRL interface, and in fact your log snippet above talks about the VTY interface. Same applies here: let's change the port number.

Right, I read the wiki table wrong and assumed that it's a CTRL port.

I've also adjusted the wiki: https://osmocom.org/projects/cellular-infrastructure/wiki/Port_Numbers

Actions #4

Updated by osmith over 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)