Bug 751407 - RHSM subscription through activation key ends with exception
Summary: RHSM subscription through activation key ends with exception
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-11-04 15:50 UTC by Garik Khachikyan
Modified: 2019-09-26 13:23 UTC (History)
3 users (show)

Fixed In Version: katello-0.1.112-1.git.2.df9c652
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:04:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Garik Khachikyan 2011-11-04 15:50:51 UTC
Description of problem:
Trying to make registration of the system using --activationkey option ends with exception

Version-Release number of selected component (if applicable):
subscription-manager-0.98.2-1.el6.x86_64
katello-0.1.98-1.git.10.b744cd7.el6.x86_64
candlepin-0.4.25-1.el6.noarch
pulp-0.0.237-5.el6.noarch


How reproducible:
always

Steps to Reproduce:
1. prepare an org/provider/product/repo cycle
2. create env and promote the product to there
3. Through UI (recently the API/CLI way of applying subscription to activation key is failing) do assign the subscription for the product to that activation key.
4. using RHSM: 
subscription-manager register --activationkey=ak1 --org=org1 --force
  
Actual results:
failure:
---
Network error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.
---

Katello log says:
---
Creating a consumer in candlepin: <fqdn>
Creating a consumer in pulp: <fqdn>
Subscribing to pool '8aa2b8833369cd8501336f38905d001b' for : <client>
Completed 200 OK in 1929ms (Views: 0.5ms | ActiveRecord: 17.0ms)


Started GET "/katello//api/" for <IP> at Fri Nov 04 17:41:50 +0100 2011
  Processing by Api::RootController#resource_list as JSON
Completed   in 1ms
  Processing by FailedAuthenticationController#unauthenticated_api as JSON
  Parameters: {"auth_username"=>"\005\253\"", "auth_password"=>"[FILTERED]"}
Request is unauthenticated_api for 127.0.0.1
Completed 401 Unauthorized in 1ms
---

Expected results:
no exceptions

Additional info:
Priority is high: as it's included in V1 scenarios list.

Comment 1 Tomas Strachota 2011-11-15 23:11:08 UTC
This particular problem was caused by user auth required by root controller. 

After fixing this I realized that there's another problem in the registration process. RHSM don't send consumer certificate with a package profile update calls. This is not problem on katello side and has to be fixed in RHSM.

commit 3c2c00c9672fc7045d46154181e3cc69034b90a6
Author: Tomas Strachota <tstrachota>
Date:   Tue Nov 15 18:50:48 2011 +0100

    751407 - root_controller doesn't require user authorization

Comment 2 Tomas Strachota 2011-11-15 23:30:56 UTC
I've sent a patch that solves the problem to candlepin-patches and also a brief message to candlepin list. Hopefully they take care of it soon.

Comment 3 Tomas Strachota 2011-11-22 12:24:38 UTC
RHSM part is fixed in subscription-manager-0.98.3-1


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