Bug 998927

Summary: After SAM upgrade 1.2.1 | 1.2 > 1.3 virtual subscription disappears
Product: [Retired] Subscription Asset Manager Reporter: Hayk Hovsepyan <hhovsepy>
Component: katelloAssignee: Tom McKay <tomckay>
Status: CLOSED NOTABUG QA Contact: SAM QE List <sam-qe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.3CC: tomckay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-20 12:02:37 UTC Type: Bug
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: 833466    

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.)