Bug 758041 - Registering with two AKs with the same pool id fails
Summary: Registering with two AKs with the same pool id fails
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Katello
Classification: Retired
Component: Webservice API
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-29 09:14 UTC by Lukas Zapletal
Modified: 2011-12-15 08:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-15 08:57:55 UTC


Attachments (Terms of Use)

Description Lukas Zapletal 2011-11-29 09:14:34 UTC
If we create two activation keys with the same pool ids, the RHSM shows:

This consumer is already subscribed to the product matching pool with id 'XXXXX'

The system gets registered to one of the activation keys.

If our intention is to ignore one of the pool ids and subscribe only once, but assign the system to both keys, we should handle this properly in the backend code.


Steps to Reproduce:
1. create ak1 and ak2
2. assign them both a same pool id
3. register with both

$K activation_key create --name ak --environment testing --template t
$K activation_key create --name ak2 --environment testing --template t
POOLID=$($K org subscriptions --name ACME_Corporation | grep Id: | awk '{print $2}')
$K activation_key update --name ak --add_subscription $POOLID
$K activation_key update --name ak2 --add_subscription $POOLID

subscription-manager register --force --activationkey=ak,ak2 --org ACME_Corporation

Comment 1 Lukas Zapletal 2011-11-29 09:15:17 UTC
@Bryan - your opinion about this one? Please either CLOSE or put on my plate. Thanks.


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