lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

July 2026

  • 1 participants
  • 869 discussions
[S] Change in simtrace2[master]: firmware: Drop CEMU_TX_DATA when sim is in-active
by laforge 15 Jul '26

15 Jul '26
Attention is currently required from: lynxis lazus. laforge has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/simtrace2/+/43003?usp=email ) Change subject: firmware: Drop CEMU_TX_DATA when sim is in-active ...................................................................... Patch Set 4: Code-Review+1 (2 comments) File firmware/libcommon/include/card_emu.h: https://gerrit.osmocom.org/c/simtrace2/+/43003/comment/6c5f50ed_becba710?us… : PS4, Line 75: bool card_ready(struct card_handle *ch); const struct File firmware/libcommon/source/card_emu.c: https://gerrit.osmocom.org/c/simtrace2/+/43003/comment/a15d6508_e5d06526?us… : PS4, Line 219: bool card_ready(struct card_handle *ch) const struct ... -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43003?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I796e548225a742cddfde12bd6a60e4d2e5c04c8f Gerrit-Change-Number: 43003 Gerrit-PatchSet: 4 Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:23:40 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in simtrace2[master]: firmware: card_emu.h: declare usb_buf_upd_len_and_submit()
by laforge 15 Jul '26

15 Jul '26
Attention is currently required from: lynxis lazus. laforge has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/simtrace2/+/43002?usp=email ) Change subject: firmware: card_emu.h: declare usb_buf_upd_len_and_submit() ...................................................................... Patch Set 3: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43002?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I734d4b2d782223dd2f735f140d8c9bc6fc00a086 Gerrit-Change-Number: 43002 Gerrit-PatchSet: 3 Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:22:15 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in simtrace2[master]: firmware: card_emu.h: add missing header stdbool.h.
by laforge 15 Jul '26

15 Jul '26
Attention is currently required from: lynxis lazus. laforge has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/simtrace2/+/43001?usp=email ) Change subject: firmware: card_emu.h: add missing header stdbool.h. ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43001?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I4ad6d5cf0b4477cbd5f761d70c4cd92fb3ca1fcd Gerrit-Change-Number: 43001 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:21:59 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in simtrace2[master]: README.md: describe the debug uart
by laforge 15 Jul '26

15 Jul '26
Attention is currently required from: lynxis lazus. laforge has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/simtrace2/+/43000?usp=email ) Change subject: README.md: describe the debug uart ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43000?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I4cf929fded962e7ffb4c01628279385b2af04157 Gerrit-Change-Number: 43000 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:21:36 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-hlr[master]: systemd: run db-upgrade script in ExecStartPre
by osmith 15 Jul '26

