Bug 688877 - Command "rhhreg_ks" generates a traceback if the Base Channel does not have repodata generated yet.
Summary: Command "rhhreg_ks" generates a traceback if the Base Channel does not have...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Registration
Version: 541
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2011-03-18 11:33 UTC by Dimitar Yordanov
Modified: 2014-07-04 13:26 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-04 13:26:51 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Dimitar Yordanov 2011-03-18 11:33:49 UTC
Description of problem:
Command "rhhreg_ks" generates a traceback if  the  Base Channel repodata is not generated yet.

Version-Release number of selected component (if applicable):
Satellite 5.4
rhn-setup-0.4.20-46.el5

How reproducible:
Always

Steps to Reproduce:
1.Create a Custom channel.
2.Create an activation key assosiated with the channel.
3.Ensure repodata for the channel is not available.
4.rhnreg_ks  --serverUrl=http://... /XMLRPC --activationkey=1-72... --profilename=abc
  
Actual results:
Success but traceback in /var/log/up2date
See Additional info.

Expected results:
No Traceback


Additional info:

Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 327, in __run_action
    (status, message, data) = CheckCli.__do_call(method, params, kwargs)
  File "/usr/sbin/rhn_check", line 319, 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 260, in ?
    yum_base = YumAction()
  File "/usr/share/rhn/actions/packages.py", line 55, in __init__
    self.doTsSetup()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 86, in doTsSetup
    return self._getTs()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 662, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 502, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 260, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in populate
    if self._check_db_version(repo, mydbtype):
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 226, in _check_db_version
    return repo._check_db_version(mdtype)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1233, in _check_db_version
    repoXML = self.repoXML
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1406, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib/yum-plugins/rhnplugin.py", line 485, in _getRepoXML
    return YumRepository._getRepoXML(self)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1402, in _getRepoXML
    raise Errors.RepoError, msg
yum.Errors.RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: chann_thu17mar2011_19_29_27_jx. Please verify its path and try again


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