Bug 598978
| Summary: | RFE: provide a way to specify destination filename | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Denys Vlasenko <dvlasenk> | |
| Component: | sos | Assignee: | Adam Stokes <astokes> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | David Kutálek <dkutalek> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | low | |||
| Version: | 6.0 | CC: | agk, ahecox, bmr, borgan, dkutalek, gavin, npajkovs, snagar, syeghiay | |
| Target Milestone: | rc | Keywords: | FutureFeature | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | sos-2.2-0.el6 | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 829069 (view as bug list) | Environment: | ||
| Last Closed: | 2010-11-10 21:38:23 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: | 589147, 829069 | |||
|
Description
Denys Vlasenko
2010-06-02 13:27:16 UTC
You can set a temporary directory to store the captures files and also the compressed archive (--tmp-dir) This should be available in latest sos release in RHEL6 beta. Could you please confirm if this solves the issue? I've tried on rhel6 machine with this result. What's wrong?
[root@redhat ~]# mkdir sos
[root@redhat ~]# sosreport --tmp-dir sos/
sosreport (version 2.1)
This utility will collect some detailed information about the
hardware and setup of your Red Hat Enterprise Linux system.
The information is collected and an archive is packaged under
/tmp, which you can send to a support representative.
Red Hat Enterprise Linux will use this information for diagnostic purposes ONLY
and it will be considered confidential information.
This process may take a while to complete.
No changes will be made to your system.
Press ENTER to continue, or CTRL-C to quit.
Please enter your first initial and last name [redhat]:
Please enter the case number that you are generating this report for:
Running plugins. Please wait ...
Completed [52/52] ...
Creating compressed archive...
/bin/sh: sos/sosreport-redhat-20100602173547.tar.xz: No such file or directory
/bin/tar: -: Cannot write: Broken pipe
/bin/tar: Error is not recoverable: exiting now
Traceback (most recent call last):
File "/usr/sbin/sosreport", line 23, in <module>
sosreport(sys.argv[1:])
File "/usr/lib/python2.6/site-packages/sos/sosreport.py", line 835, in sosreport
GlobalVars.policy.displayResults()
File "/usr/lib/python2.6/site-packages/sos/policyredhat.py", line 313, in displayResults
fp = open(self.report_file, "r")
IOError: [Errno 2] No such file or directory: 'sos/sosreport-redhat-20100602173547.tar.xz'
[root@redhat ~]# ls -l sos/
total 0
Does `pwd`/sos/ exist? Thanks, Adam Of course. "mkdir sos" created it, and "ls -l sos/" did not says that it doesn't exist. Thanks for the quick replies -- I'm able to reproduce so I'll see what I can do. Thanks, Adam I belive I've fixed this issue it should make its way into nightly as soon as I can get the cluster plugin wrapped up. Thanks Adam Where we can get this build for testing? Hi Denys, I have a scratch build up at https://brewweb.devel.redhat.com/taskinfo?taskID=2502268 Thanks, Adam I tested it and it works for me, please push it to RHEL6 ASAP... This feature request did not get resolved in time for Feature Freeze for the current Red Hat Enterprise Linux release and has now been denied. It has been proposed for the next Red Hat Enterprise Linux release. If you would still like it considered for the current release as an exception, please make that request with your support representative. Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |