Bug 2037446 - Evaluate the usage of RHEL UBI requirement at rhceph-container
Summary: Evaluate the usage of RHEL UBI requirement at rhceph-container
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: build
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ODF 4.12.0
Assignee: Boris Ranto
QA Contact: Petr Balogh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-05 16:38 UTC by Sunil Kumar Acharya
Modified: 2023-08-09 16:37 UTC (History)
11 users (show)

Fixed In Version: 4.12.0-100
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-08 14:06:28 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-container issues 2004 0 None open switch ubi8 to ubi8-minimal 2022-04-08 18:05:22 UTC

Description Sunil Kumar Acharya 2022-01-05 16:38:06 UTC
Description of problem (please be detailed as possible and provide log
snippests):

Currently we are using RHEL8 UBI standard at ODF rhceph-container. This BZ is created to evaluate whether we can use RHEL8 UBI minimal instead of UBI standard.

Comment 4 Yaniv Kaul 2022-02-07 09:37:05 UTC
(Also see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/assembly_adding-software-to-a-running-ubi-container_building-running-and-managing-containers on how to add more packages to the image) - I believe minimal has something else than yum there (microdnf?)

Comment 5 Ken Dreyer (Red Hat) 2022-03-09 16:11:59 UTC
We explained to the CentOS team in https://lists.centos.org/pipermail/centos-devel/2021-November/098660.html that ubi8's /etc/yum.repos.d/ubi.repo does not have all the packages we need.

The CentOS team has not announced any plan to provide a CentOS 8 or 9 Stream minimal image, and told us to use ubi-minimal with the CentOS .repo files.

When we can have a this work done in the upstream ceph container image, then we can implement this downstream.

Like Yaniv said, one of the big changes between ubi8 and the "minimal" variant is that the main ubi8 (and stream8) images have the full /usr/bin/dnf program available for installing packages, whereas the minimal images have a stripped down implementation called microdnf. The main work here will be:

1) Switch the "FROM" Dockerfile lines in ceph-container.git in https://github.com/ceph/ceph-container to ubi8-minimal
2) Add the CentOS 8 .repo defintions to /etc/yum.repos.d
3) Change "yum" or "dnf" invocations to "microdnf"
4) Measure how many packages this new container has compared to the old (ie, what is the measurable outcome of this change)
5) Complete functional testing

Comment 7 Yaniv Kaul 2022-03-16 16:20:28 UTC
(In reply to Ken Dreyer (Red Hat) from comment #5)
> We explained to the CentOS team in
> https://lists.centos.org/pipermail/centos-devel/2021-November/098660.html
> that ubi8's /etc/yum.repos.d/ubi.repo does not have all the packages we need.
> 
> The CentOS team has not announced any plan to provide a CentOS 8 or 9 Stream
> minimal image, and told us to use ubi-minimal with the CentOS .repo files.
> 
> When we can have a this work done in the upstream ceph container image, then
> we can implement this downstream.
> 
> Like Yaniv said, one of the big changes between ubi8 and the "minimal"
> variant is that the main ubi8 (and stream8) images have the full
> /usr/bin/dnf program available for installing packages, whereas the minimal
> images have a stripped down implementation called microdnf. The main work
> here will be:
> 
> 1) Switch the "FROM" Dockerfile lines in ceph-container.git in
> https://github.com/ceph/ceph-container to ubi8-minimal
> 2) Add the CentOS 8 .repo defintions to /etc/yum.repos.d
> 3) Change "yum" or "dnf" invocations to "microdnf"
> 4) Measure how many packages this new container has compared to the old (ie,
> what is the measurable outcome of this change)
> 5) Complete functional testing

BTW, I *think* we can use RHEL minimal image instead of CentOS, in upstream as well.

Comment 19 Ken Dreyer (Red Hat) 2022-10-31 14:36:34 UTC
Also, in RHCS 6, all the RHCS images that we build will be based on ubi9-minimal.

Comment 22 Petr Balogh 2022-12-01 13:09:40 UTC
Since we don't see any issues with latest executions and after discussion with Boris we can mark as verified based on all our regression runs we did lately as we haven't seen any issue caused by this change by using minimal image.


Note You need to log in before you can comment on or make changes to this bug.