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.
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