-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
collect-info.sh: add debug info from ModemManager #3511
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, bash-ninja collection in EVE is improving :D
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3511 +/- ##
==========================================
+ Coverage 20.48% 20.50% +0.02%
==========================================
Files 203 203
Lines 45440 45440
==========================================
+ Hits 9309 9319 +10
+ Misses 35448 35440 -8
+ Partials 683 681 -2 ☔ View full report in Codecov by Sentry. |
dcb58c4
to
9ed1b8e
Compare
@@ -8,7 +8,7 @@ help() { | |||
Welcome to EVE! | |||
commands: enter [service] [command (assumed sh)] | |||
enter-user-app <service> | |||
exec [service] command | |||
exec [--fork] [service] command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see option '--fork' but not '--no-fork' as commit msg says.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
Some commands, such as mmcli from the wwan container, need to create child processes and expect that child and parent processes will be in the same process namespace. However, if command with such expectations is run under nsenter, it is necessary to fork after entering the namespace, so that the parent process of the executed command is inside the target namespace as well and not just its children. Signed-off-by: Milan Lenco <milan@zededa.com>
Even though we already collect pubsub messages published by mmagent from the wwan microservice (WwanStatus, WwanMetrics, WwanLocationInfo), it can still be useful for troubleshooting to collect detailed (and some additional) info about modems, SIMs and bearers directly from the ModemManager. Signed-off-by: Milan Lenco <milan@zededa.com>
9ed1b8e
to
facbdae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Even though we already collect pubsub messages published by mmagent from the wwan microservice (WwanStatus, WwanMetrics, WwanLocationInfo), it can still be useful for troubleshooting to collect detailed (and some additional) info about modems, SIMs and bearers directly from the ModemManager.
For this to work I had to enable running
eve exec
with process forked by nsenter, see the first commit description.