What is the intended behavior of sos collect when provided a --config /etc/sos/custom.conf
#3849
Replies: 2 comments 3 replies
-
Local not using
We don't pass the This would require some re-work on options handling, but I think this is what I'd like to see to support this kind of functionality:
Totally open to hearing alternatives as to defaults or the general approach here. For |
Beta Was this translation helpful? Give feedback.
-
@TurboTurtle @arif-ali I have a working proof of concept implementing the suggested logic. I haven't opened a PR yet though, I was hoping to use a temporary directory for the inherit config logic for non local nodes. At the moment I have not tracked down where the code is for the remote temporary directory so that the remote config gets cleaned up at the end with everything else. Otherwise its available for a quick peak in this branch/commit. If anyone has a pointer what to look at for the remote node temporary directory I'd gladly accept a nudge in the right direction. Otherwise I'll try to take a look at it later this evening or tomorrow so I can get the PR opened. |
Beta Was this translation helpful? Give feedback.
-
I'm noticing that when I run
sos collect
with a customized sos configuration, that the values under the[collect]
section are honored. Values under the[report]
section appear to be ignored.Environment
/etc/sos/sos.conf
[global] section
[report] section
[plugin_options] section
/etc/sos/custom.conf
[global] section
[collect] section
Additional options for upload-s3-XYZ are defined for endpoint, bucket, access-key and secret-key
[report] section
[plugin_options] section
Observations
After testing with the above custom configuration files is when running
sos collect --config /etc/sos/custom.conf [...]
the[global]
and[collect]
sections of thecustom.conf
file are being honored by sos collect. However, thesos report
execution on the local and remote node appears to not use any options from[report]
and[plugin_options]
sections of/etc/sos/custom.conf
. It also does not appear to use the/etc/sos/custom.conf
on the remote node, which the file exists with identical values to the local/collector node.Instead what appears to happen is that the local and remote node both load the
/etc/sos/sos.conf
file valuesenable-logs
,only-plugins
running the 8 specific plugins, and the plugin options etc..I suspect this is not the intended behavior. However, there is limited information on
--config-file
in man page for sos-collect or details for collect in man sos.conf. I believe collect should should execute report passing any of the included report and plugin options to the local and remote nodes, or maybe even pass--config-file /etc/sos/custom.conf
to the remote nodes if it exists? Having the options for all reports come from/etc/sos/sos.conf
to me seems unexpected.@TurboTurtle @pmoravec
Is what I observe the intended behavior in this use case? Is my above assumption correct and I should open a ticket on the issue?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions