osmith has abandoned this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/30433 )
Change subject: repo-install-test: fix with cgroups2 on host
......................................................................
Abandoned
still wip, meant to only submit the other patch
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/30433
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I7d2a93756f807301ee77d14d1a5e67d2e1262448
Gerrit-Change-Number: 30433
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: abandon
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/30433 )
Change subject: repo-install-test: fix with cgroups2 on host
......................................................................
repo-install-test: fix with cgroups2 on host
On hosts newer than debian 9, starting systemd inside docker failed
with:
Failed to create /init.scope control group: Read-only file system
Failed to allocate manager object: Read-only file system
[!!!!!!] Failed to allocate manager object.
This is because /sys/fs/cgroup was mounted inside the docker container,
and once the host has cgroup v2 systemd tries to write to it and fails.
Adjust the docker run command so it works with cgroup v2 and we can run
repo-install-test on hosts with higher debian versions.
Related: OS#5685
Related: https://serverfault.com/a/1087467
Change-Id: I7d2a93756f807301ee77d14d1a5e67d2e1262448
---
M scripts/repo-install-test.sh
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/33/30433/1
diff --git a/scripts/repo-install-test.sh b/scripts/repo-install-test.sh
index 2a3e739..5787b84 100755
--- a/scripts/repo-install-test.sh
+++ b/scripts/repo-install-test.sh
@@ -101,7 +101,9 @@
--tmpfs /run \
--tmpfs /run/lock \
--tmpfs /tmp \
- -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
+ --cgroup-parent=docker.slice \
+ --cgroupns private \
+ --privileged \
--cap-add SYS_ADMIN \
--cap-add SYS_NICE \
$args \
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/30433
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I7d2a93756f807301ee77d14d1a5e67d2e1262448
Gerrit-Change-Number: 30433
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/30434 )
Change subject: jobs/osmo-gsm-tester virtual: fix permissions
......................................................................
jobs/osmo-gsm-tester virtual: fix permissions
The docker container creates the trial dir and some files inside of it
as root, therefore the rm -rf trial-* line fails. Add logic to fix the
permissions before attempting to remove old trial-* and when the script
exits.
Related: OS#5793
Change-Id: I91bd6656f33667f401247721bb34298a6c66fc62
---
M jobs/osmo-gsm-tester-runner.yml
1 file changed, 25 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/34/30434/1
diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml
index 9a57ead..688da38 100644
--- a/jobs/osmo-gsm-tester-runner.yml
+++ b/jobs/osmo-gsm-tester-runner.yml
@@ -218,12 +218,35 @@
- timed: "H 22 * * *"
builders:
- shell: |
- # make sure no test results/bin artifacts from a previous run remain
- rm -rf trial-* *.tgz *.md5
+ # make sure no bin artifacts from a previous run remain
+ rm -rf *.tgz *.md5
- copy_artifact_all
- copy_artifact:
repo: osmo-gsm-tester_build-osmocom-bb
- shell: |
+ # Set a trap to fix workspace permissions on exit
+ fix_permissions() {
+ docker run --rm \
+ -v "$WORKSPACE":/workspace \
+ debian:bullseye \
+ chmod -R a+rwX /workspace/
+ }
+ fix_permissions_trap() {
+ set +x
+ echo
+ echo "### Clean up ###"
+ echo
+ set -x
+
+ trap - EXIT INT TERM 0
+ fix_permissions
+ }
+ trap fix_permissions_trap EXIT INT TERM 0
+
+ # Make sure no test results from a previous run remain
+ fix_permissions
+ rm -rf trial-*
+
# Build the docker image
rm -rf docker-playground
git clone \
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/30434
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I91bd6656f33667f401247721bb34298a6c66fc62
Gerrit-Change-Number: 30434
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: laforge, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30371 )
Change subject: pcu: TC_cs_max_dl: Fix race condition waiting for first DL data after X2002
......................................................................
Patch Set 2: Code-Review-1
(1 comment)
File pcu/PCU_Tests.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30371/comment/3f5c556e_d7f4…
PS2, Line 1094: for (i := 0; i < 10; i := i + 1) {
: f_rx_rlcmac_dl_block(dl_block, fn);
:
: if (not match(dl_block, tr_RLCMAC_DL_DUMMY_CTRL)) {
: /* Received first data, starting processing: */
: break;
: }
: }
> I thought about it, but decided to do it this way to avoid encapsulating more stuff, since in the en […]
Agreeing with Harald. Let's better avoid code duplication. The function can simply accept an out parameter, which will be holding the first non-dummy block.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/30371
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If7121473a3580b40d3a658dc38b9bb1421196127
Gerrit-Change-Number: 30371
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 02 Dec 2022 02:56:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30400 )
Change subject: mobile: gsm_forward_mncc(): call mncc_sock_from_cc() directly
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> what's the point of having a function pointer if you hardcode (or you know you can hardcode) a speci […]
The function pointer (ms->mncc_entity.mncc_recv) is generally used for passing Call Control messages to whatever CC entity (dummy/internal/external) the user has selected in the mobile.cfg. This is still the case even with this patch applied.
However the external CC approach is a bit special in a way that you can not only pass the signalling CC messages, but also the actual voice frames. This is not the case on the network side anymore, where osmo-msc is simply bridging RTP streams (via osmo-mgw) and not receiving the actual TCH voice frames directly. But this was possible in osmo-nitb, and is possible in osmocom-bb/mobile.
Given that it's only possible with an external MNCC app, I believe it's fine calling the respective function directly for TCH frames here. For CC signalling we're still using ms->mncc_entity.mncc_recv.
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30400
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I29305866e61a0bc3bd082108af6a9ba8ff86bcf2
Gerrit-Change-Number: 30400
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: msuraev <msuraev(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 02 Dec 2022 01:40:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment