Bug 625109

Summary: Reports from setroubleshoot and anaconda using report library gives bad product name, reporting to GSS not working
Product: Red Hat Enterprise Linux 6 Reporter: David Kutálek <dkutalek>
Component: reportAssignee: Gavin Romig-Koch <gavin>
Status: CLOSED CURRENTRELEASE QA Contact: David Kutálek <dkutalek>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0CC: ddumas, snagar
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: report-0.18-7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:29:52 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:
Attachments:
Description Flags
generated xml report file
none
Server complains about the product
none
Server complains about the product - from within Anaconda
none
Fixes this bz none

Description David Kutálek 2010-08-18 15:53:35 UTC
Created attachment 439418 [details]
generated xml report file

Description of problem:

XML report file from setroubleshoot is attached.
Product is just 'Redhat' instead of 'Red Hat Enterprise Linux'.

It means that GSS/Avalon/Strata server does not accept such report right now.
It means customers won't be able to report selinux problems to GSS.
We need to fix this in report, or possibly implement workaround in GSS servers.

Version-Release number of selected component (if applicable):

report-0.18-6.el6.x86_64

How reproducible:

Always.

Steps to Reproduce:
1. Create AVC message eg. using 'runcon -u system_u -r object_r -t httpd_t /bin/bash'
2. run 'sealert -b' hit report button and save to local file
3. inspect the file, namely product binding part
  
Actual results:

Product set to 'Redhat'

Expected results:

Product set to 'Red Hat Enterprise Linux'

Additional info:

Product is badly inserted also when trying to upload xml file without product binding using report command.

Comment 1 David Kutálek 2010-08-18 15:54:29 UTC
Created attachment 439419 [details]
Server complains about the product

Comment 2 David Kutálek 2010-08-19 08:59:16 UTC
Created attachment 439622 [details]
Server complains about the product - from within Anaconda

'Redhat is not a valid product' sounds horribly. We should definitely fix it.

Comment 3 David Kutálek 2010-08-19 09:06:00 UTC
As described by above attachment, reporting from within Anaconda installer is also affected. Raising priority and severity.

Comment 4 David Kutálek 2010-08-19 09:09:09 UTC
From within Anaconda, it is not possible to create a new case for GSS.
But attaching to existing case works.

Comment 6 Andrew Hecox 2010-08-19 11:25:02 UTC
Chris -- is the latest version of report from the RHEL repos pulled in automatically?

Comment 8 Chris Lumens 2010-08-19 13:50:06 UTC
> Chris -- is the latest version of report from the RHEL repos pulled in
> automatically?

Yes, whatever's current in the repo when buildinstall is run is what will be pulled into the install images.

Comment 10 Gavin Romig-Koch 2010-08-20 23:12:58 UTC
(In reply to comment #2)
> Created attachment 439622 [details]
> Server complains about the product - from within Anaconda
> 
> 'Redhat is not a valid product' sounds horribly. We should definitely fix it.

What installation media are you using to get this result from Anaconda, when i try it with the latest nightly build it works fine.

(I am able to reproduce the selinux case, so there is a problem, just i can't reproduce it in anaconda)

Comment 11 Gavin Romig-Koch 2010-08-21 00:55:52 UTC
Created attachment 440075 [details]
Fixes this bz

Comment 12 Gavin Romig-Koch 2010-08-21 01:04:03 UTC
I need a blocker+ before i can push/tag/build the fix for this.  Please let me know what

The patch is attached to this bz.

The scratch build is at: https://brewweb.devel.redhat.com/taskinfo?taskID=2697670

I've tested this fix within an installed RHEL6 latest nightly using sealert, which now works correctly with this fix.

I've also tested this fix while installing RHEL6 latest nightly, and this fix doesn't break it.

Comment 13 Gavin Romig-Koch 2010-08-21 01:30:24 UTC
Ah, I just figured out why i could not reproduce this problem under anaconda.  Yes, this change does also fix the above mentioned problem under anaconda.

Comment 14 David Kutálek 2010-08-23 11:58:02 UTC
I tried your scratch build.

It fixes problems with sealert.
I suppose it also fixes Anaconda problem, but I don't know how to get Anaconda installer using scratch-build report lib. When in compose, it should be easy and quick to test Anaconda too. I also run all other automated tests to be sure this does not break something, seems ok.

So, I would say we are ready to receive a blocker now :-).

Comment 19 releng-rhel@redhat.com 2010-11-10 21:29:52 UTC
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.