15 Jul '26
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-hlr/+/43010?usp=email ) Change subject: systemd: run db-upgrade script in ExecStartPre ...................................................................... systemd: run db-upgrade script in ExecStartPre We have seen in CI jobs that calling the DB upgrade script from debian/postinst does not work reliably. When doing a fresh install of osmo-hlr, it usually works as expected: Setting up osmo-hlr (1.9.2) ... osmo-hlr-post-upgrade: nothing to do (no existing database) But sometimes: Setting up osmo-hlr (1.9.2) ... osmo-hlr-post-upgrade: database upgrade is required osmo-hlr-post-upgrade: stopping osmo-hlr service osmo-hlr-post-upgrade: creating backup: /var/lib/osmocom/hlr.db.20260706135658.bak osmo-hlr-post-upgrade: performing database upgrade <0001> db.c:600 using database: /var/lib/osmocom/hlr.db <0001> db.c:103 (283) recovered 4 frames from WAL file /var/lib/osmocom/hlr.db-wal <0001> db.c:679 Database '/var/lib/osmocom/hlr.db' has HLR DB schema version 0 <0001> db.c:103 (1) duplicate column name: last_lu_seen in "ALTER TABLE subscriber ADD COLUMN last_lu_seen TIMESTAMP default NULL" <0001> db.c:248 Unable to prepare SQL statement 'ALTER TABLE subscriber ADD COLUMN last_lu_seen TIMESTAMP default NULL' <0001> db.c:318 Unable to update HLR database schema to version 1 <0001> db.c:685 Failed to upgrade HLR DB schema to version 1: (rc=1) duplicate column name: last_lu_seen <0000> hlr_db_tool.c:509 Error opening database It seems that osmo-hlr can get started before the osmo-hlr-post-upgrade script runs, then starts to create the database with the current schema, and gets stopped before it is done, leading to the failure above. Rename the script to osmo-hlr-db-upgrade.sh, remove logic for stopping and starting the service and let systemd call it in ExecStartPre. That way we are sure that it runs *before* osmo-hlr starts up. Related: SYS#8125 Change-Id: If13f4c8b49397e6630956e92a7825843c7d55ebd --- M contrib/Makefile.am R contrib/osmo-hlr-db-upgrade.sh M contrib/systemd/osmo-hlr.service M debian/osmo-hlr.install M debian/postinst 5 files changed, 8 insertions(+), 43 deletions(-) Approvals: fixeria: Looks good to me, but someone else must approve Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve osmith: Looks good to me, approved diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 37c4aa4..fa3f1a2 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -3,12 +3,12 @@ dgsm \ $(NULL) -EXTRA_DIST = osmo-hlr-post-upgrade.sh +EXTRA_DIST = osmo-hlr-db-upgrade.sh install-data-hook: - install -Dm755 $(srcdir)/osmo-hlr-post-upgrade.sh \ + install -Dm755 $(srcdir)/osmo-hlr-db-upgrade.sh \ -t $(DESTDIR)$(datadir)/osmocom/ uninstall-hook: @$(PRE_UNINSTALL) - $(RM) $(DESTDIR)$(datadir)/osmocom/osmo-hlr-post-upgrade.sh + $(RM) $(DESTDIR)$(datadir)/osmocom/osmo-hlr-db-upgrade.sh diff --git a/contrib/osmo-hlr-post-upgrade.sh b/contrib/osmo-hlr-db-upgrade.sh similarity index 61% rename from contrib/osmo-hlr-post-upgrade.sh rename to contrib/osmo-hlr-db-upgrade.sh index eaef417..2f288af 100644 --- a/contrib/osmo-hlr-post-upgrade.sh +++ b/contrib/osmo-hlr-db-upgrade.sh @@ -2,14 +2,13 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # Copyright 2021 sysmocom s.f.m.c GmbH <info(a)sysmocom.de> # -# Packagers are supposed to call this script in post-upgrade, so it can safely -# upgrade the database scheme if required. +# This script gets called in ExecStartPre= of osmo-hlr.service, so it can +# safely upgrade the database scheme if required. DB="/var/lib/osmocom/hlr.db" -IS_ACTIVE=0 msg() { - echo "osmo-hlr-post-upgrade: $@" + echo "osmo-hlr-db-upgrade: $@" } err() { @@ -36,27 +35,6 @@ msg "database upgrade is required" } -stop_service() { - if systemctl is-active -q osmo-hlr; then - IS_ACTIVE=1 - msg "stopping osmo-hlr service" - systemctl stop osmo-hlr - - # Verify that it stopped - for i in $(seq 1 100); do - if ! systemctl is-active -q osmo-hlr; then - return - fi - sleep 0.1 - done - - err "failed to stop osmo-hlr service" - exit 1 - else - msg "osmo-hlr service is not running" - fi -} - create_backup() { backup="$DB.$(date +%Y%m%d%H%M%S).bak" msg "creating backup: $backup" @@ -81,15 +59,6 @@ msg "database upgrade successful" } -start_service() { - if [ "$IS_ACTIVE" = "1" ]; then - msg "starting osmo-hlr service" - systemctl start osmo-hlr - fi -} - check_upgrade_required -stop_service create_backup upgrade -start_service diff --git a/contrib/systemd/osmo-hlr.service b/contrib/systemd/osmo-hlr.service index 2822f13..a28a989 100644 --- a/contrib/systemd/osmo-hlr.service +++ b/contrib/systemd/osmo-hlr.service @@ -11,6 +11,7 @@ WorkingDirectory=%S/osmocom User=osmocom Group=osmocom +ExecStartPre=/usr/share/osmocom/osmo-hlr-db-upgrade.sh ExecStart=/usr/bin/osmo-hlr -c /etc/osmocom/osmo-hlr.cfg -l /var/lib/osmocom/hlr.db RestartSec=2 ProtectHome=true diff --git a/debian/osmo-hlr.install b/debian/osmo-hlr.install index 7c8c398..bb13183 100644 --- a/debian/osmo-hlr.install +++ b/debian/osmo-hlr.install @@ -6,4 +6,4 @@ /usr/share/doc/osmo-hlr/sql/hlr_data.sql /usr/share/doc/osmo-hlr/examples/osmo-hlr.cfg /usr/share/doc/osmo-hlr/examples/osmo-hlr-dgsm.cfg -/usr/share/osmocom/osmo-hlr-post-upgrade.sh +/usr/share/osmocom/osmo-hlr-db-upgrade.sh diff --git a/debian/postinst b/debian/postinst index 34fb79d..327ba00 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,9 +1,4 @@ #!/bin/sh -e -# Debian's postinst script is called on both installation and upgrade. Call the -# post-upgrade script in both cases, it won't do anything if there is nothing -# to do. -/usr/share/osmocom/osmo-hlr-post-upgrade.sh - case "$1" in configure) # Create the osmocom group and user (if it doesn't exist yet) -- To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/43010?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-hlr Gerrit-Branch: master Gerrit-Change-Id: If13f4c8b49397e6630956e92a7825843c7d55ebd Gerrit-Change-Number: 43010 Gerrit-PatchSet: 2 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-hlr[master]: systemd: run db-upgrade script in ExecStartPre
by osmith 15 Jul '26

