Bug 1906806

Summary: Allow installing extra packages in ironic container images
Product: OpenShift Container Platform Reporter: Riccardo Pittau <rpittau>
Component: Bare Metal Hardware ProvisioningAssignee: Riccardo Pittau <rpittau>
Bare Metal Hardware Provisioning sub component: ironic QA Contact: Lubov <lshilin>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: bfournie, rbartal
Version: 4.7Keywords: Triaged, UpcomingSprint
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:42:30 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 Riccardo Pittau 2020-12-11 13:14:54 UTC
To be able to install and test new versions of the ironic project software packages, we need to refactor the logic of the Dockerfile used to build the images.

Comment 2 Lubov 2020-12-14 06:41:56 UTC
Please, provide instructions how can it be verified

Comment 3 Riccardo Pittau 2020-12-15 08:16:40 UTC
To verify the new argument you need to build the image specifying the argument in the command line, for example:
podman build -f Dockerfile.ocp --build-arg EXTRA_PKGS_LIST=extra-packages-list.txt

can test with different scenarios:
- extra-packages-list.txt doesn't exist
- extra-packages-list.txt exists but it's empty
- extra-packages-list.txt exists and it's not empty (one or multiple packages, one per line)

the latter should end up copying the list in the container and installing whatever package is specified in it

Comment 7 errata-xmlrpc 2021-02-24 15:42:30 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633