| Summary: | virt_only pools loose their multiplied virt_limit quantity when refresh_pools is applied | ||
|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | John Sefler <jsefler> |
| Component: | candlepin | Assignee: | Devan Goodwin <dgoodwin> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | John Sefler <jsefler> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.5 | CC: | dgoodwin, spandey |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-05-30 20:44:23 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 568421 | ||
|
Description
John Sefler
2011-02-23 00:45:04 UTC
Something else to be aware of... Here is an excerpt from a last night's automated test log that coincidently tried to overconsume entitlements from the virt_guest pool... the result was free entitlements; that's bad for business. Now we will attempt to subscribe both clients (only one should succeed) concurrently to pool: subscriptionName='Awesome OS with up to 4 virtual guests' productId='awesomeos-virt-4' poolId='8a90f8b42e5b543a012e5b54ba320144' quantity='1' endDate='2012-02-24' ssh root.redhat.com subscription-manager subscribe --pool=8a90f8b42e5b543a012e5b54ba320144 ssh root.redhat.com subscription-manager subscribe --pool=8a90f8b42e5b543a012e5b54ba320144 ssh root.redhat.com subscription-manager list --all --available Stdout: +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e5b543a012e5b54b9f0013b Quantity: 200 Expires: 2012-02-24 ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e5b543a012e5b54ba320144 Quantity: -1 Expires: 2012-02-24 ^^^ Notice the quantity went below zero Comment 1 we believe is a separate issue which should now be fixed. Original bug should be fixed in Candlepin master as of: 13f6d725f66940863f73b6eb36b51769bd3fee24 I believe this will appear in: candlepin-0.2.10. Agreed... Comment #1 is a separate issue and now appears to be fixed in our nightly automated test runs. Verifying fix for Comment #0 Verifying Version... [root@jsefler-f14-candlepin candlepin]# git show-ref master 8bc35af0addf736ad5366fbad92f188b92701271 refs/heads/master 2cc34e37691e9e06aad2ad3da394dabc24186ca7 refs/remotes/origin/master [root@jsefler-onprem03 ~]# rpm -qa | grep subscription-manager subscription-manager-gnome-0.95.3-1.git.10.4ec14b7.el6.x86_64 subscription-manager-firstboot-0.95.3-1.git.10.4ec14b7.el6.x86_64 subscription-manager-0.95.3-1.git.10.4ec14b7.el6.x86_64 [root@jsefler-onprem03 ~]# subscription-manager list --available --all | grep -A3 -B1 awesomeos-virt-4 ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e90f9be012e90fa4eda0134 Quantity: 10 Expires: 2012-03-05 -- ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e90f9be012e90fa4f000136 Quantity: 40 Expires: 2012-03-05 -- ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e90f9be012e90fa4f46013d Quantity: 5 Expires: 2012-03-05 -- ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e90f9be012e90fa4f6c0142 Quantity: 20 Expires: 2012-03-05 201103071047:52.564 - INFO: Subscribing to subscription pool: subscriptionName='Awesome OS with up to 4 virtual guests' productId='awesomeos-virt-4' poolId='8a90f8b42e90f9be012e90fa4eda0134' quantity='10' endDate='2012-03-05' 201103071047:52.567 - FINE: ssh root.redhat.com subscription-manager subscribe --pool=8a90f8b42e90f9be012e90fa4eda0134 201103071051:55.253 - INFO: Now we will change the start and end date of the subscription pool adding one month to enddate and subtracting one month from startdate... 201103071052:00.821 - FINE: Executing SQL: update cp_subscription set enddate='2012-04-05' where id=(select pool.subscriptionid from cp_pool pool where pool.id='8a90f8b42e90f9be012e90fa4eda0134'); 201103071052:00.995 - INFO: Asserted: Actual value of '1' matches expected value: Updated one row of the cp_subscription table with sql: update cp_subscription set enddate='2012-04-05' where id=(select pool.subscriptionid from cp_pool pool where pool.id='8a90f8b42e90f9be012e90fa4eda0134'); 201103071052:01.003 - FINE: Executing SQL: update cp_subscription set startdate='2011-02-06' where id=(select pool.subscriptionid from cp_pool pool where pool.id='8a90f8b42e90f9be012e90fa4eda0134'); 201103071052:01.133 - INFO: Asserted: Actual value of '1' matches expected value: Updated one row of the cp_subscription table with sql: update cp_subscription set startdate='2011-02-06' where id=(select pool.subscriptionid from cp_pool pool where pool.id='8a90f8b42e90f9be012e90fa4eda0134'); 201103071052:08.941 - INFO: Now let's refresh the subscription pools... 201103071052:11.740 - INFO: SSH alternative to HTTP request: curl -k -u admin:admin --request PUT https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions NOW LET'S LIST --all --available POOLS AND ASSERT THAT THE VIRT GUEST POOLS' QUANTITY DID NOT GET CLOBBERED... [root@jsefler-onprem03 ~]# subscription-manager list --available --all | grep -A3 -B1 awesomeos-virt-4 ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e90f9be012e90fa4f46013d Quantity: 5 Expires: 2012-03-05 -- ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e90f9be012e90fa4f6c0142 Quantity: 20 Expires: 2012-03-05 -- ProductName: Awesome OS with up to 4 virtual guests ProductId: awesomeos-virt-4 PoolId: 8a90f8b42e90f9be012e90fa4f000136 Quantity: 40 Expires: 2012-04-05 ^^^ THE VIRT_GUEST POOLS' QUANTITY OF 40 AND 20 REMAIN IN TACT AND THE SUBSCRIBED TO HOST POOL 8a90f8b42e90f9be012e90fa4eda0134 IS NO LONGER LISTED IN THE --list --available. moving to VERIFIED. Group move of VERIFIED Candlepin component bugs to RELEASE_PENDING |