Bug 2037446

Summary: Evaluate the usage of RHEL UBI requirement at rhceph-container
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Sunil Kumar Acharya <sheggodu>
Component: buildAssignee: Boris Ranto <branto>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Balogh <pbalogh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: bkunal, bniver, gmeno, kdreyer, mmuench, muagarwa, ocs-bugs, odf-bz-bot, pbalogh, pnataraj, psathyan
Target Milestone: ---   
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.12.0-100 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-08 14:06:28 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 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.