Bug 998927 - After SAM upgrade 1.2.1 | 1.2 > 1.3 virtual subscription disappears
Summary: After SAM upgrade 1.2.1 | 1.2 > 1.3 virtual subscription disappears
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: katello
Version: 1.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Tom McKay
QA Contact: SAM QE List
URL:
Whiteboard:
Depends On:
Blocks: sam13-tracker
TreeView+ depends on / blocked
 
Reported: 2013-08-20 11:05 UTC by Hayk Hovsepyan
Modified: 2013-08-20 12:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-20 12:02:37 UTC
Embargoed:


Attachments (Terms of Use)

Description Hayk Hovsepyan 2013-08-20 11:05:02 UTC
Description of problem:
After SAM upgrade, "org subscriptions" does not show the virtual subscription pool.

Version-Release number of selected component (if applicable):
Upgrade to repo
http://download.devel.redhat.com/composes/candidates/SAM/SAM-1.3.0-RHEL-6-20130815.0/compose/SAM/x86_64/os/

How reproducible:
always

Steps to Reproduce:
1. Install 1.2.1 or 1.2 SAM release.
2. Create org,  2 environments Library > Test > Dev, import valid manifest, check that "org subscriptions" returns only 1 RHEL pool.
3. Create activation key on Test environment and add RHEL subscription pool from previous step into it. Subscribe a client by that key (rhelKey).
4. "org subscriptions" will return 2 pools, first is the pool with 1 consumption, which was in the step 2. Second pool is the virtual subscription pool with 0 consumption.
5. Create activation key on Dev environment and add virtual pool into it. (virtKey)
6. Upgrade SAM to latest compose.
7. Unregister client. Check that "org subscriptions" return only 1 pool. Verify that "virtKey" activation key exists after upgrade.
8. Subscribe back that client by "rhelKey". It will subscribe successfully.
9. Final Check. Verify that "org subscriptions" must return 2 pools, one is RHEL pool which we saw in step 2, second pool must be the virtual subscriptions pool. Here is the BUG, in fact it returns only the RHEL pool.

Actual results:
"org subscriptions" returns only 1 pool

Expected results:
after SAM upgrade and unregister/register client, "org subscriptions" must return both "RHEL" and "virtual" subscription's pools.

Comment 1 Tom McKay 2013-08-20 12:02:37 UTC
As discussed, if the system being registered is a vm, no bonus pools will be generated. The bonus comes only when the subscription is consumed on a physical host. In this case what is being described is the proper behavior. (It seems likely that older candlepin w/ SAM-1.2.1 was not behaving properly.)


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