RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1136744 - When a instance based subscription is healed on host, sub-pool is not created on guest
Summary: When a instance based subscription is healed on host, sub-pool is not created...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel67
TreeView+ depends on / blocked
 
Reported: 2014-09-03 08:29 UTC by Shwetha Kallesh
Modified: 2015-05-15 19:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-08 11:29:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shwetha Kallesh 2014-09-03 08:29:23 UTC
Description of problem:
When a instance based subscription is healed on host, sub-pool is not created on guest but when auto-attached a sub-pool is created on guest

Version-Release number of selected component (if applicable):

On Guest:

[root@localhost ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.26-1
subscription management rules: 5.11
subscription-manager: 1.12.13-1.el6
python-rhsm: 1.12.5-1.el6


On Host:

[root@shwetha-ws ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.26-1
subscription management rules: 5.11
subscription-manager: 1.12.13-1.git.3.58ef205.el6
python-rhsm: 1.12.5-1.git.0.744254e.el6


How reproducible:


Steps to Reproduce:
Auto-attach on host 

[root@shwetha-ws ~]# subscription-manager register --org admin --force
The system with UUID d371aa7d-3b8c-4257-8808-ef9a934880dd has been unregistered
Username: admin
Password: 
The system has been registered with ID: 5123d427-64a3-4a42-a206-b50b758d2fa3 
[root@shwetha-ws ~]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Awesome OS Instance Server Bits
Status:       Subscribed

List sub-pool on guest

[root@localhost ~]# subscription-manager register --org admin --force 
The system with UUID b79976bc-4899-4435-bcf2-279e57d842da has been unregistered
Username: admin
Password: 
The system has been registered with ID: b55c025e-08ce-44ec-9a22-48cf9ec81e81 
[root@localhost ~]# subscription-manager list --avail --match | grep Virtual -B11
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides:          Awesome OS Instance Server Bits
SKU:               awesomeos-instancebased
Contract:          3
Pool ID:           ff8080814839c7e601483a9c11e21fd8
Available:         1
Suggested:         1
Service Level:     Standard
Service Type:      L1-L3
Subscription Type: Instance Based
Ends:              09/02/2015
System Type:       Virtual

healing on host

[root@shwetha-ws ~]# subscription-manager register --org admin --force
The system with UUID 5123d427-64a3-4a42-a206-b50b758d2fa3 has been unregistered
Username: admin
Password: 
The system has been registered with ID: af5d9813-82f7-4b3d-9903-303916760780 

[root@shwetha-ws ~]# service rhsmcertd restart
Stopping rhsmcertd...                                      [  OK  ]
Starting rhsmcertd...                                      [  OK  ]
[root@shwetha-ws ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS Instance Server Bits
Product ID:     32060
Version:        6.1
Arch:           ALL
Status:         Subscribed
Status Details: 
Starts:         09/03/2014
Ends:           09/03/2015

Now list subscriptions on guest

[root@localhost ~]#  subscription-manager register --org admin --force
The system with UUID b55c025e-08ce-44ec-9a22-48cf9ec81e81 has been unregistered
Username: admin
Password: 
The system has been registered with ID: 0758d47a-635a-4cbb-af4b-56364b470e63 
[root@localhost ~]# subscription-manager list --avail --match | grep Virtual -B11


Actual results:


Expected results:


Additional info:

Comment 2 Shwetha Kallesh 2014-09-03 10:06:43 UTC
Additional info:

On host:

[root@shwetha-ws ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides:          Awesome OS Instance Server Bits
SKU:               awesomeos-instancebased
Contract:          3
Account:           12331131231
Serial:            599936545445175157
Pool ID:           ff8080814839c7e6014839c87f3a15c9
Active:            True
Quantity Used:     10
Service Level:     Standard
Service Type:      L1-L3
Status Details:    
Subscription Type: Instance Based
Starts:            09/03/2014
Ends:              09/03/2015
System Type:       Physical



[root@shwetha-ws ~]# curl -k -u admin:admin https://10.70.35.80:8443/candlepin/pools/ff8080814839c7e6014839c87f3a15c9 | python -mjson.tool | grep virt_limit -A3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
101  4657    0  4657    0     0  20987      0 --:--:-- --:--:-- --:--:--  239k
            "name": "virt_limit", 
            "productId": "awesomeos-instancebased", 
            "updated": "2014-09-03T04:31:54.170+0000", 
            "value": "1"

Comment 3 Bryan Kearney 2014-11-03 19:48:34 UTC
Moving bugs to 6.7

Comment 4 Bryan Kearney 2014-11-03 19:49:29 UTC
Moving bugs to 6.7

Comment 5 Bryan Kearney 2014-11-03 19:54:24 UTC
Moving bugs to 6.7

Comment 6 Devan Goodwin 2015-04-07 15:23:16 UTC
Hi Shwetha, could we get a re-test of this? We suspect it's working now.

Comment 7 Shwetha Kallesh 2015-04-08 11:29:28 UTC
It working fine now.

[root@dhcp35-236 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.47-1
subscription management rules: 5.14
subscription-manager: 1.14.1-1.el6
python-rhsm: 1.14.1-1.el6


On the host :
[root@dhcp35-236 ~]# subscription-manager remove --all
1 subscription removed at the server.
1 local certificate has been deleted.
[root@dhcp35-236 ~]# service rhsmcertd restart
Stopping rhsmcertd...                                      [FAILED]
Starting rhsmcertd...                                      [  OK  ]


[root@dhcp35-236 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS Instance Based (Standard Support)
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-instancebased
Contract:            0
Account:             12331131231
Serial:              9128782146548725445
Pool ID:             8ac681e44c69cf7c014c69d0cf441b43
Provides Management: No
Active:              True
Quantity Used:       6
Service Level:       Standard
Service Type:        L1-L3
Status Details:      Subscription is current
Subscription Type:   Instance Based
Starts:              03/30/2015
Ends:                03/29/2016
System Type:         Physical



On the guest:
[root@dhcp35-135 ~]# subscription-manager list --avail --match-installed
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS Instance Based one socket
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-onesocketib
Contract:            0
Pool ID:             8ac681e44c69cf7c014c69d0ce731b03
Provides Management: No
Available:           10
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Instance Based
Ends:                03/29/2016
System Type:         Physical

Subscription Name:   Awesome OS Instance Based one socket
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-onesocketib
Contract:            1
Pool ID:             8ac681e44c69cf7c014c69d0cb2219ce
Provides Management: No
Available:           20
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Instance Based
Ends:                03/29/2016
System Type:         Physical

Subscription Name:   Awesome OS Instance Based (Standard Support)
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-instancebased
Contract:            1
Pool ID:             8ac681e44c69cf7c014c69d0cce91a8e
Provides Management: No
Available:           20
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Instance Based
Ends:                03/29/2016
System Type:         Physical

Subscription Name:   Awesome OS Instance Based (Standard Support)
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-instancebased
Contract:            0
Pool ID:             8ac681e44c69cf7c014c98c1a3be6f83
Provides Management: No
Available:           1
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Instance Based
Ends:                03/29/2016
System Type:         Virtual    ------> virtual pool is now available

Subscription Name:   Awesome OS Instance Based (Standard Support)
Provides:            Awesome OS Instance Server Bits
SKU:                 awesomeos-instancebased
Contract:            0
Pool ID:             8ac681e44c69cf7c014c69d0cf441b43
Provides Management: No
Available:           4
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Instance Based
Ends:                03/29/2016
System Type:         Physical


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