Bug 2099260

Summary: container-tools:3.0/skopeo: RHEL9-based containers failing to run on RHEL 8.4
Product: Red Hat Enterprise Linux 8 Reporter: Lukas Bezdicka <lbezdick>
Component: skopeoAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.4CC: bdobreli, dmaley, dornelas, dwalsh, jpretori, pthomas, tsweeney, umohnani
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2104571 2104572 (view as bug list) Environment:
Last Closed: 2023-01-05 20:31: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: 2016660, 2104571, 2104572    
Attachments:
Description Flags
Patch applied to fix the issue. none

Description Lukas Bezdicka 2022-06-20 12:16:20 UTC
Created attachment 1891284 [details]
Patch applied to fix the issue.

Description of problem:
For OpenStack upgrade from OSP16.2 to OSP17.1 we are planing to go to intermediate step where we run OSP17 containers on RHEL8.4 before doing Leapp to RHEL9. We don't expect all of the containers work as we will have OVS incompatibility and probably Libvirt incompatibility but most of the OSP containers are simple python applications. When testing PoC we hit issue with mysql_upgrade failing to connect with error:

FATAL ERROR: popen("'mysql' --no-defaults --help 2>&1 > /dev/null ", "r") failed

Version-Release number of selected component (if applicable):
We use container-tools module 3.0 but we can switch to plain container-tools on 8.4. But we need backports of seccomp.json changes used in https://access.redhat.com/errata/RHSA-2021:4154

How reproducible:
Running mysqld with mysql_upgrade command fails always.


To solve this we did dnf module switch to container-tools and got containers-common-1.3.1-5.module+el8.4.0+11990+22932769.x86_64

This still didn't solve the issue but after creating patch that updates seccomp.json from linked advisory we got everything working.


This is blocking issue for OSP16.2 to OSP17.1 upgrade.

Comment 10 Tom Sweeney 2022-08-09 23:44:40 UTC
Assigning to Dan for now, most likely will move elsewhere.

Comment 11 Daniel Walsh 2022-08-10 14:30:26 UTC
I am not really sure of the question, but if you exec into the container as root, then you have the full list of capabilities in the EFF set, so you can take advantage of them
In the case of the actual container process, it does not get the capabilities by default but needs to use a SETUID or SETFCAP file to get additional capabilities.

Comment 13 Tom Sweeney 2022-08-23 19:28:46 UTC
@dwalsh any update on this?

Comment 14 Daniel Walsh 2022-08-23 21:00:12 UTC
Looks like we would need o back port the fix from 8.5 to make this work.

Comment 15 Daniel Walsh 2022-08-23 21:08:44 UTC
This should definitely not block next release, since the issue is with rhel8.4

Comment 17 Tom Sweeney 2022-08-30 19:58:33 UTC
Moving target release to 8.8.0, the fix is not ready yet, nor on the near horizon.