Hide Forgot
Description of problem: User has option to add Package Groups via radio button in the Systems > $system > Packages menu, but attempting to add groups doesn't actually seem to work. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Sync RHEL 6.2 content, promote it, etc., etc. 2. Register a system to server using subscription-manager and subscribe to your RH content repo(s). Download a sample package or two from katello server just to make sure everything is functioning as expected. 3. Set up katello-agent on client; again, make sure it is functional. 4. On the client box, attempt, but do not complete, 'yum groupinstall "Development Tools"'; observe that yum recognises the group name and performs deps work 5. In UI, navigate the Systems > System > Packages 6. Choose the Package groups radio button. 7. Enter "Development Tools" in the textbox and click +Add Actual results: Adding Package Group... Add Package Group Error Expected results: Package group can be added. Additional info: Likewise, Package groups (the one[s] you tried to add) cannot be -Remove'd
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