Bug 1329513

Summary: Error happened when auto attach by subscription-manager-gui
Product: Red Hat Satellite Reporter: qianzhan
Component: APIAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, gxing, mmccune, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:27:15 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
error_with_subscribing_in_GUI.png
none
rhsm.log
none
subscribing_failed_in_firstboot.png
none
successful_auto_attach_in_GUI
none
successful_auto_attach_in_CLI
none
successful_auto_attach_in_firstboot none

Description qianzhan 2016-04-22 06:59:58 UTC
Description of problem:
Error happened when auto attach by subscription-manager-gui

Version-Release number of selected component (if applicable):
Satellite-6.2.0-RHEL-6-20160420.1
subscription-manager: 1.16.8-8.el6
python-rhsm: 1.16.6-1.el6

How reproducible:
2/3

Steps to Reproduce:
1. Open subscription-manager-gui, and register system to Satellite6.2.
2. Click Auto-attach button:
Failed to auto-attach and an error msg prompted. Please see attachment 'error_with_subscribing_in_GUI.png'

Actual results:
As step 2.

Expected results:
auto-attach should succeed.

Additional info:

Comment 1 qianzhan 2016-04-22 07:00:22 UTC
Created attachment 1149652 [details]
error_with_subscribing_in_GUI.png

Comment 2 qianzhan 2016-04-22 07:03:23 UTC
Created attachment 1149654 [details]
rhsm.log

Comment 3 qianzhan 2016-04-22 07:46:51 UTC
Also failed by CLI:
[root@dhcp-128-71 ~]# subscription-manager attach --servicelevel=standard

undefined method `[]=' for nil:NilClass

Comment 4 qianzhan 2016-04-22 07:51:08 UTC
Also failed in firstboot. Please see attachment "subscribing_failed_in_firstboot.png"

Comment 5 qianzhan 2016-04-22 07:51:27 UTC
Created attachment 1149663 [details]
subscribing_failed_in_firstboot.png

Comment 6 Barnaby Court 2016-04-25 17:51:59 UTC
This appears to be an issue in the katello proxy as evidenced by the 'nil' in the error message.

Comment 7 Brad Buckingham 2016-06-07 17:54:34 UTC
Hi Tom, as this already been fixed or perhaps a duplicate?

Comment 9 John Mitsch 2016-06-24 18:12:40 UTC
Myself and another dev are having trouble reproducing this bug. It most likely has been fixed with recent changes. I am moving to ON_QA in case QA wants to verify.

Comment 10 qianzhan 2016-06-27 03:20:25 UTC
Verified.

Version-Release number of selected component (if applicable):
Satellite-6.2.0-20160620.0
subscription-manager: 1.16.8-8.el6
python-rhsm: 1.16.6-1.el6

Register the client to satellite6.2 and auto-attach in GUI, CLI and firstboot. All auto-attachings are successful. Please see attachment 'successful_auto_attach_in_GUI', 'successful_auto_attach_in_CLI' and 'successful_auto_attach_in_firstboot'.

Moving this bug from ON_QA to VERIFIED.

Comment 11 qianzhan 2016-06-27 03:21:22 UTC
Created attachment 1172757 [details]
successful_auto_attach_in_GUI

Comment 12 qianzhan 2016-06-27 03:21:50 UTC
Created attachment 1172758 [details]
successful_auto_attach_in_CLI

Comment 13 qianzhan 2016-06-27 03:22:18 UTC
Created attachment 1172759 [details]
successful_auto_attach_in_firstboot

Comment 14 Bryan Kearney 2016-07-27 11:27:15 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.

https://access.redhat.com/errata/RHBA-2016:1501