<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 03/14/2014 07:44 AM, Dhaval Oza
      wrote:<br>
    </div>
    <blockquote cite="mid:5322A530.7030900@i-link.co.in" type="cite">
      <pre wrap=""><big><font color="#ff0000">rhnreg_ks --serverUrl=<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://192.168.12.52/XMLRPC">http://192.168.12.52/XMLRPC</a> --activationkey=<Key-with-rhel-custom-channel></font></big></pre>
    </blockquote>
    I don't like this command, can you please run "rhn_check -vv" at the
    client?<br>
    <br>
    When I register client using IP address I'm getting folowing errors
    during rhn_check:<br>
    <br>
    <tt># rhn_check -vv</tt><tt><br>
    </tt><tt>...</tt><tt><br>
    </tt><tt>D: local action status: ((6,), 'Fatal error in Python code
      occured', {})</tt><tt><br>
    </tt><tt>D: rpcServer: Calling XMLRPC registration.welcome_message</tt><tt><br>
    </tt><br>
    <tt># tail -f /var/log/update<br>
      ...<br>
      [Tue Mar 18 09:37:32 2014] up2date </tt><tt><br>
    </tt><tt>Traceback (most recent call last):</tt><tt><br>
    </tt><tt>  File "/usr/sbin/rhn_check", line 338, in __run_action</tt><tt><br>
    </tt><tt>    (status, message, data) = CheckCli.__do_call(method,
      params, kwargs)</tt><tt><br>
    </tt><tt>  File "/usr/sbin/rhn_check", line 330, in __do_call</tt><tt><br>
    </tt><tt>    method = getMethod.getMethod(method, "/usr/share/rhn/",
      "actions")</tt><tt><br>
    </tt><tt>  File "/usr/share/rhn/up2date_client/getMethod.py", line
      78, in getMethod</tt><tt><br>
    </tt><tt>    actions = __import__(modulename)</tt><tt><br>
    </tt><tt>  File "/usr/share/rhn/actions/packages.py", line 270, in
      <module></tt><tt><br>
    </tt><tt>    yum_base = YumAction()</tt><tt><br>
    </tt><tt>  File "/usr/share/rhn/actions/packages.py", line 65, in
      __init__</tt><tt><br>
    </tt><tt>    self.doTsSetup()</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/depsolve.py",
      line 84, in doTsSetup</tt><tt><br>
    </tt><tt>    return self._getTs()</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/depsolve.py",
      line 99, in _getTs</tt><tt><br>
    </tt><tt>    self._getTsInfo(remove_only)</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/depsolve.py",
      line 110, in _getTsInfo</tt><tt><br>
    </tt><tt>    pkgSack = self.pkgSack</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/__init__.py",
      line 887, in <lambda></tt><tt><br>
    </tt><tt>    pkgSack = property(fget=lambda self: self._getSacks(),</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/__init__.py",
      line 669, in _getSacks</tt><tt><br>
    </tt><tt>    self.repos.populateSack(which=repos)</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/repos.py",
      line 308, in populateSack</tt><tt><br>
    </tt><tt>    sack.populate(repo, mdtype, callback, cacheonly)</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py",
      line 165, in populate</tt><tt><br>
    </tt><tt>    if self._check_db_version(repo, mydbtype):</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py",
      line 223, in _check_db_version</tt><tt><br>
    </tt><tt>    return repo._check_db_version(mdtype)</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py",
      line 1256, in _check_db_version</tt><tt><br>
    </tt><tt>    repoXML = self.repoXML</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py",
      line 1455, in <lambda></tt><tt><br>
    </tt><tt>    repoXML = property(fget=lambda self:
      self._getRepoXML(),</tt><tt><br>
    </tt><tt>  File "/usr/share/yum-plugins/rhnplugin.py", line 566, in
      _getRepoXML</tt><tt><br>
    </tt><tt>    return YumRepository._getRepoXML(self)</tt><tt><br>
    </tt><tt>  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py",
      line 1451, in _getRepoXML</tt><tt><br>
    </tt><tt>    raise Errors.RepoError, msg</tt><tt><br>
    </tt><tt><class 'yum.Errors.RepoError'>: Cannot retrieve
      repository metadata (repomd.xml) for repository:
      rhel-x86_64-server-6. Please verify its path and try again</tt><tt><br>
    </tt><tt><br>
    </tt><tt>[Tue Mar 18 09:37:32 2014] up2date D: local action status:
      ((6,), 'Fatal error in Python code occured', {})</tt><tt><br>
    </tt><tt>[Tue Mar 18 09:37:32 2014] up2date D: rpcServer: Calling
      XMLRPC registration.welcome_message</tt><tt><br>
    </tt><br>
    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.<br>
    Is that your case?<br>
    If so, just use hostname that's in your SW server certificate. Or
    you can disable SSL for clients (not recommended, not tested).<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Lukas Pramuk
QA Engineer (RHCE, RHCVA)
Systems Management QA, Red Hat</pre>
  </body>
</html>