Bug 851398

Summary: The output of cmd "subscription-manager facts" and "subscription-manager facts --list" should be same
Product: Red Hat Enterprise Linux 5 Reporter: xingge <gxing>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9CC: bkearney, jsefler, ldai
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: 2012-09-19 20:52:46 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: 771748    
Attachments:
Description Flags
facts --list output when system is registered
none
facts --list output when system is unregistered
none
facts output when system is registered
none
facts output when system is unregistered none

Description xingge 2012-08-24 04:47:13 UTC
Description of problem:
There is a difference between the output of cmd "subscription-manager facts" and
"subscription-manager facts --list" no matter the system is registered or not.

Version-Release number of selected component (if applicable):
subscription-manager-firstboot-1.0.14-1.el5
subscription-manager-gui-1.0.14-1.el5
subscription-manager-1.0.14-1.el5
python-rhsm-1.0.5-1.el5

How reproducible:
always

Steps to Reproduce:
1.run command below:
#subscription-manager facts

2.run command below:
#subscription-manager facts --list

3.compare the output of above 2 commands

Actual results:
1.after above step 3, find a difference:
the item 'net.interface.sit0.mac_address' is different between the output of step 2 and step 3 as below:
When the system is not registered:
the output of step 2 is:
  net.interface.sit0.mac_address: 00:00:00:00:21:01 
the output of step 3 is: 
  net.interface.sit0.mac_address: 00:00:00:00:31:01

When the system is registered:
the output of step 2 is:
  net.interface.sit0.mac_address: 00:00:00:00:00:00 
the output of step 3 is: 
  net.interface.sit0.mac_address: 00:00:00:00:21:00

Expected results:
no different between the output of step 2 and step 3 no matter the system is registered or not.

Additional info:

Comment 1 xingge 2012-08-24 06:01:13 UTC
Created attachment 606762 [details]
facts --list output when system is registered

Comment 2 xingge 2012-08-24 06:02:41 UTC
Created attachment 606763 [details]
facts --list output when system is unregistered

Comment 3 xingge 2012-08-24 06:03:10 UTC
Created attachment 606764 [details]
facts output when system is registered

Comment 4 xingge 2012-08-24 06:03:42 UTC
Created attachment 606765 [details]
facts output when system is unregistered