| Summary: | RHSM subscription through activation key ends with exception | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Garik Khachikyan <gkhachik> |
| Component: | API | Assignee: | Tomas Strachota <tstrachota> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.0.0 | CC: | kbidarka, mkoci, tstrachota |
| Target Milestone: | Unspecified | ||
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | katello-0.1.112-1.git.2.df9c652 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-22 18:04:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 747354 | ||
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
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. RHSM part is fixed in subscription-manager-0.98.3-1 |
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.