15 Jul '26
Attention is currently required from: dexter, jolly. osmith has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-hlr/+/43010?usp=email ) Change subject: systemd: run db-upgrade script in ExecStartPre ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/43010?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-hlr Gerrit-Branch: master Gerrit-Change-Id: If13f4c8b49397e6630956e92a7825843c7d55ebd Gerrit-Change-Number: 43010 Gerrit-PatchSet: 2 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Attention: dexter <pmaier(a)sysmocom.de> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:21:30 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in simtrace2[master]: firmware: card_emu.h: add missing header stdbool.h.
by fixeria 15 Jul '26

15 Jul '26
Attention is currently required from: lynxis lazus. fixeria has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/simtrace2/+/43001?usp=email ) Change subject: firmware: card_emu.h: add missing header stdbool.h. ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43001?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I4ad6d5cf0b4477cbd5f761d70c4cd92fb3ca1fcd Gerrit-Change-Number: 43001 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:21:24 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-hlr[master]: systemd: run db-upgrade script in ExecStartPre
by laforge 15 Jul '26

15 Jul '26
Attention is currently required from: dexter, jolly, osmith. laforge has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-hlr/+/43010?usp=email ) Change subject: systemd: run db-upgrade script in ExecStartPre ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/43010?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-hlr Gerrit-Branch: master Gerrit-Change-Id: If13f4c8b49397e6630956e92a7825843c7d55ebd Gerrit-Change-Number: 43010 Gerrit-PatchSet: 2 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Attention: dexter <pmaier(a)sysmocom.de> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:21:15 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in simtrace2[master]: README.md: describe the debug uart
by fixeria 15 Jul '26

15 Jul '26
Attention is currently required from: lynxis lazus. fixeria has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/simtrace2/+/43000?usp=email ) Change subject: README.md: describe the debug uart ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43000?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I4cf929fded962e7ffb4c01628279385b2af04157 Gerrit-Change-Number: 43000 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:21:02 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in simtrace2[master]: README.md: fix typo in firmware
by fixeria 15 Jul '26

15 Jul '26
Attention is currently required from: lynxis lazus. fixeria has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/simtrace2/+/42999?usp=email ) Change subject: README.md: fix typo in firmware ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/42999?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I16721418fce55322c8730920ceaa4e65f91a8a7e Gerrit-Change-Number: 42999 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Wed, 15 Jul 2026 12:20:17 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • ...
  • 87
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.