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 1097208 - rhsmcertd service is failing to update the certs and failing to log the error in /var/log/rhsm/rhsm.log
Summary: rhsmcertd service is failing to update the certs and failing to log the error...
Keywords:
Status: CLOSED ERRATA
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: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel66
TreeView+ depends on / blocked
 
Reported: 2014-05-13 11:42 UTC by Shwetha Kallesh
Modified: 2014-10-14 07:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
no documentation required
Clone Of:
Environment:
Last Closed: 2014-10-14 07:46:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1384 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2014-10-14 01:27:50 UTC

Description Shwetha Kallesh 2014-05-13 11:42:22 UTC
Description of problem:
Observed that rhsmcertd is failing update the certs and nothing seems to logged into /var/log/rhsm/rhsm.log

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

[root@shwetha-workstation ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.12-1
subscription-manager: 1.11.6-1.git.8.2f8bcf8.el6
python-rhsm: 1.11.4-1.git.1.2f38ded.el6

How reproducible:


Steps to Reproduce:

[root@shwetha-workstation ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS Instance Server Bits
Product ID:     32060
Version:        6.1
Arch:           ALL
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:         
Ends:           

Product Name:   Awesome OS for x86_64 Bits
Product ID:     100000000000002
Version:        3.11
Arch:           x86_64
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:         
Ends:   

[root@shwetha-workstation ~]# cat /etc/rhsm/rhsm.conf | grep auto-attach -A2
# Interval to run auto-attach (in minutes):
autoAttachInterval = 1

[root@shwetha-workstation ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS Instance Server Bits
Product ID:     32060
Version:        6.1
Arch:           ALL
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:         
Ends:           

Product Name:   Awesome OS for x86_64 Bits
Product ID:     100000000000002
Version:        3.11
Arch:           x86_64
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:         
Ends:           


[root@shwetha-workstation ~]# /usr/libexec/rhsmcertd-worker
Traceback (most recent call last):
  File "/usr/libexec/rhsmcertd-worker", line 32, in <module>
    from subscription_manager.certlib import ConsumerIdentity
ImportError: cannot import name ConsumerIdentity


Actual results:


Expected results:


Additional info:

Comment 2 Carter Kozak 2014-05-15 13:46:43 UTC
commit 13f609112c013897a425ecb029a9ffe5da7622c3
Author: ckozak <ckozak>
Date:   Thu May 15 08:53:03 2014 -0400

    1097208: 1097703: Fix rhsmcertd-worker daemon
    
    import consumer identity from identity, use the proper
    ActionClient (ActionCertClient does not exist)

Comment 4 Shwetha Kallesh 2014-06-28 19:13:08 UTC
Marking verified!!

[root@dhcp-0-177 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.20-1
subscription management rules: 5.10
subscription-manager: 1.12.4-1.el6
python-rhsm: 1.12.3-1.git.0.526cd89.el6


[root@dhcp-0-177 ~]# tail -f /var/log/rhsm/rhsmcertd.log
Sat Jun 28 21:39:45 2014 [INFO] Cert check interval: 240.0 minute(s) [14400 second(s)]
Sat Jun 28 21:39:45 2014 [INFO] Waiting 120 second(s) [2.0 minute(s)] before running updates.
Sat Jun 28 21:42:06 2014 [INFO] (Auto-attach) Certificates updated.
Sat Jun 28 21:42:11 2014 [INFO] (Cert Check) Certificates updated.
Sun Jun 29 00:37:21 2014 [INFO] rhsmcertd is shutting down...
Sun Jun 29 00:37:21 2014 [INFO] Starting rhsmcertd...
Sun Jun 29 00:37:21 2014 [INFO] Auto-attach interval: 1.0 minute(s) [60 second(s)]
Sun Jun 29 00:37:21 2014 [INFO] Cert check interval: 240.0 minute(s) [14400 second(s)]
Sun Jun 29 00:37:21 2014 [INFO] Waiting 120 second(s) [2.0 minute(s)] before running updates.
Sun Jun 29 00:38:27 2014 [INFO] (Auto-attach) Certificates updated.

[root@dhcp-0-177 ~]# subscription-manager register --org admin 
Username: admin
Password: 
The system has been registered with ID: 4a48361a-3a55-434d-a8b5-6f48e6305103 
[root@dhcp-0-177 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS Instance Server Bits
Product ID:     32060
Version:        6.1
Arch:           ALL
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:         
Ends:           

[root@dhcp-0-177 ~]# service rhsmcertd restart
Stopping rhsmcertd...                                      [  OK  ]
Starting rhsmcertd...                                      [  OK  ]
[root@dhcp-0-177 ~]# 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:         06/28/2014
Ends:           06/28/2015

Comment 6 errata-xmlrpc 2014-10-14 07:46:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1384.html


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