Bug 1033884

Summary: yum groupremove "development tools" removes lvm2, binutils on fresh install
Product: Red Hat Enterprise Linux 6 Reporter: jds222
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4CC: james.antill, jzeleny
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-25 08:27:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description jds222 2013-11-24 04:17:29 UTC
Description of problem:

This happens on a clean Centos 6.4 installation on VMWare Workstation 10 using minimal install from the net install ISO. After installing and removing the "Development tools" group, critical packages are removed and system crashes. System will not boot again. 

Version-Release number of selected component (if applicable):


How reproducible:

It does this consistently. I have tried to do another clean install of Centos 6.4 with 'mininal' selected for packages and repeated the steps below to get the same result.


Steps to Reproduce:

1. Install fresh copy of Centos 6.4 x86_64 from the net install ISO from official Centos mirror.
2. yum groupinstall "Development Tools"
3. reboot
4. yum groupremove "Development Tools"
5. various critical packages are removed. In my case, including the removal of lvm2..

Actual results:

System freezes and will not boot after a cold restart.


Expected results:

Only development related packages removed using groupremove.

Additional info:

Some terminal output showing issue: http://pastebin.com/Pqa1teLD

Comment 2 Jan Zeleny 2013-11-25 07:44:38 UTC
The paste you provided doesn't seem to work, could you re-paste the complete output?

Comment 3 Jan Zeleny 2013-11-25 07:47:20 UTC
Oh and btw removing binutils is quite ok, as that package is a part of the Development Tools group in CentOS. I have yet to figure out why is lvm getting removed but that will hopefully get more clear when I see your paste.

Comment 4 jds222 2013-11-25 08:15:01 UTC
Forgot the paste had auto remove set. I don't have a copy of the original output but should be able to recreate that tomorrow. In the mean time, I invite you to install centos on a VM and give it a shot. The issue is consistent.

Comment 5 jds222 2013-11-25 08:19:10 UTC
Actually, Firefox saved the paste. Here is a new link: http://pastebin.centos.org/6021/

Comment 6 Jan Zeleny 2013-11-25 08:27:56 UTC
Ok, I'm pretty sure now this is not a bug in yum, it does exactly what it's required to do:

Development Tools group contains mandatory package binutils. By removing the group, you also remove this package. Now, module-init-tools require binutils so they have to be removed as well. And similarly, lvm2 requires module-init-tools, so it also has to be removed.

Comment 7 jds222 2013-11-25 08:40:20 UTC
The way I see it, I install dev tools to compile something. I then uninstall dev tools.  System breaks. Something isn't right. Do you not see how this could be an issue?

Comment 8 Jan Zeleny 2013-11-25 12:00:27 UTC
I do but it's simply not an issue of yum - it really does what it's asked to do. If you want a one-instance fix, setting groupremove_leaf_only=1 in yum.conf should help you.

If you want a permanent fix, I suggest contacting CentOS with a request to make this configuration default or to remove the binutils package from "Developer Tools" group.

HTH
Jan

Comment 9 jds222 2013-11-25 16:25:12 UTC
The groupremove_leaf_only=1 workaround did not do the trick for me: http://pastebin.centos.org/6051/

However the guy's at #centos suggested yum history list/info/undo and that appears to achieve the desired goal. Hope this helps others.