Bug 1365251
| Summary: | [RFE] SOS Reports Should Include /etc/os-net-config | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Dan Sneddon <dsneddon> |
| Component: | sos | Assignee: | Pavel Moravec <pmoravec> |
| Status: | CLOSED ERRATA | QA Contact: | Jakub Heger <jheger> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | agk, bmr, dsneddon, gavin, jheger, lyarwood, mhradile, mschuppe, plambri, sbradley |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://github.com/sosreport/sos/pull/1088 | ||
| Whiteboard: | |||
| Fixed In Version: | sos-3.5-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-10 18:00:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dan Sneddon
2016-08-08 17:19:41 UTC
Thanks for raising the bug, though I have few questions to clarify. How to identify we should collect the directory? Assuming sos is executed on arbitrary RHEL, Fedora, Ubuntu, Atomic, .. machine, is there some common denominator (like package presence) to identify the host is managed by Openstack? (if you are familiar with sos plugins - what plugin should capture the directory? or a new one? what enables it then?) Can't the directory contain some sensitive information like a password, keyring or whatever else we should obfuscate before putting into the tarball? The presence of the os-net-config RPM determines the presence of the /etc/os-net-config directory. os-net-config.noarch 0.2.4-4.el7ost @rhelosp-9.0-director-puddle It is available in the OpenStack repositories, whether those are RDO or OSP. (In reply to Dan Sneddon from comment #3) > The presence of the os-net-config RPM determines the presence of the > /etc/os-net-config directory. > > os-net-config.noarch 0.2.4-4.el7ost > @rhelosp-9.0-director-puddle > > It is available in the OpenStack repositories, whether those are RDO or OSP. So I guess if and only if this package is installed on a machine, sosreport should collect /etc/os-net-config . No command output is worth to be collected, just the directory content, right? Could you please answer also if the directory can't contain any secret we should obfuscate? (In reply to Pavel Moravec from comment #4) > (In reply to Dan Sneddon from comment #3) > > The presence of the os-net-config RPM determines the presence of the > > /etc/os-net-config directory. > > > > os-net-config.noarch 0.2.4-4.el7ost > > @rhelosp-9.0-director-puddle > > > > It is available in the OpenStack repositories, whether those are RDO or OSP. > > So I guess if and only if this package is installed on a machine, sosreport > should collect /etc/os-net-config . > > No command output is worth to be collected, just the directory content, > right? > > Could you please answer also if the directory can't contain any secret we > should obfuscate? Hi Dan, kind reminder of the needinfo ;-) (In reply to Pavel Moravec from comment #4) > (In reply to Dan Sneddon from comment #3) > > The presence of the os-net-config RPM determines the presence of the > > /etc/os-net-config directory. > > > > os-net-config.noarch 0.2.4-4.el7ost > > @rhelosp-9.0-director-puddle > > > > It is available in the OpenStack repositories, whether those are RDO or OSP. > > So I guess if and only if this package is installed on a machine, sosreport > should collect /etc/os-net-config . > > No command output is worth to be collected, just the directory content, > right? > > Could you please answer also if the directory can't contain any secret we > should obfuscate? No, there is no secret information there, only the config file (in JSON or YAML format), and possibly a mapping file (mapping.yaml). You are correct that we should collect that info if and only if the os-net-config RPM is installed. Thanks! RHEL7.3 has been released. Re-scheduling for potential inclusion in 7.4. See also: https://bugzilla.redhat.com/show_bug.cgi?id=1250346 tripleo plugin(s) might collect that info as well. (In reply to Dan Sneddon from comment #6) > You are correct > that we should collect that info if and only if the os-net-config RPM is > installed. Thanks! Per https://bugzilla.redhat.com/show_bug.cgi?id=1250346#c15 , and since the os-net-config package is installed only on (some) OSP nodes, I would suggest not creating a dedicated sos plugin but rather collect the data in current plugins. What types of OSP nodes have this package installed (and shall collect the config)? Here is a list of openstack_* plugins in sos to compare: ceilometer cinder glance heat horizon instack ironic keystone neutron nova sahara swift trove (In reply to Pavel Moravec from comment #9) > (In reply to Dan Sneddon from comment #6) > > You are correct > > that we should collect that info if and only if the os-net-config RPM is > > installed. Thanks! > > Per https://bugzilla.redhat.com/show_bug.cgi?id=1250346#c15 , and since the > os-net-config package is installed only on (some) OSP nodes, I would suggest > not creating a dedicated sos plugin but rather collect the data in current > plugins. > > What types of OSP nodes have this package installed (and shall collect the > config)? Here is a list of openstack_* plugins in sos to compare: > > ceilometer > cinder > glance > heat > horizon > instack > ironic > keystone > neutron > nova > sahara > swift > trove Maybe Lee knows? > What types of OSP nodes have this package installed (and shall collect the
> config)? Here is a list of openstack_* plugins in sos to compare:
Doesn't really matter, surely?
We can just add a new plugin for the os-net-config component (since it's its own package and upstream project). If the package is present we collect for it.
(In reply to Bryn M. Reeves from comment #11) > > What types of OSP nodes have this package installed (and shall collect the > > config)? Here is a list of openstack_* plugins in sos to compare: > > Doesn't really matter, surely? > > We can just add a new plugin for the os-net-config component (since it's its > own package and upstream project). If the package is present we collect for > it. Agreed, I don't see any harm in having a small separate plugin for os-net-config. Fixed via sos 3.5 rebase. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:0963 |