Bug 963754 - The 'inventory' report in spacewalk-reports displays applicable errata plus 1.
Summary: The 'inventory' report in spacewalk-reports displays applicable errata plus 1.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.9
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space20
TreeView+ depends on / blocked
 
Reported: 2013-05-16 13:40 UTC by pierce.ward
Modified: 2013-08-05 06:36 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-05 06:36:58 UTC
Embargoed:


Attachments (Terms of Use)

Description pierce.ward 2013-05-16 13:40:12 UTC
Description of problem:
The 'inventory' report in the package 'spacewalk-reports' always returns a value of 1 or more 'errata_out_of_date' for every server. E.g. if a server has 5 outstanding errata, this report will show it having 6. If a server has 0 outstanding errata, this report will show it having 1. 

Version-Release number of selected component (if applicable):
spacewalk-reports-1.9.6-1.el5 (and possibly earlier).

How reproducible:
100% of the time. 

Steps to Reproduce:
1. Install spacewalk-reports. Make sure you have servers with and without outstanding errata. 
2. Run this command: /usr/bin/spacewalk-report inventory | awk -F',' '{print $3","$4","$11}'
3. The output of the above command will have '1' more 'errata_out_of_date' than what is displayed in the spacewalk web ui. 
  
Actual results:
The number of errata for every server has '1' added to the correct number. 

Expected results:
The number of errata for every server matches the count in the spacewalk web ui.

Additional info:

Comment 1 Tomáš Kašpárek 2013-06-11 11:30:26 UTC
fixed in spacewalk.git: 794500f707bddf9c29675ca4ad54cf91bed1c367

Comment 3 Tomáš Kašpárek 2013-08-05 06:36:58 UTC
Fix for this issue is fixed in Spacewalk 2.0 therefore closing this as CURRENTRELEASE.


Note You need to log in before you can comment on or make changes to this bug.