Bug 1367676

Summary: Error 'Problem creating unit Consumer' when registering to ppc64
Product: Red Hat Enterprise Linux 7 Reporter: qianzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WORKSFORME QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: csnyder, hannsj_uhl, khowell, qianzhan, redakkan, shihliu, skallesh, vrjain
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-29 08:10:01 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:
Attachments:
Description Flags
rhsm.log
none
foreman-debug-fnRX5.tar.xz none

Description qianzhan 2016-08-17 08:32:59 UTC
Description of problem:
Error 'Problem creating unit Consumer' when registering to ppc64

Version-Release number of selected component (if applicable):
subscription-manager: 1.17.10-1.el7
python-rhsm: 1.17.6-1.el7

How reproducible:
50%

Steps to Reproduce:
1. Install RHEL-7.3-server-ppc64-Beta-1.0 (RHEL-7.3-20160811.0)
2. Register and auto-attach successfully. The remove all subscriptions and unregister.
3. Try to register again, and error happens:

[root@ibm-p8-kvm-09-guest-04 ~]# subscription-manager register
Registering to: ibm-x3650-01.ovirt.rhts.eng.bos.redhat.com:443/rhsm
Username: admin
Password: 

Problem creating unit Consumer<id=8a90c4a8568da2550156979b1568040c, uuid=0c53d5f2-cc40-4e02-863a-80e07bc274d9, type=system, name=ibm-p8-kvm-09-guest-04.lab4.eng.bos.redhat.com>


Actual results:
As step 3, the error does not happen when first registration.

Expected results:
Registration should always be smoothly.

Additional info:
Please see attachment 'rhsm.log'

Comment 1 qianzhan 2016-08-17 08:34:05 UTC
Created attachment 1191490 [details]
rhsm.log

Comment 3 qianzhan 2016-08-19 05:52:26 UTC
The bug happened on RHEL-7.3-server-ppc64le-Beta-1.1 when register the system second time in GUI against Satellite-6.2.0-RHEL-7-20160817.0

Comment 4 Chris Snyder 2016-08-19 21:45:10 UTC
Please attach the foreman-debug output from the satellite server at the time of the error.

Comment 5 qianzhan 2016-08-22 03:12:54 UTC
I tried again both on RHEL-7.3-server-ppc64le-Beta-1.1 and RHEL-7.3-server-ppc64-Beta-1.1, but this bug can not be reproduced. So close this bug As WORKSFORME. If this bug happens again, I will attach the foreman-debug output.

Comment 6 qianzhan 2016-09-06 05:49:20 UTC
This bug is reproduced with RHEL-7.3-server-ppc64-snapshot-2.0 and Satellite-6.2.0-RHEL-7-20160831.0, so reopen it. 
I ran 'foreman-debug' on satellite after this bug happened again. Please see attachment 'foreman-debug-fnRX5.tar.xz'.

Comment 7 qianzhan 2016-09-06 05:49:42 UTC
Created attachment 1198068 [details]
foreman-debug-fnRX5.tar.xz

Comment 8 Kevin Howell 2016-09-07 20:01:07 UTC
We see there is an issue. Can you please run `rhsm-debug system` and attach the resulting zip file? Also, if we could get access to the system in order to reproduce/validate/debug, that would be helpful.

Comment 9 qianzhan 2016-09-08 05:37:45 UTC
(In reply to Kevin Howell from comment #8)
> We see there is an issue. Can you please run `rhsm-debug system` and attach
> the resulting zip file? Also, if we could get access to the system in order
> to reproduce/validate/debug, that would be helpful.

This bug is not always reproduced. I tried 2 times to reproduce it, but failed today. I prefer to keep it as NEW and retest it with next RHEL7.3 build.

Comment 10 Liushihui 2016-09-14 02:22:11 UTC
It still exist on RHEL-7.3-20160908.3-server-ppc64l4(snapshot3). 
[root@ibm-p8-kvm-03-guest-02 virt-who.d]# subscription-manager  register --username=admin --password=admin
Registering to: ibm-x3655-04.ovirt.rhts.eng.bos.redhat.com:443/rhsm
Problem creating unit Consumer<id=8a90c4e35722a9a60157267b88340875, uuid=02cbad3a-51c9-40cf-8de3-c3bda40ce8d6, type=system, name=ibm-p8-kvm-03-guest-02.rhts.eng.bos.redhat.com>

Comment 12 qianzhan 2016-09-29 08:10:01 UTC
This bug does not exists on RHEL-7.3-Server-PPC64-Snapshot-5.0 and RHEL-7.3-Server-PPC64le-Snapshot-5.0 against Satellite-6.2.0-RHEL-7-20160907.6:

[root@ibm-p8-rhevm-10 ~]# subscription-manager register
Registering to: hp-dl580g7-02.rhts.eng.bos.redhat.com:443/rhsm
Username: admin
Password: 
The system has been registered with ID: 8c17576b-9803-4f7b-8cd7-4b61d6b7947e 
[root@ibm-p8-rhevm-10 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.0.0.78-Unknown
subscription management rules: 5.15.2
subscription-manager: 1.17.15-1.el7
python-rhsm: 1.17.9-1.el7

So close this bug. If it can be reproduced, I will reopen it.

Comment 13 Kevin Howell 2017-05-22 13:44:44 UTC
Clearing needinfo for now. Please change as necessary if we reopen.