Bug 767989

Summary: Error while updating subscriptions to activation_keys
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: APIAssignee: Lukas Zapletal <lzap>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: gkhachik, mkoci
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: 2012-04-27 00:32:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354, 766906, 768390    

Description Kedar Bidarkar 2011-12-15 13:25:45 UTC
Description of problem:

[root@xxxx ~]# katello --username admin --password admin activation_key update --name 1871_activate --org ACME_Corporation --env Dev --add_subscription 8ac149d334357b3e0134357ea9fa0004
unauthenticated to call a backend engine

Version-Release number of selected component (if applicable):

rpm -qav | grep -i katello 
katello-trusted-ssl-cert-1.0-1.noarch
katello-cli-common-0.1.23-3.el6.noarch
katello-certs-tools-1.0.1-2.el6.noarch
katello-glue-foreman-0.1.135-2.el6.x86_64
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-0.1.23-3.el6.noarch
katello-all-0.1.135-2.el6.x86_64
katello-configure-0.1.31-2.el6.noarch
katello-common-0.1.135-2.el6.noarch
katello-glue-candlepin-0.1.135-2.el6.x86_64
katello-0.1.135-2.el6.x86_64
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-glue-pulp-0.1.135-2.el6.x86_64

How reproducible:

Via cli, 

Steps to Reproduce:
1. create activation keys
2. update activation keys with subscription info
3. 
  
Actual results:

katello --username admin --password admin activation_key update --name 1871_activate --org ACME_Corporation --env Dev --add_subscription 8ac149d334357b3e0134357ea9fa0004
unauthenticated to call a backend engine
Expected results:

Should allow addition of subscription info , that is the pool_id here.
Additional info:

Comment 1 Garik Khachikyan 2012-01-12 11:56:05 UTC
bug for me looks like fixed.

Devel confirmation needed however.

I was able to activation_key update --add_subscription and successfully registered a system using that ak.

Comment 2 Lukas Zapletal 2012-01-20 13:03:35 UTC
Yes, permissions are beeing reviewed. This is now working:

[root@ofed ~]# subscription-manager register --username user --password useruser --org ACME_Corporation --env env --force
The system with UUID 3b384ad5-1ff2-4aac-8fbd-663d006f353d has been unregistered
The system has been registered with id: 7b14ac3e-ba12-4280-9194-f02c44819cfb 

[root@ofed ~]# rpm -q katello
katello-0.1.187-1.git.1.2d46557.el6.noarch

Comment 5 Garik Khachikyan 2012-02-01 11:54:11 UTC
# VERIFIED

applied `activation_key update --add_subscription` works fine and the system gets registered/subscribed to the pool specified.

checked against packages:
---
katello-0.1.208-1.git.0.93b84c2.el6.noarch
pulp-0.0.263-1.el6.noarch
katello-cli-0.1.49-1.git.0.6962a71.el6.noarch
candlepin-0.5.8-1.el6.noarch
subscription-manager-0.99.4-1.el6.x86_64