Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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
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.
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.
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?
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