Bug 701239 - The way that VDSM checks for RHN registration during host installation is wrong
Summary: The way that VDSM checks for RHN registration during host installation is wrong
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Dan Kenigsberg
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-02 09:03 UTC by Rami Vaknin
Modified: 2016-04-18 06:39 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-04 12:28:52 UTC
Target Upstream Version:


Attachments (Terms of Use)
Logs (170.35 KB, application/x-gzip)
2011-05-02 09:03 UTC, Rami Vaknin
no flags Details

Description Rami Vaknin 2011-05-02 09:03:09 UTC
Created attachment 496192 [details]
Logs

Environment:
RHEVM 2.3 on dev env, front-end on Windows, back-end on RHEL6, last commit: 73a586ab599eea91586fd7d4bd49c91dd1d385a0


VDSM looks for RHN installation during host installation, currently it concludes that the host is not registered to RHN when it can find vdsm packages.

From the installation log:

Sun, 01 May 2011 18:36:43 DEBUG    **** Start VDS Validation ****
Sun, 01 May 2011 18:36:43 DEBUG    Entered VdsValidation(subject = 'stone-vds1.qa.lab.tlv.redhat.com', random_num = 'df51b482-ba18-4fd3-9812-dcde0f234ea3', rev_num = 'None')
Sun, 01 May 2011 18:36:43 DEBUG    Setting up Package Sacks
Sun, 01 May 2011 18:36:43 DEBUG    yumSearch: package vdsm not found!
Sun, 01 May 2011 18:36:43 ERROR    Unable to fetch vdsm package. Please check if host is registered to RHN, Satellite or other yum repository
Sun, 01 May 2011 18:36:43 DEBUG    <BSTRAP component='RHN_REGISTRATION' status='FAIL' message='Unable to fetch vdsm package. Please check if host is registered to RHN, Satellite or other yum repository'/>
Sun, 01 May 2011 18:36:43 ERROR    checkRegistration test failed
Sun, 01 May 2011 18:36:43 DEBUG    <BSTRAP component='RHEV_INSTALL' status='FAIL'/>
Sun, 01 May 2011 18:36:43 DEBUG    **** End VDS Validation ****



Note that I got the following Traceback only in one reproduction:

Sun, 01 May 2011 19:00:04 ERROR    checkRegistration: Error searching for VDSM package!
Sun, 01 May 2011 19:00:04 ERROR    Traceback (most recent call last):
  File "/tmp/vds_bootstrap_b5127244-a8b7-4f1e-b423-20d4c95abdcf.py", line 156, in checkRegistration
    rc = deployUtil.yumSearch(VDSM_NAME)
  File "/tmp/deployUtil.py", line 1074, in yumSearch
    pkgs = yumFind(pkgName)
  File "/tmp/deployUtil.py", line 1064, in yumFind
    lReturn = my.pkgSack.searchNevra(name=pkgName)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 882, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 668, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 289, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 172, in populate
    db_fn = repo._retrieveMD(mydbtype)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1607, in _retrieveMD
    size=thisdata.size)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 837, in _getFile
    size=size
  File "/usr/lib/python2.6/site-packages/urlgrabber/mirror.py", line 408, in urlgrab
    return self._mirror_try(func, url, kw)
  File "/usr/lib/python2.6/site-packages/urlgrabber/mirror.py", line 394, in _mirror_try
    return func_ref( *(fullurl,), **kwargs )
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 985, in urlgrab
    return self._retry(opts, retryfunc, url, filename)
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 886, in _retry
    r = apply(func, (opts,) + args, {})
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 971, in retryfunc
    fo = PyCurlFileObject(url, filename, opts)
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1066, in __init__
    self._do_open()
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1360, in _do_open
    self._do_grab()
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1506, in _do_grab
    % (self.filenameself.url, e))
  File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 1081, in __getattr__
    raise AttributeError, name
AttributeError: filenameself

Sun, 01 May 2011 19:00:04 ERROR    Unable to fetch vdsm package. Please check if host is registered to RHN, Satellite or other yum repository

Comment 1 Yotam Oron 2011-05-02 09:05:41 UTC
From rhn_register man:
/etc/sysconfig/rhn/systemid
  - The digital server ID for this machine if the system has been registered 
    onto RHN Satellite or Red Hat Network Classic.  This file does not exist 
    otherwise.

We should check for the existence of that file for RHN registration verification.

Comment 2 Rami Vaknin 2011-05-02 09:11:20 UTC
VDSM looks for RHN installation during host installation, currently it
concludes that the host is not registered to RHN when it ***can't*** find vdsm
packages.

Comment 3 Dan Kenigsberg 2011-05-02 11:58:35 UTC
We do not really care if we are registered to RHN. We care about being able to see vdsm updates (having a local yum repo instead of rhn is good enough). I do not understand this bug at all; please explain what we are doing wrongly, in your opinion.

Note that the traceback of comment 0 comes from yum or urlgrabber. Are you using the latest versions thereof?

Comment 4 Yotam Oron 2011-05-04 12:28:52 UTC
After discussing with Dan - this is not a bug, probably due to wrong environment or setup.
Closing.


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