Bug 452705
| Summary: | Add /root/anaconda-ks-cfg to sosreport archive | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Joe Wrigley <jwrigley> | ||||||
| Component: | sos | Assignee: | Adam Stokes <astokes> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | |||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 5.3 | CC: | agk, azelinka, bmr | ||||||
| Target Milestone: | rc | Keywords: | ZStream | ||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2009-01-20 21:42:06 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 455296, 459576 | ||||||||
| Attachments: |
|
||||||||
|
Description
Joe Wrigley
2008-06-24 15:21:33 UTC
The following path should add this functionality to the general plugin:
--- /usr/lib/python2.4/site-packages/sos/plugins/general.py 2008-07-02
23:43:14.000000000 -0400
+++ /usr/lib/python2.4/site-packages/sos/plugins/general.py2 2008-07-02
23:47:39.000000000 -0400
@@ -12,6 +12,7 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+import os
import sos.plugintools
import glob
@@ -37,7 +38,9 @@
self.collectExtOutput("/bin/hostname", root_symlink = "hostname")
self.collectExtOutput("/bin/date", root_symlink = "date")
self.collectExtOutput("/usr/bin/uptime", root_symlink = "uptime")
- return
+ if os.path.exists('/root/anaconda-ks.cfg'):
+ self.addCopySpec("/root/anaconda-ks.cfg")
+ return
def postproc(self):
self.doRegexSub("/etc/sysconfig/rhn/up2date",
r"(\s*proxyPassword\s*=\s*)\S+", r"\1***")
Created attachment 310877 [details]
Adds collection of anaconda-ks.cfg to the general plugin.
Created attachment 311746 [details]
Adds collection of anaconda-ks.cfg
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0171.html |