Bug 1198494 - Auto-heal continuously attaches subscriptions to make the system compliant on a guest machine
Summary: Auto-heal continuously attaches subscriptions to make the system compliant on...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: William Poteat
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel67
TreeView+ depends on / blocked
 
Reported: 2015-03-04 09:36 UTC by Rehana
Modified: 2016-07-22 14:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-22 14:39:05 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1197897 0 unspecified CLOSED subscription-manager status is yellow due to 24-hour subscription despite redundant coverage from a green subscription 2021-02-22 00:41:40 UTC

Internal Links: 1197897

Description Rehana 2015-03-04 09:36:30 UTC
Description of problem:
Observed that auto-heal process kept attaching subscriptions to guest machine 

Version-Release number of selected component (if applicable):
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.45-1
subscription management rules: 5.14
subscription-manager: 1.14.1-1.el6
python-rhsm: 1.14.1-1.el6


How reproducible:
always

Steps to Reproduce:
1.Set auto-attach interval to say 3mins
2.Wait for the auto-attach process to complete
3.installed list after auto-heal 

# subscription-manager list --installed

+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS Server Bits
Product ID:     37060
Version:        6.1
Arch:           ALL
Status:         Partially Subscribed
Status Details: Guest has not been reported on any host and is using a temporary unmapped guest subscription.
Starts:         03/03/2015
Ends:           03/02/2016

4. consumed list 

# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS with unlimited virtual guests
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-unlimited
Contract:            3
Account:             12331131231
Serial:              7286602866793602638
Pool ID:             ff8080814bde4380014bde4421d41a47
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       
Service Type:        
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              03/03/2015
Ends:                03/05/2015
System Type:         Virtual


5. Wait for another 3mins , observed that another pool attached 

# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS with unlimited virtual guests
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-unlimited
Contract:            3
Account:             12331131231
Serial:              7286602866793602638
Pool ID:             ff8080814bde4380014bde4421d41a47
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       
Service Type:        
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              03/03/2015
Ends:                03/05/2015
System Type:         Virtual

Subscription Name:   Awesome OS Virtual Datacenter
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-datacenter
Contract:            2
Account:             12331131231
Serial:              3200472637811871333
Pool ID:             ff8080814bde4380014bde4421201a07
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       
Service Type:        
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              03/03/2015
Ends:                03/05/2015
System Type:         Virtual

# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Insufficient

Awesome OS Server Bits:
- Guest has not been reported on any host and is using a temporary unmapped guest subscription.


Actual results:
Observed that after every auto-heal check , subscriptions were attached to system

Expected results:
auto-heal should attach correct subscriptions to make the system compliant

Additional info:

Comment 2 Shwetha Kallesh 2015-03-09 12:05:13 UTC
Observed that it happens even auto-attach ,

[root@dhcp35-188 ~]# subscription-manager register --force
The system with UUID 3df63d78-2c12-49bd-96b2-ae485227581f has been unregistered
Username: admin
Password: 
Organization: admin
The system has been registered with ID: b9ab72bc-c73f-4c33-a3ec-d13da8978641 
[root@dhcp35-188 ~]# subscription-manager attach --auto


Installed Product Current Status:
Product Name: Awesome OS Instance Server Bits
Status:       Partially Subscribed

[root@dhcp35-188 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS Instance Based one socket
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-onesocketib
Contract:            0
Account:             12331131231
Serial:              7954350025814026147
Pool ID:             8ac681e44bf828b6014bf82997e7072d
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       Standard
Service Type:        L1-L3
Status Details:      Subscription is current
Subscription Type:   Instance Based
Starts:              03/08/2015
Ends:                03/10/2015
System Type:         Virtual

[root@dhcp35-188 ~]# subscription-manager attach --auto


Installed Product Current Status:
Product Name: Awesome OS Instance Server Bits
Status:       Partially Subscribed

[root@dhcp35-188 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS Instance Based one socket
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-onesocketib
Contract:            0
Account:             12331131231
Serial:              7954350025814026147
Pool ID:             8ac681e44bf828b6014bf82997e7072d
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       Standard
Service Type:        L1-L3
Status Details:      Subscription is current
Subscription Type:   Instance Based
Starts:              03/08/2015
Ends:                03/10/2015
System Type:         Virtual

Subscription Name:   Awesome OS Instance Based one socket
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-onesocketib
Contract:            0
Account:             12331131231
Serial:              6791541804323653201
Pool ID:             8ac681e44bf828b6014bf82997e7072d
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       Standard
Service Type:        L1-L3
Status Details:      Subscription is current
Subscription Type:   Instance Based
Starts:              03/08/2015
Ends:                03/10/2015
System Type:         Virtual

Comment 3 William Poteat 2015-03-19 14:55:30 UTC
master commit 3491c81457bb1e615d795696ff144b58574f9702

Comment 4 Mike McCune 2016-03-28 23:45:25 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 5 Barnaby Court 2016-07-22 14:39:05 UTC
Moving to closed per the updated candlepin process for bugs that have been merged or have been taken care of.


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