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 1469223

Summary: power base image includes unnecessary packages
Product: Red Hat Enterprise Linux 7 Reporter: Qian Cai <qcai>
Component: rhel-server-ppc64le-containerAssignee: Frantisek Kluknavsky <fkluknav>
Status: CLOSED ERRATA QA Contact: Martin Jenner <mjenner>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: hannsj_uhl, rhartman, yselkowi
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 13:20:52 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:
Bug Depends On:    
Bug Blocks: 1405448    
Attachments:
Description Flags
Patch to kickstart file to avoid extra packages none

Description Qian Cai 2017-07-10 16:44:31 UTC
Description of problem:
For ppc64le, I am not sure we need lvm2, lvm2-libs, libaio, device-mapper-event,
device-mapper-event-libs, and device-mapper-persistent-data in the base image where we don't include them in the x86_64 version.
I can remove them all manually without dependency issues.

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

How reproducible:
always

Comment 1 Josh Boyer 2017-07-11 13:38:42 UTC
I looked at this more closely this morning.  The extra packages are entirely because we are using "autopart" for partitioning in the kickstart file.  I was able to do a scratch build of the base image using "autopart --nolvm" in the kickstart file and it removes the packages listed.  You can see this here:

[root@ibm-p8-kvm-05-guest-09 ~]# docker pull brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7-ppc64le:none-20170711082034
Trying to pull repository brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7-ppc64le ... 
none-20170711082034: Pulling from brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7-ppc64le
409c608d670b: Pull complete 
2de41c99ce1d: Pull complete 
Digest: sha256:6211c0ee991fa30dddf0edf74e2bb013375d688fc1f6c69cfc65c4fc0e68c975
[root@ibm-p8-kvm-05-guest-09 ~]# docker run -it 6c4a4d1d12d9 /bin/bash
[root@e619fa54e8d1 /]# rpm -qa | grep lvm
[root@e619fa54e8d1 /]# rpm -qa | grep device-mapper
device-mapper-1.02.140-8.el7.ppc64le
device-mapper-libs-1.02.140-8.el7.ppc64le
[root@e619fa54e8d1 /]# rpm -qa | grep libaio       
[root@e619fa54e8d1 /]# 

The full difference between this scratch build and the latest x86_64 base image is now this:

[jwboyer@x1 ~]$ diff -Nup x86.list ppc64le.list 
--- x86.list	2017-07-11 09:37:43.695278510 -0400
+++ ppc64le.list	2017-07-11 09:37:29.880351119 -0400
@@ -20,7 +20,6 @@ dbus-python-1.1.1-9.el7
 device-mapper-1.02.140-8.el7
 device-mapper-libs-1.02.140-8.el7
 diffutils-3.3-4.el7
-dmidecode-3.0-5.el7
 dracut-033-502.el7
 elfutils-default-yama-scope-0.168-8.el7.noarch
 elfutils-libelf-0.168-8.el7
@@ -119,7 +118,6 @@ python-rhsm-1.19.9-1.el7
 python-rhsm-certificates-1.19.9-1.el7
 python-urlgrabber-3.10-8.el7.noarch
 pyxattr-0.5.1-5.el7
-qemu-guest-agent-2.8.0-2.el7
 qrencode-libs-3.4.1-3.el7
 readline-6.2-10.el7
 redhat-release-server-7.4-18.el7
[jwboyer@x1 ~]$ 

Both packages missing in the ppc64le container are x86_64 only for now, so that is expected.

Comment 2 Josh Boyer 2017-07-11 13:43:02 UTC
Created attachment 1296260 [details]
Patch to kickstart file to avoid extra packages

This is the entirety of the patch.

Comment 7 errata-xmlrpc 2017-08-01 13:20:52 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.

https://access.redhat.com/errata/RHBA-2017:2374