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.

Bug 603002

Summary: groupremove with groupremove_leaf_only crashes when transaction is empty
Product: Red Hat Enterprise Linux 6 Reporter: Šimon Lukašík <slukasik>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: psklenar
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: yum-3.2.27-10.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 22:00:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 578587, 582655    

Description Šimon Lukašík 2010-06-11 08:49:30 UTC
Description of problem:
yum groupremove with 'groupremove_leaf_only=true' crashes when transaction is empty.

Version-Release number of selected component (if applicable):
yum-3.2.27-9.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. Take fresh Beaker machine
2. yum groupremove Desktop
# Result: List of dependencies resolved
3. echo "groupremove_leaf_only=true" >> /etc/yum.conf
4. yum groupremove Desktop
# Result: Traceback
  
Actual results:
yum groupremove Desktop
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
Resolving Dependencies
--> Running transaction check
---> Package dbus.x86_64 1:1.2.24-1.el6 set to be erased
---> Keeping package: polkit-0.96-1.el6.x86_64
--> Finished Dependency Resolution
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 254, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 150, in main
    (result, resultmsgs) = base.buildTransaction() 
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 862, in buildTransaction
    (rescode, restring) = self.resolveDeps()
TypeError: 'NoneType' object is not iterable


Expected results:
No traceback. Take care of empty transaction.

Additional info:
Group Desktop is not available in rhel6-beta channels, but in beaker repository. This issue should be reproducible against others groups as well, but it may need some additional playing with dependencies, to reproduce empty transaction.

Comment 3 RHEL Program Management 2010-06-11 09:03:09 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Šimon Lukašík 2010-06-21 11:07:13 UTC
As package is already in compose, changing to ON_QA. (Feel free to revert if I missed something).

Comment 5 Šimon Lukašík 2010-06-21 11:10:04 UTC
Changing to VERIFIED:

Verified against:
yum-3.2.27-12.el6.noarch
on RHEL6.0-20100620.n.0 (i386, x86_64)

Comment 6 Fedora Update System 2010-08-05 23:46:09 UTC
yum-3.2.28-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 releng-rhel@redhat.com 2010-11-10 22:00:48 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.