On 03/14/2014 07:44 AM, Dhaval Oza wrote:
rhnreg_ks --serverUrl=http://192.168.12.52/XMLRPC  
--activationkey=<Key-with-rhel-custom-channel>
I don't like this command, can you please run "rhn_check -vv" at the client?

When I register client using IP address I'm getting folowing errors during rhn_check:

# rhn_check -vv
...
D: local action status: ((6,), 'Fatal error in Python code occured', {})
D: rpcServer: Calling XMLRPC registration.welcome_message

# tail -f /var/log/update
...
[Tue Mar 18 09:37:32 2014] up2date
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 338, in __run_action
    (status, message, data) = CheckCli.__do_call(method, params, kwargs)
  File "/usr/sbin/rhn_check", line 330, in __do_call
    method = getMethod.getMethod(method, "/usr/share/rhn/", "actions")
  File "/usr/share/rhn/up2date_client/getMethod.py", line 78, in getMethod
    actions = __import__(modulename)
  File "/usr/share/rhn/actions/packages.py", line 270, in <module>
    yum_base = YumAction()
  File "/usr/share/rhn/actions/packages.py", line 65, in __init__
    self.doTsSetup()
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 84, in doTsSetup
    return self._getTs()
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
    self._getTsInfo(remove_only)
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
    pkgSack = self.pkgSack
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 887, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 669, in _getSacks
    self.repos.populateSack(which=repos)
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 308, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 165, in populate
    if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 223, in _check_db_version
    return repo._check_db_version(mdtype)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1256, in _check_db_version
    repoXML = self.repoXML
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1455, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/share/yum-plugins/rhnplugin.py", line 566, in _getRepoXML
    return YumRepository._getRepoXML(self)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1451, in _getRepoXML
    raise Errors.RepoError, msg
<class 'yum.Errors.RepoError'>: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6. Please verify its path and try again

[Tue Mar 18 09:37:32 2014] up2date D: local action status: ((6,), 'Fatal error in Python code occured', {}) [Tue Mar 18 09:37:32 2014] up2date D: rpcServer: Calling XMLRPC registration.welcome_message

As you can read from the log yum-rhn-plugin is not able to retrieve repository metada, when I use IP address to access SW server.
Is that your case?
If so, just use hostname that's in your SW server certificate. Or you can disable SSL for clients (not recommended, not tested).

Regards,

Lukas Pramuk
QA Engineer (RHCE, RHCVA)
Systems Management QA, Red Hat

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to