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 1857685

Summary: ubi8-minimal:8.2 much larger than 8.1 due to python dependency in crypto-policies package
Product: Red Hat Enterprise Linux 8 Reporter: john
Component: ubi8-minimal-containerAssignee: Jindrich Novy <jnovy>
Status: CLOSED DUPLICATE QA Contact: Martin Jenner <mjenner>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: jwboyer
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-16 11:22:24 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 john 2020-07-16 11:03:36 UTC
Description of problem:
In looking at reducing the size of some container images based on ubi8 I noticed that the ubi8-minimal:8.2 image is 146Meg, which is much larger than than the 108Meg for 8.1 (and way larger that ubi7's 82Meg). This seems to be due to the inclusion of platform-python, which is a dependency for crypto-policy.  Unless I'm mistaken the python dependency is only required due to the update-crypto-policies command in crypto-policy.

Could something be done to remove the dependency on python for crypto-policies? :)

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

How reproducible:


Steps to Reproduce:
1. Get the ubi8-minimal images for v8.1 and v8.2
# podman pull ubi8-minimal:8.1
# podman pull ubi8-minimal:8.2

2. Compare sizes of v8.1 and v8.2
# podman images
REPOSITORY                               TAG IMAGE ID      CREATED       SIZE
registry.access.redhat.com/ubi8-minimal  8.2 75a64ccf990b  2 weeks ago   146 MB
registry.access.redhat.com/ubi8-minimal  8.1 91d23a64fdf2  3 months ago  108 MB
 
Actual results:
# podman run -it ubi8-minimal:8.2 rpm -qa | grep python 
python3-setuptools-wheel-39.2.0-5.el8.noarch
platform-python-setuptools-39.2.0-5.el8.noarch
python3-libs-3.6.8-23.el8.x86_64
python3-pip-wheel-9.0.3-16.el8.noarch
platform-python-3.6.8-23.el8.x86_64

# podman run -it ubi8-minimal:8.2 rpm -qR crypto-policies
...
/usr/libexec/platform-python
...

Expected results:
Expected that python would not be installed onto the image similar to 8.1. 

Running the same commands on 8.1 return:

# podman run -it ubi8-minimal:8.1 rpm -qa | grep python
Nothing returned.

# podman run -it ubi8-minimal:8.1 rpm -qR crypto-policies
Output does not include python

Additional info:
There may be a very good reason for this dependency, but adding around 38Meg to the image size does bring the image very close to ubi8's 212Meg and feels wrong.

Comment 1 Josh Boyer 2020-07-16 11:22:24 UTC
Thank you for the report.  This is being resolved via bug 1832743.

*** This bug has been marked as a duplicate of bug 1832743 ***