Bug 1017339

Summary: RHEL-6.5 Beta AMI's contain extra packages
Product: Red Hat Enterprise Linux 6 Reporter: Kevin Wright <kwright>
Component: ec2-imagesAssignee: Lubos Kocman <lkocman>
Status: CLOSED NOTABUG QA Contact: mkovacik
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: dgao, dgregor, gsterlin, ipanova, jboutaud, jgreguske, kwright, notting, tlavigne, vkuznets
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-30 12:53:47 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:
Embargoed:

Description Kevin Wright 2013-10-09 16:42:07 UTC
Description of problem:

Per Ina Panova <ipanova>

The RHEL-6.5 Beta images contain Extra packages:

Newly introduced packages: [''db4-cxx'', ''db4-devel'', ''gdbm-devel'',
         ''glibc-devel'', ''glibc-headers'', ''kernel-headers'', ''lzo'', ''mcelog'',
         ''mesa-private-llvm'', ''p11-kit'', ''p11-kit-trust'', ''redhat-support-lib-python'',
         ''redhat-support-tool'', ''shared-mime-info'',''snappy'', ''ttmkfdir'', ''xorg-x11-fonts-Type1'']

Comment 2 Jay Greguske 2013-10-09 17:25:55 UTC
Lubos,

-devel and mcelog are the packages that do not belong for sure. Packages with GUIs do not make sense either, so very few users of EC2 AMIs have a graphical environment.

Comment 3 RHEL Program Management 2013-10-14 01:41:46 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 4 Lubos Kocman 2013-10-15 09:24:21 UTC
The problem as I see is that images are basically using the same comps groups as RHEL. Which means ALL of them. These packages got into it for a reason.


The solution as I see it would be to limit number of comps groups used in appliance images from EVERYTHING to a limited set.

Additional-devel involves many -devel packages. And since you don't want -devel we might consider removing additional-devel group from appliance images (trough kickstart).


Would that work for you?

I believe that this should be discussed with Bill Nottingham as well.

Comment 5 Kevin Wright 2013-10-15 16:33:03 UTC
Lubos, in my opinion, using the kickstart file is a good way to limit the packages since removing them from the comps group would affect the release of the non-ami files. Please do that as soon as possible so we can release the 6.5 Beta AMI's.

Comment 6 Bill Nottingham 2013-10-15 22:12:02 UTC
What *is* the kickstart file in use here? What groups is it pulling in?

Comment 7 Lubos Kocman 2013-10-16 08:15:35 UTC
All of them Bill. I'm strongly for explicitly setting groups which are going to be pulled in appliance images.

Comment 8 Vitaly Kuznetsov 2013-10-21 09:05:32 UTC
Devel packages appeared in the AMIs for a reason and I think this reason has nothing to do with package groups. There was a change in perl-devel requires set:

1) RHEL6.4
# rpm -q --requires perl-devel
/usr/bin/perl  
perl >= 0:5.002
perl >= 1:5.7.2
perl = 4:5.10.1-131.el6_4
perl(Carp)  
perl(Config)  
perl(DynaLoader)  
perl(Exporter)  
perl(ExtUtils::Constant)  
perl(ExtUtils::Installed)  
perl(ExtUtils::MakeMaker)  
perl(ExtUtils::ParseXS)  
perl(File::Compare)  
perl(File::Find)  
perl(File::Path)  
perl(File::Spec)  
perl(Getopt::Long)  
perl(Getopt::Std)  
perl(IO::File)  
perl(Text::Wrap)  
perl(constant)  
perl(strict)  
perl(vars)  
perl(warnings)  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


2) RHEL6.5
# rpm -q --requires perl-devel
/usr/bin/perl  
db4-devel  
gdbm-devel  
glibc-devel  
perl >= 0:5.002
perl >= 1:5.7.2
perl = 4:5.10.1-136.el6
perl(Carp)  
perl(Config)  
perl(DynaLoader)  
perl(Exporter)  
perl(ExtUtils::Constant)  
perl(ExtUtils::Installed)  
perl(ExtUtils::MakeMaker)  
perl(ExtUtils::ParseXS)  
perl(File::Compare)  
perl(File::Find)  
perl(File::Path)  
perl(File::Spec)  
perl(Getopt::Long)  
perl(Getopt::Std)  
perl(IO::File)  
perl(Text::Wrap)  
perl(constant)  
perl(strict)  
perl(vars)  
perl(warnings)  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

You can see 'db4-devel gdbm-devel glibc-devel' added to the list. glibc-devel also requires kernel-headers so we get what we get.

These dependencies were changed as a result of fixing https://bugzilla.redhat.com/show_bug.cgi?id=905482

Comment 9 Vitaly Kuznetsov 2013-10-21 11:17:57 UTC
perl-devel removal is also impossible in the image as it triggers cloud-init removal (wasn't the case with RHEL6.4). I've created another bug to track that: https://bugzilla.redhat.com/show_bug.cgi?id=1021463

Comment 10 Lubos Kocman 2013-10-22 20:47:49 UTC
Ok. I'm proposing to solve the perl-devel in Bug#1021463. This means fixing the cause instead of workarounding it. By excluding signle packages from kickstart ...

Can I close this as duplicate of Bug#1021463?

Lubos

Comment 11 Vitaly Kuznetsov 2013-10-23 07:20:52 UTC
I think this bug is not a duplicate of Bug#1021463 as only solving Bug#1021463 won't solve initial issue. Excluding single packages from kickstart won't help as these extra packages are being installed as dependencies (and we can't have unmet dependencies in AMIs).

To my understanding we have 2 separate issues:
1st issue: we had perl-devel in our RHEL6 AMI for ages, but now it has many more dependencies (as a side-effect of fixing Bug#905482). That's where 'kernel-headers', 'glibc-devel' ans others come from.

2nd issue: we could (in theory) opt for removing perl-devel from our AMIs completely but it's not possible atm due to Bug#1021463

So we still need to make a decision. I can see three possible options:
1) We admit all these -devel packages, kernel-headers,.. are part of minimal setup for RHEL6 and do nothing
2) We push to revert Bug#905482 back
3) We push to fix Bug#1021463 and remove perl-devel from our AMIs (by changing kickstart)

Comment 12 Lubos Kocman 2013-10-23 15:58:23 UTC
1) is currently correct and a way for Snap 5 as we don't have other choice.
2) Nonsense ...

3) Just set proper blocker. Anyway I don't believe Bug#1021463  + this bug will get blocker+ flag for 6.5.

If it's really issue then I have nothing against removing perl-devel from kicktart.

So this bug stays stalled until Bug#1021463  is resolved.

Lubos

Comment 14 Lubos Kocman 2013-10-30 12:53:47 UTC
Notabug on our side. I don't want to keep this alive, since in best scenario there is no change on rcm-side.

Lubos