Description of problem: Observed that stacking a future subscription and a present subscription make the product complaint Version-Release number of selected component (if applicable): [root@localhost entitlement]# rpm -qa | grep subsc subscription-manager-gui-1.8.7-1.el5_9 subscription-manager-debuginfo-1.8.7-1.el5_9 subscription-manager-firstboot-1.8.7-1.el5_9 subscription-manager-1.8.7-1.el5_9 subscription-manager-migration-1.8.7-1.el5_9 How reproducible: 100% Steps to Reproduce: 1.Register client(has 4 sockets) to Candlepin 2.[root@localhost product]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Awesome OS for x86_64 Bits Product ID: 100000000000002 Version: 3.11 Arch: x86_64 Status: Not Subscribed Status Details: Not covered by a valid subscription. Starts: Ends: [root@localhost product]# subscription-manager list --available | grep "x86_64" -A9 Subscription Name: Awesome OS for x86_64 SKU: awesomeos-x86_64 Pool ID: 8ac6a30b3ecb637e013ecb6462aa0698 Quantity: 5 Service Level: Service Type: Multi-Entitlement: Yes Ends: 05/22/2014 System Type: Physical Subscription Name: Awesome OS for x86_64 SKU: awesomeos-x86_64 Pool ID: 8ac6a30b3ecb637e013ecb646290068c Quantity: 10 Service Level: Service Type: Multi-Entitlement: Yes Ends: 05/22/2014 System Type: Physical 3. attach a present subscription with 2 quantities [root@localhost product]# subscription-manager attach --pool 8ac6a30b3ecb637e013ecb6462aa0698 --quantity=2 Successfully attached a subscription for: Awesome OS for x86_64 [root@localhost product]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Awesome OS for x86_64 Bits Product ID: 100000000000002 Version: 3.11 Arch: x86_64 Status: Partially Subscribed Status Details: Only covers 2 of 4 sockets. Starts: Ends: 4. list future subscription [root@localhost product]# subscription-manager list --available --ondate=2014-05-22 | grep "x86_64" -A9 Subscription Name: Awesome OS for x86_64 SKU: awesomeos-x86_64 Pool ID: 8ac6a30b3ecb637e013ecb64627d0682 Quantity: 15 Service Level: Service Type: Multi-Entitlement: Yes Ends: 05/12/2015 System Type: Physical Subscription Name: Awesome OS for x86_64 SKU: awesomeos-x86_64 Pool ID: 8ac6a30b3ecb637e013ecb646290068c Quantity: 10 Service Level: Service Type: Multi-Entitlement: Yes Ends: 05/22/2014 System Type: Physical 4 [root@localhost product]# subscription-manager attach --pool 8ac6a30b3ecb637e013ecb64627d0682 --quantity=2 Successfully attached a subscription for: Awesome OS for x86_64 [root@localhost product]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Awesome OS for x86_64 Bits Product ID: 100000000000002 Version: 3.11 Arch: x86_64 Status: Subscribed Status Details: Starts: 05/12/2014 Ends: 05/22/2014 Actual results: couple of observations 1)Product turn "fully subscribred" with the stacking of future subscription and a present subscription Attached screenshots of GUI Expected result: Suggestion, stacking should consider the active subscriptions to make the system compliant
Created attachment 751673 [details] active subscription
Created attachment 751674 [details] future subscription
commit 2a06a1de668005adaf8020494c2be5ebf0cbd9b1 Author: ckozak <ckozak> Date: Fri May 24 11:03:42 2013 -0400 966069: only stack valid ents
You want to test this agianst candlepin 0.8.10 or later.
Retested, Observed that only valid entitlements are considered to make the product compliant [root@localhost product]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Awesome OS for x86_64 Bits Product ID: 100000000000002 Version: 3.11 Arch: x86_64 Status: Partially Subscribed Status Details: Only covers 2 of 4 sockets. Starts: Ends: [root@localhost product]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS for x86_64 Provides: Awesome OS for x86_64 Bits SKU: awesomeos-x86_64 Contract: 79 Account: 12331131231 Serial: 753799388840872733 Pool ID: 8ac6a3f83f1d8949013f1d8b3e8d0775 Active: False Quantity Used: 1 Service Level: Service Type: Status Details: Starts: 05/28/2014 Ends: 05/28/2015 Subscription Name: Awesome OS for x86_64 Provides: Awesome OS for x86_64 Bits SKU: awesomeos-x86_64 Contract: 78 Account: 12331131231 Serial: 6737739607938081328 Pool ID: 8ac6a3f83f1d8949013f1d8b3eb9078a Active: True Quantity Used: 2 Service Level: Service Type: Status Details: Only covers 2 of 4 sockets. Starts: 06/07/2013 Ends: 06/07/2014 Subscription Name: Awesome OS for x86_64 Provides: Awesome OS for x86_64 Bits SKU: awesomeos-x86_64 Contract: 79 Account: 12331131231 Serial: 7945134943050548398 Pool ID: 8ac6a3f83f1d8949013f1d8b3e8d0775 Active: False Quantity Used: 1 Service Level: Service Type: Status Details: Starts: 05/28/2014 Ends: 05/28/2015 moving this to verified: on [root@localhost product]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.8.13-1 subscription-manager: 1.8.10-1.el5_9 python-rhsm: 1.8.12-1.el5_9 [root@localhost product]# rpm -qa | grep subsc subscription-manager-gui-1.8.10-1.el5_9 subscription-manager-migration-1.8.10-1.el5_9 subscription-manager-firstboot-1.8.10-1.el5_9 subscription-manager-debuginfo-1.8.10-1.el5_9 subscription-manager-1.8.10-1.el5_9