Bug 998927 - After SAM upgrade 1.2.1 | 1.2 > 1.3 virtual subscription disappears
After SAM upgrade 1.2.1 | 1.2 > 1.3 virtual subscription disappears
Product: Subscription Asset Manager
Classification: Red Hat
Component: katello (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: rc
: ---
Assigned To: Tom McKay
Depends On:
Blocks: sam13-tracker
  Show dependency treegraph
Reported: 2013-08-20 07:05 EDT by Hayk Hovsepyan
Modified: 2013-08-20 08:02 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-20 08:02:37 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hayk Hovsepyan 2013-08-20 07:05:02 EDT
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

How reproducible:

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 08:02:37 EDT
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.