Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
Bug 789535 - Systems: Cannot add Package Groups
Summary: Systems: Cannot add Package Groups
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Mike McCune
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-11 03:40 UTC by Corey Welton
Modified: 2019-09-25 20:43 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2012-12-04 19:42:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1543 0 normal SHIPPED_LIVE Important: CloudForms System Engine 1.1 update 2012-12-05 00:39:57 UTC

Description Corey Welton 2012-02-11 03:40:48 UTC
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

Comment 1 Corey Welton 2012-02-11 03:44:08 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)

Comment 2 Corey Welton 2012-02-14 03:23:20 UTC
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.

Comment 3 Jeff Ortel 2012-02-22 20:39:50 UTC
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.

Comment 4 Todd Sanders 2012-02-29 14:53:05 UTC
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.

Comment 6 Jeff Ortel 2012-08-16 16:44:33 UTC
This appears to have been fix by commit: e7b842ecf80f18f9f4519fbbc7714aa33f993bfe

Comment 7 Mike McCune 2012-08-27 20:15:37 UTC
I'll take it from here and make sure that commit gets in to CFSE 1.1

Comment 9 Corey Welton 2012-10-04 16:49:41 UTC
QE Verified -- UI indicates package group has been installed and goferd logs confirm it.

CloudForms System Engine Version: 1.1.12-12.el6cf

Comment 11 errata-xmlrpc 2012-12-04 19:42:06 UTC
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


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