Bug 722248

Summary: subscription-manager fact null value
Product: Red Hat Enterprise Linux 6 Reporter: J.C. Molet <jmolet>
Component: subscription-managerAssignee: John Sefler <jsefler>
Status: CLOSED ERRATA QA Contact: J.C. Molet <jmolet>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2CC: jsefler, skallesh, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 17:22:21 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: 682238    
Attachments:
Description Flags
null value for dmi.processor.voltage is now reported as Unknown in the GUI none

Description J.C. Molet 2011-07-14 18:08:12 UTC
Description of problem:
On some machines you are unable to determine some facts.  When read in by subscription manager, it doesn't set the values of these facts to anything.

Version-Release number of selected component (if applicable):
subscription-manager-gnome-0.96.4-1.git.4.f2638c9.el6.x86_64
subscription-manager-0.96.4-1.git.4.f2638c9.el6.x86_64
subscription-manager-firstboot-0.96.4-1.git.4.f2638c9.el6.x86_64
python-rhsm-0.96.7-1.git.3.f3ce5d1.el6.noarch


Steps to Reproduce:
1. register subscription-manager on a virtual machine
2. view the system facts either by the command line or the gui
  
Actual results:
dmi.processor.voltage has no value on the CLI.

In the GUI the value field for this fact is interpreted as a NULL.  This means for that row in the table, it only contains one column, and cannot be read the same way by accessibility programs.

Expected results:
If you run dmidecode manually from the command line it displays situations like this with the value "Unknown":

[root@jmolet-vm0 facts]# dmidecode | grep -i voltage
	Voltage: Unknown
	Voltage: Unknown

Subscription manager should also set these null fields to Unknown, so that the display of these values is more consistent with dmidecode.

Additional info:
There also seems to be several other inconsistencies.  For example when dmi.memory.speed is not specified it's value is " (ns)", where dmidecode and all other not specified fields display "Not Specified".

Comment 1 Bryan Kearney 2011-07-26 18:39:51 UTC
Fixed in master at b5346938bcd75b2a7be2c7f7ac9c432a3a62d60f. All blank strings are now Unknown.

Comment 3 Shwetha Kallesh 2011-07-27 07:27:37 UTC
The blank string still appears..

RPM's used:

subscription-manager-firstboot-0.96.4-1.git.64.b534693.el6.x86_64
subscription-manager-0.96.4-1.git.64.b534693.el6.x86_64
subscription-manager-gnome-0.96.4-1.git.64.b534693.el6.x86_64

Steps to reproduce :

subscription-manager register --username=admin --password=admin --org=admin
<shwetha> The system has been registered with id: 57b50403-1e5d-4749-adb3-7ee3cdb77639 
<shwetha> [root@sachbeta ~]#  subscription-manager facts --list | grep dmi.processor.voltage
<shwetha> dmi.processor.voltage:

Comment 4 Shwetha Kallesh 2011-07-27 07:29:52 UTC
Steps to reproduce :

subscription-manager register --username=admin --password=admin --org=admin
The system has been registered with id: 57b50403-1e5d-4749-adb3-7ee3cdb77639 

subscription-manager facts --list | grep dmi.processor.voltage
dmi.processor.voltage:

Comment 6 Bryan Kearney 2011-07-29 19:02:28 UTC
Fixed in 1deab574be7c57dd95e7f8ba7bc09fb83e0d12cd in master. Left is as cosmetic so that other tools can choose to display NULL differently.

Comment 7 Shwetha Kallesh 2011-08-01 09:27:25 UTC
Please move the bug to verified..

RPMs used :
subscription-manager-firstboot-0.96.4-1.git.70.a18d152.el6.x86_64
subscription-manager-gnome-0.96.4-1.git.70.a18d152.el6.x86_64
subscription-manager-0.96.4-1.git.70.a18d152.el6.x86_64

Steps to reproduce :

subscription-manager register --username=admin --password=admin --org=admin
The system has been registered with id: 737b4a42-e167-43b6-883e-6fa3b4811a14 

subscription-manager facts --list | grep dmi.processor.voltage


dmi.processor.voltage: Unknown

Comment 8 John Sefler 2011-08-08 13:44:41 UTC
Created attachment 517219 [details]
null value for dmi.processor.voltage is now reported as Unknown in the GUI

Also verifying the GUI....
[root@jsefler-onprem-62server ~]# rpm -q subscription-manager-gnome
subscription-manager-gnome-0.96.5-1.git.4.303423d.el6.x86_64

see voltage reported as "Unknown" in the screenshot

Comment 9 errata-xmlrpc 2011-12-06 17:22:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1695.html