| Summary: | Systems: Cannot add Package Groups | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Corey Welton <cwelton> |
| Component: | katello-agent | Assignee: | Mike McCune <mmccune> |
| Status: | CLOSED ERRATA | QA Contact: | Corey Welton <cwelton> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.0 | CC: | achan, asettle, dmacpher, mmccune, omaciel, tsanders |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Systems previously registered in Red Hat Network (RHN) and re-registered to System Engine resulted in errors when adding package groups via katello-agent. This was due to failure to bind repositories because the RHN repositories do not have repofiles. This fix skips these repositories in katello-agent and allows the package groups to be added.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-12-04 19:42:06 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Corey Welton
2012-02-11 03:40:48 UTC
Error in the goferd log:
2012-02-10 22:42:56,848 [INFO][worker-0] dispatch() @ dispatcher.py:530 - dispatching:{
"args": [
[
"Development Tools"
]
],
"auth": {
"secret": "848ca2088826974d68fcf928dee7777055bb361d89a40b1df7072753d9f0b7d2",
"pam": null,
"uuid": "0cd27571-0673-4c5e-9629-83e67a11e478"
},
"classname": "PackageGroups",
"kws": {},
"cntr": null,
"method": "install"
}
2012-02-10 22:42:58,145 [INFO][PathMonitor1] changed() @ katelloplugin.py:135 - changed: /etc/yum.repos.d/redhat.repo
2012-02-10 22:42:58,274 [ERROR][PathMonitor1] __notify() @ pmon.py:118 - /etc/yum.repos.d/redhat.repo
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gofer/pmon.py", line 116, in __notify
cb(path)
File "/usr/lib64/gofer/plugins/katelloplugin.py", line 141, in changed
report = EnabledReport(filter)
File "/usr/lib64/gofer/plugins/katelloplugin.py", line 294, in __init__
self.content = self.__report(repofn)
File "/usr/lib64/gofer/plugins/katelloplugin.py", line 307, in __report
return dict(enabled_repos=self.__enabled(yb, repofn))
File "/usr/lib64/gofer/plugins/katelloplugin.py", line 324, in __enabled
fn = os.path.basename(r.repofile)
File "/usr/lib64/python2.6/posixpath.py", line 111, in basename
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
2012-02-10 22:43:00,055 [ERROR][worker-0] __call__() @ dispatcher.py:488 - Values instance has no attribute 'repos'
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gofer/rmi/dispatcher.py", line 485, in __call__
retval = method(*args, **keywords)
File "/usr/lib64/gofer/plugins/katelloplugin.py", line 254, in install
installed = g.install(names)
File "/usr/lib64/gofer/plugins/package.py", line 226, in install
packages = yb.selectGroup(name)
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2825, in selectGroup
if not self.comps.has_group(grpid):
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 905, in <lambda>
comps = property(fget=lambda self: self._getGroups(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 787, in _getGroups
self.repos.doSetup()
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 72, in doSetup
self.ayum.plugins.run('prereposetup')
File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/share/yum-plugins/rhnplugin.py", line 199, in prereposetup_hook
for opt, repoexp in opts.repos:
AttributeError: Values instance has no attribute 'repos'
2012-02-10 22:43:00,058 [INFO][worker-0] sendreply() @ rmi.py:158 - bf6eaa65-14c4-4c03-9da0-8ed6e6295dbc processed in: 3.262 (seconds)
I'm not 100% sure how serious this issue is; there may be a misconfiguration on my end that is triggering this. But I'm thinking gofer should probably catch the error. There are two things going on here. First, the rhnplugin YUM plugin is raising an exception which appears to have nothing to do with the katello agent. Second, the rhnplugin defines a YUM repo with a repofile=None. The katello agent needs to be tweaked to handle this when it's generating the enabled repositories report. Spoke with BK, and we don't believe this is a blocker. Typically users will *not* be using both RHN and RHSM at the same time on the same system. This appears to have been fix by commit: e7b842ecf80f18f9f4519fbbc7714aa33f993bfe I'll take it from here and make sure that commit gets in to CFSE 1.1 QE Verified -- UI indicates package group has been installed and goferd logs confirm it. CloudForms System Engine Version: 1.1.12-12.el6cf Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-1543.html |