Bug 1185584

Summary: Foreman-debug should extact contents into new directory like sosreport or spacewalk-debug
Product: Red Hat Satellite Reporter: Ricardo Santamaria <risantam>
Component: UsabilityAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED CURRENTRELEASE QA Contact: Tazim Kolhar <tkolhar>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: bkearney, cwelton, mmccune, omaciel, risantam, stbenjam, tkolhar, xdmoon
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/8676
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:57:28 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:
Bug Depends On:    
Bug Blocks: 1115190    

Description Ricardo Santamaria 2015-01-24 22:49:17 UTC
Foreman-debug should extact contents into new directory like how sosreport or spacewalk-debug do. Each time accidently extract in working directory causes file pile up.

Comment 1 RHEL Program Management 2015-01-24 22:53:26 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Athene Chan 2015-02-13 00:47:34 UTC
I think this is a feature request and not a documentation request. Can you confirm, Ricardo?

Comment 4 Ricardo Santamaria 2015-03-02 19:15:26 UTC
Athene, yes. I believe you are correct. This should be an RFE.

Comment 5 Xixi 2015-03-02 19:19:41 UTC
(moving out of docs since this is an issue with foreman-debug tool itself)

Comment 7 Bryan Kearney 2015-03-03 18:09:46 UTC
the goal here is for the foreman-debug tarball to have a single root directory.

Comment 8 Bryan Kearney 2015-03-03 18:10:29 UTC
Created redmine issue http://projects.theforeman.org/issues/9625 from this bug

Comment 9 Bryan Kearney 2015-03-31 19:31:55 UTC
Connecting redmine issue http://projects.theforeman.org/issues/8676 from this bug

Comment 10 Bryan Kearney 2015-03-31 20:05:11 UTC
Upstream bug assigned to stbenjam

Comment 11 Bryan Kearney 2015-03-31 20:05:13 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/8676 has been closed
-------------
Anonymous
Applied in changeset commit:a987bdbbb4593df429cb7906971e634df6457ffb.

Comment 12 Stephen Benjamin 2015-04-29 16:18:25 UTC
Would like this for 6.1: easy win, 1 little CP for lots less frustration :-)

Comment 15 Tazim Kolhar 2015-05-08 08:41:20 UTC
hi

please provide verification steps

thanks

Comment 16 Stephen Benjamin 2015-05-08 10:04:37 UTC
1. Run foreman-debug
2. tar xfv the resulting debug
3. Confirm it creates a single directory (foreman-debug-XXXXX) and stores everything in there

Comment 17 Tazim Kolhar 2015-05-11 07:41:57 UTC
VERIFIED:

# rpm -qa | grep foreman
ruby193-rubygem-foreman_docker-1.2.0.11-1.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.11-1.el7sat.noarch
foreman-1.7.2.19-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.13-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com-foreman-proxy-1.0-2.noarch
foreman-debug-1.7.2.19-1.el7sat.noarch
foreman-compute-1.7.2.19-1.el7sat.noarch
foreman-vmware-1.7.2.19-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch
foreman-libvirt-1.7.2.19-1.el7sat.noarch
ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch
foreman-ovirt-1.7.2.19-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.1.0-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.5-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.9-1.el7sat.noarch
foreman-postgresql-1.7.2.19-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.13-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
foreman-gce-1.7.2.19-1.el7sat.noarch
foreman-proxy-1.7.2.4-1.el7sat.noarch
ibm-x3655-02.ovirt.rhts.eng.bos.redhat.com-foreman-client-1.0-1.noarch



steps
# tar xf foreman-debug-44048.tar.xz
# ls
foreman-debug-44048         
foreman-debug-44048.tar.xz

Comment 18 Bryan Kearney 2015-08-11 13:21:58 UTC
This bug is slated to be released with Satellite 6.1.

Comment 19 Bryan Kearney 2015-08-12 13:57:28 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.