Attention is currently required from: pespin.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/docker-playground/+/33668 )
Change subject: hnbgw: adjust cfg for cnpool tests
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS3:
> Can you explain in the commit message why do you need to have 2 sets of cfg files now?
i wish i didn't need two sets -- the reason is, osmo-hnbgw master has config options that osmo-hnbgw latest does not support, so i keep a copy of the current cfg version to not break 'latest' tests...
If there's a better way I'm all ears
(I still think our test suite should correlate test suite version with SUT version implicitly to make our lives easier)
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/33668
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I94aa0b2adfc48b98cb4b1efe595c2432fc603d6c
Gerrit-Change-Number: 33668
Gerrit-PatchSet: 4
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 18 Jul 2023 21:51:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: osmith, fixeria.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/33681 )
Change subject: configure: add --enable-meas-udp2db/pcap2db/vis
......................................................................
Patch Set 4: Code-Review+1
(1 comment)
Patchset:
PS4:
> I can't find it right now, but I'm pretty sure Harald said some years ago on a mailing list post / i […]
the automagic-ness is indeed not the best approach, as documented in many places. All that can be argued about is whether or not the default should be enabled or disabled. I'm fine with disabling them by default in the configure script but build them in the debian package.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/33681
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I8b3d5efb769437a5d3036e1e627b8d477275d93e
Gerrit-Change-Number: 33681
Gerrit-PatchSet: 4
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 18 Jul 2023 18:50:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: laforge.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-remsim/+/33812
to look at the new patch set (#2).
Change subject: log at NOTICE level if somebody uses loopback addresses.
......................................................................
log at NOTICE level if somebody uses loopback addresses.
It appears a common mistake is to e.g. run remsim-server + remsim-bankd
on one machine and then instruct them to use localhost or other
loopback-routed addresses. This won't work as that address is then
sent to a [remote] remsim-client that attempts to reach the bankd
at localhost.
Change-Id: I3b4eda10e81a705aef8d647a860890a74cba8f13
---
M src/client/main_fsm.c
M src/server/rspro_server.c
2 files changed, 25 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/12/33812/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/33812
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I3b4eda10e81a705aef8d647a860890a74cba8f13
Gerrit-Change-Number: 33812
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newpatchset
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-remsim/+/33813 )
Change subject: bankd: Don't use 127.0.0.1 as default IP address for the server
......................................................................
bankd: Don't use 127.0.0.1 as default IP address for the server
If remsim-bankd connects via 127.0.0.1 or any other loopback-routed
IP address to the remsim-server, then the getpername() of remsim-server
for the bankd will also render 127.0.0.1, and subsequently that IP
address will be provided to remsim-client as address to connect to.
In almost all setups, remsim-client will be running on a remote node and
hence not able to reach remsim-bankd at 127.0.0.1.
Let's turn the server-IP into a mandatory command line argument of
remsim-bankd and not use a problematic default value.
Change-Id: I3deb05e31cdf35232cf9a118d5a5fcdb5d0ab601
---
M doc/manuals/chapters/remsim-bankd.adoc
M src/bankd/bankd_main.c
2 files changed, 36 insertions(+), 7 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/13/33813/1
diff --git a/doc/manuals/chapters/remsim-bankd.adoc b/doc/manuals/chapters/remsim-bankd.adoc
index 4df0844..e87de52 100644
--- a/doc/manuals/chapters/remsim-bankd.adoc
+++ b/doc/manuals/chapters/remsim-bankd.adoc
@@ -61,7 +61,7 @@
==== SYNOPSIS
-*osmo-remsim-bankd* [-h] [-V] [-d LOGOPT] [-i A.B.C.D] [-p <1-65535>] [-b <1-1023>] [-n <1-1023>] [-I A.B.C.D] [-P <1-65535> ]
+*osmo-remsim-bankd* [-h] [-V] [-d LOGOPT] -i A.B.C.D [-p <1-65535>] [-b <1-1023>] [-n <1-1023>] [-I A.B.C.D] [-P <1-65535> ]
==== OPTIONS
@@ -73,7 +73,9 @@
Configure the logging verbosity, see <<remsim_logging>>.
*-i, --server-host A.B.C.D*::
Specify the remote IP address/hostname of the `osmo-remsim-server` to
- which this bankd shall establish its RSPRO control connection
+ which this bankd shall establish its RSPRO control connection. Do not specify a loopback
+ address or localhost, as this would in most cases result in a broken configuration where
+ a [usually remote] remsim-client attempts to reach the bankd via loopback, which doesn't work.
*-p, --server-port <1-65535>*::
Specify the remote TCP port number of the `osmo-remsim-server` to which
this bankd shall establish its RSPRO control connection
diff --git a/src/bankd/bankd_main.c b/src/bankd/bankd_main.c
index e002b94..212e606 100644
--- a/src/bankd/bankd_main.c
+++ b/src/bankd/bankd_main.c
@@ -284,13 +284,13 @@
return 0;
}
-static void printf_help()
+static void printf_help(FILE *out)
{
- printf(
+ fprintf(out,
" -h --help Print this help message\n"
" -V --version Print the version of the program\n"
" -d --debug option Enable debug logging (e.g. DMAIN:DST2)\n"
-" -i --server-host A.B.C.D remsim-server IP address (default: 127.0.0.1)\n"
+" -i --server-host A.B.C.D remsim-server IP address (mandatory)\n"
" -p --server-port <1-65535> remsim-server TCP port (default: 9998)\n"
" -b --bank-id <1-1023> Bank Identifier of this SIM bank (default: 1)\n"
" -n --num-slots <1-1023> Number of Slots in this SIM bank (default: 8)\n"
@@ -336,7 +336,7 @@
switch (c) {
case 'h':
- printf_help();
+ printf_help(stdout);
exit(0);
break;
case 'V':
@@ -397,7 +397,7 @@
bankd_init(g_bankd);
srvc = &g_bankd->srvc;
- srvc->server_host = "localhost";
+ srvc->server_host = NULL;
srvc->server_port = 9998;
srvc->handle_rx = bankd_srvc_handle_rx;
srvc->own_comp_id.type = ComponentType_remsimBankd;
@@ -407,6 +407,13 @@
handle_options(argc, argv);
+ if (!srvc->server_host) {
+ fprintf(stderr, "ERROR: You must specify the host name / IP of the remsim-server to which "
+ "the bankd shall connect to\n\n");
+ printf_help(stderr);
+ exit(2);
+ }
+
g_bankd->main = pthread_self();
signal(SIGMAPDEL, handle_sig_mapdel);
signal(SIGMAPADD, handle_sig_mapadd);
--
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/33813
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I3deb05e31cdf35232cf9a118d5a5fcdb5d0ab601
Gerrit-Change-Number: 33813
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-remsim/+/33812 )
Change subject: log at NOTICE level if somebody uses loopback addresses.
......................................................................
log at NOTICE level if somebody uses loopback addresses.
It appears a common mistake is to e.g. run remsim-server + remsim-bankd
on one machine and then instruct them to use localhost or other
loopback-routed addresses. This won't work as that address is then
sent to a [remote] remsim-client that attempts to reach the bankd
at localhost.
Change-Id: I3b4eda10e81a705aef8d647a860890a74cba8f13
---
M src/client/main_fsm.c
M src/server/rspro_server.c
2 files changed, 25 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/12/33812/1
diff --git a/src/client/main_fsm.c b/src/client/main_fsm.c
index 18798d3..dcdd239 100644
--- a/src/client/main_fsm.c
+++ b/src/client/main_fsm.c
@@ -248,6 +248,11 @@
rspro2bank_slot(&bc->bankd_slot, &pdu_rx->msg.choice.configClientBankReq.bankSlot);
LOGPFSML(fi, LOGL_INFO, "Rx configClientBankReq(%s:%u / B%u:%u)\n", bc->bankd_conn.server_host,
bc->bankd_conn.server_port, bc->bankd_slot.bank_id, bc->bankd_slot.slot_nr);
+ if (!strncmp(bc->bankd_conn.server_host, "127.", 4) || !strcmp(bc->bankd_conn.server_host, "::1")) {
+ LOGPFSML(fi, LOGL_NOTICE, "we were instructed to connect to a bankd on a loopback address "
+ "%s. This is most likely a BROKEN CONFIGURATION, unless this client runs on the "
+ "same host as remsim-bankd\n", bc->bankd_conn.server_host);
+ }
/* bankd port 0 is a magic value to indicate "no bankd" */
if (bc->bankd_conn.server_port == 0)
osmo_fsm_inst_state_chg(fi, MF_ST_UNCONFIGURED, 0, 0);
diff --git a/src/server/rspro_server.c b/src/server/rspro_server.c
index da27a2d..9f01273 100644
--- a/src/server/rspro_server.c
+++ b/src/server/rspro_server.c
@@ -314,6 +314,11 @@
return;
}
bankd_ip = ntohl(inet_addr(ip_str));
+ if ((bankd_ip >> 24) == 127) {
+ LOGPFSML(bankd_conn->fi, LOGL_NOTICE, "bankd operating on loopback address %s, ",
+ "this is very likely a BROKEN CONFIGURATION, unless remsim-client runs "
+ "on the same machine as remsim-bankd and remsim-server\n", ip_str);
+ }
bankd_port = 9999; /* TODO: configurable */
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/33812
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I3b4eda10e81a705aef8d647a860890a74cba8f13
Gerrit-Change-Number: 33812
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange