Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 767989 - Error while updating subscriptions to activation_keys
Summary: Error while updating subscriptions to activation_keys
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers 766906 768390
TreeView+ depends on / blocked
 
Reported: 2011-12-15 13:25 UTC by Kedar Bidarkar
Modified: 2019-09-25 21:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-27 00:32:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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