Registration and sync gives Error Class Code: 3006 Error Class Info: Invalid satellite certificate with Red Hat Satellite 5

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.x

Issue

  • satellite-sync or cdn-sync fails with error Invalid satellite certificate.
  • rhn_check fails with Error Class Code: 3006 Error Class Info: Invalid satellite certificate.
  • Registering a system with Satellite fails with Error Class Code: 3006 Error Class Info: Invalid satellite
  • Error in the email sent by the Satellite:

        Exception type satellite_tools.syncLib.RhnSyncException 
    
        Exception Handler Information 
        Traceback (most recent call last): 
          File "/usr/bin/satellite-sync", line 142, in main 
            return satsync.Runner().main() 
          File "/usr/share/rhn/satellite_tools/satsync.py", line 212, in main 
            ret = method() 
          File "/usr/share/rhn/satellite_tools/satsync.py", line 279, in _step_channel_families 
            self.syncer.processChannelFamilies() 
          File "/usr/share/rhn/satellite_tools/satsync.py", line 581, in processChannelFamilies 
            "channel-families") 
          File "/usr/share/rhn/satellite_tools/satsync.py", line 462, in _process_simple 
            stream = method() 
          File "/usr/share/rhn/satellite_tools/xmlWireSource.py", line 206, in getChannelFamilyXmlStream 
            return self._openSocketStream("dump.channel_families", (self.systemid,)) 
          File "/usr/share/rhn/satellite_tools/xmlWireSource.py", line 170, in _openSocketStream 
            raise RhnSyncException, lastErrorMsg 
        RhnSyncException:  
        Error Message: 
            Satellite Cert expired 
        Error Class Code: 3006 
        Error Class Info: Invalid satellite certificate 
        Explanation:  
             An error has occurred while processing your request. If this problem 
             persists please enter a bug report at bugzilla.redhat.com. 
             If you choose to submit the bug report, please be sure to include 
             details of what you were trying to do when this error occurred and 
             details on how to reproduce this problem.
    

Resolution

  • Generate a new Satellite manifest.
  • Activate the new manifest.
  • If this error is seen on a system registered with Satellite 6.x, make sure that the rhnplugin is disabled on the client. To disable the plugin the below entry should be present in the /etc/yum/pluginconf.d/rhnplugin.conf file on the client :

    enabled = 0
    

Root Cause

  • This error is generally seen when the certificate has expired.

Diagnostic Steps

  • Check for expire date under the certificate by executing:

    # cat /etc/sysconfig/rhn/rhn-entitlement-cert.xml|grep expire
      <rhn-cert-field name="expires">2010-12-09 00:00:00</rhn-cert-field>
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

1 Comments

-----Original Message-----
From: unixadmins@central1.com [mailto:unixadmins@central1.com]
Sent: Thursday, March 13, 2014 7:45 AM
To: Unixadmins
Subject: RHN Management Satellite sync. report from clxrhn01.oss.central1.com

07:44:47
SYNC ERROR:

Exception reported from clxrhn01.oss.central1.com
Time: Thu Mar 13 07:44:47 2014
Exception type spacewalk.satellite_tools.syncLib.RhnSyncException

Exception Handler Information
Traceback (most recent call last):
File "/usr/bin/satellite-sync", line 139, in main
return satsync.Runner().main()
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 225, in main
ret = method()
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 294, in _step_channel_families
self.syncer.processChannelFamilies()
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 598, in processChannelFamilies
self._process_simple("getChannelFamilyXmlStream", "channel-families")
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 480, in _process_simple
stream = method()
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 216, in getChannelFamilyXmlStream
return self._openSocketStream("dump.channel_families", (self.systemid,))
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 155, in _openSocketStream
stream = apply(func, params)
File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 649, in call
return self._send(self._name, args)
File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 383, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 188, in request
return self._process_response(fd, connection)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/connection.py", line 47, in _process_response
ret = self.parse_response(fd)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 240, in parse_response
return u.close()
File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
raise Fault(**self._stack[0])
RhnSyncException:
Error Message:
Satellite Cert expired
Error Class Code: 3006
Error Class Info: Invalid satellite certificate
Explanation:
An error has occurred while processing your request. If this problem
persists please enter a bug report at bugzilla.redhat.com.
If you choose to submit the bug report, please be sure to include
details of what you were trying to do when this error occurred and
details on how to reproduce this problem.