Repository navigation
fix(exp_006): handle systemd port conflict — add Preexisting AMF runtime variant - #26
Merged
Merged
Conversation
…ntime + stop service in CI Co-authored-by: j143 <53068787+j143@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Test with actual Open5GC versus our 6G system
fix(exp_006): handle systemd port conflict — add Preexisting AMF runtime variant
Feb 28, 2026
j143
marked this pull request as ready for review
February 28, 2026 16:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
open5gs-amfinstalls via apt, systemd auto-startsopen5gs-amfd, pre-binding SBI port 7777 and Prometheus port 9090. The experiment then spawned a second instance that exited immediately, leavingAmfRuntime::NativePidholding a deadChildwhile silently falling through to the systemd-managed instance — no diagnostic, no clean ownership.Changes
experiments/exp_006_open5g_core_comparison/run.rsAmfRuntime::Preexistingvariant — models "instance already running, we don't own it";Dropis a no-opchild.try_wait()every 100 ms for up to 1 s; if the process exits, logs the exit status and falls back toPreexistingrather than holding a zombieChilddetect_metrics_addr) extracted before the match — eliminates the duplicated call across branches.github/workflows/open5gs-integration.ymlsystemctl stop/disable open5gs-amfd+ 1 s port-release pause before the experiment, so CI always exercises theNativePidpath with a fresh controlled instancePreexistingremains as a graceful fallback for local dev where systemd cannot be stoppedOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.