-
Notifications
You must be signed in to change notification settings - Fork 543
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] Local node does not finalize_sos_cmd with same arguments as remote nodes #3828
Comments
I managed to reproduce this in RHEL 8 only, going to RHEL 8 and RHEL 9 nodes. But I cannot repro in RHEL 9, going to 8 and 9 nodes, that's really interesting. I'll see if I can find where the problem is, but if anybody else knows what's going on please comment. Also, regarding this from #3827 that I imagine happens here as well:
The problem is that 'sos report -l' output contains empty lines, so a split on the line (or rather, access to an element of that split()) was failing. I've sent a PR that solves the issue. |
Interesting. Was this running the sos-4.7.2-3.el9 RPM? |
Yes. We only had 4.7.2-2 in RHEL 8, and sos-4.7.2-3 only in RHEL9, but both versions (-2, -3) are basically the same. I think the issue is on sudo here. If you run it as root directly, we get no problems. When it fails in my case, I get an error saying that the plugin doesn't exist:
The list of plugins (both 'enabled' and 'disabled') is empty, as well as other elements that we should be populating in sos_info:
Interestingly, in my case it's the remote node the one that fails to run '-o block'. I'm going to test now with RHEL8 as the local host, and RHEL9 and another RHEL8 as remote nodes, and see what happens. |
Maybe partly? As reported in my original ticket https://gist.github.com/TrevorBenson/682f6df6645ef3f81010471835afa507#file-gistfile1-txt-L24-L34 For good measure, I tried So I only observe this issue when using |
I do notice that regardless of using
I don't have an EL9 included in the mix, but under EL8 it is the local node who seems to be ignoring the I suspect this cascades into differing finalized commands due to no list of plugins for the local node. |
This is really curious. Can you see anything interesting if you run collect with -vvv ? I get this in the RHEL 8 local node:
When I try to reproduce with all the different commands you've tried. |
The The complete output (minus the banner messages from
To check I ran I then ran
|
Executing:
The sos_logs/sos.log shows that the final command run by the local system does not run the same options,
The
--only-plugins=block
is only applied to remote nodes. I found this was the same regardless if the argument is being provided tosos collect
on the command line or if it was part of the/etc/sos/sos.conf
defined in globals, report, collect, or plugin_options.The text was updated successfully, but these errors were encountered: