Bug 1020550 - 6.2 subscription manager errors when registering with an activation key
Summary: 6.2 subscription manager errors when registering with an activation key
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-17 21:57 UTC by Justin Sherrill
Modified: 2019-09-26 17:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)
mdp2 version of patch (2.27 KB, patch)
2013-10-18 13:11 UTC, Justin Sherrill
no flags Details | Diff

Description Justin Sherrill 2013-10-17 21:57:51 UTC
Description of problem:

Registering a 6.2 client with no updates fails during the package profile upload.  


How reproducible:
Always

Steps to Reproduce:
1.  Install a 6.2 system with no updates
2.  Try to register with an activation key

Actual results:
Error:

[root@client ~]# subscription-manager register --activationkey=jsherrill --force --org=EmptyOrg
The system with UUID f56797ef-9e73-4972-943f-5dd46737d57a has been unregistered
The system has been registered with id: f23e9424-2ce3-4d3a-9403-e372831aa54d 
Error updating system data, see /var/log/rhsm/rhsm.log for more details.



Expected results:
Registers normally

Additional info:
It appears that version of rhsm does not upload the client cert along with the package profile

Comment 2 Justin Sherrill 2013-10-17 23:27:28 UTC
https://github.com/Katello/katello/pull/3209

If you would like to test on your katello server, you should be able to run:


cd /usr/share/katello
wget https://github.com/Katello/katello/pull/3209.patch
path -p1 < 3209.patch
service katello restart

Comment 3 Justin Sherrill 2013-10-18 12:57:39 UTC
3rd command should be 

path -p1 < 3209.patch


not 'path'

Comment 4 Justin Sherrill 2013-10-18 13:00:08 UTC
grrr


patch -p1 < 3209.patch


I think my keyboard is broken

Comment 5 Justin Sherrill 2013-10-18 13:10:50 UTC
The above does not work on mdp2 due to a conflict, attaching an mdp2 version of the patch.

Comment 6 Justin Sherrill 2013-10-18 13:11:21 UTC
Created attachment 813771 [details]
mdp2 version of patch

Comment 9 Sachin Ghai 2013-10-24 09:46:30 UTC
Verified with Snap7 MDP2:

katello-all-1.4.6-47.el6sat.noarch
katello-cli-1.4.3-27.el6sat.noarch
katello-glue-pulp-1.4.6-47.el6sat.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-selinux-1.4.4-4.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
pulp-katello-plugins-0.2-1.el6sat.noarch
katello-configure-foreman-1.4.7-7.el6sat.noarch
ruby193-rubygem-katello_api-0.0.3-4.el6sat.noarch
katello-glue-candlepin-1.4.6-47.el6sat.noarch
ruby193-rubygem-katello-foreman-engine-0.0.12-3.el6sat.noarch
katello-foreman-all-1.4.6-47.el6sat.noarch
ruby193-rubygem-foreman-katello-engine-0.0.17-6.el6sat.noarch
katello-configure-1.4.7-7.el6sat.noarch
signo-katello-0.0.23-2.el6sat.noarch
katello-glue-elasticsearch-1.4.6-47.el6sat.noarch
katello-1.4.6-47.el6sat.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-common-1.4.6-47.el6sat.noarch
katello-certs-tools-1.4.4-1.el6sat.noarch
katello-cli-common-1.4.3-27.el6sat.noarch


Installed a rhel6.2 client and without updates. 
[root@perceptor ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Client release 6.2 (Santiago)
[root@perceptor ~]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.96.17-1.el6.x86_64
subscription-manager-0.96.17-1.el6.x86_64
subscription-manager-firstboot-0.96.17-1.el6.x86_64


Later, I registered it with activation key 'ak1'. The system was registered successfully.

[root@perceptor ~]# subscription-manager register --activationkey ak1 --force --org ACME_Corporation
The system has been registered with id: a4a7be64-f7d8-4c0a-9bb3-8119f2f26552 

I can consume the contents on client too.

Comment 10 Bryan Kearney 2014-04-24 17:11:05 UTC
This was verified and delivered with MDP2. Closing it out.

Comment 11 Bryan Kearney 2014-04-24 17:12:05 UTC
This was delivered and verified with MDP2. Closing the bug.


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