Skip to content
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

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

milan-zededa
Copy link
Contributor

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.

Copy link
Member

@uncleDecart uncleDecart left a 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
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b7cdc45) 20.48% compared to head (dcb58c4) 20.50%.
Report is 5 commits behind head on master.

❗ Current head dcb58c4 differs from pull request most recent head facbdae. Consider uploading reports for the commit facbdae to get more accurate results

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     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@rouming rouming left a 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>
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milan-zededa milan-zededa merged commit 166c0d8 into lf-edge:master Oct 23, 2023
25 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants