Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2084259

Summary: [4.8] OCP ignores STOPSIGNAL in Dockerfile and sends SIGTERM
Product: OpenShift Container Platform Reporter: Peter Hunt <pehunt>
Component: NodeAssignee: Peter Hunt <pehunt>
Node sub component: CRI-O QA Contact: MinLi <minmli>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: akretzsc, aos-bugs, dwalsh, ebrizuel, minmli, pehunt, pmali, rphillips, skclark, Szymon.Sawis, tsweeney
Version: 4.6   
Target Milestone: ---   
Target Release: 4.8.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2000877 Environment:
Last Closed: 2022-05-25 21:48:25 UTC Type: ---
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: 2000877    
Bug Blocks:    

Comment 5 MinLi 2022-05-18 07:55:00 UTC
verified!

% oc get clusterversion 
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2022-05-17-083040   True        False         161m    Cluster version is 4.8.0-0.nightly-2022-05-17-083040

sh-4.4# podman run -d --name echo-the-trapper-0  echo-the-trapper
e194bb99963fe1a44ca0f3e1844a4a6c75d68211cf531597d0244f58887de635

sh-4.4# podman inspect e194bb99963fe1a44ca0f3e1844a4a6c75d68211cf531597d0244f58887de635 | grep StopSignal
            "StopSignal": 37,

sh-4.4# podman stop echo-the-trapper-0 --log-level debug
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called stop.PersistentPreRunE(podman stop echo-the-trapper-0 --log-level debug) 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf" 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /var/lib/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /var/lib/containers/storage 
DEBU[0000] Using run root /var/run/containers/storage   
DEBU[0000] Using static dir /var/lib/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/libpod                    
DEBU[0000] Using volume path /var/lib/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] [graphdriver] trying provided driver "overlay" 
DEBU[0000] cached value indicated that overlay is supported 
DEBU[0000] cached value indicated that metacopy is not being used 
DEBU[0000] NewControl(/var/lib/containers/storage/overlay): nextProjectID = 113 
DEBU[0000] cached value indicated that native-diff is usable 
DEBU[0000] backingFs=xfs, projectQuotaSupported=true, useNativeDiff=true, usingMetacopy=false 
DEBU[0000] Initializing event backend file              
DEBU[0000] configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument 
DEBU[0000] configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument 
DEBU[0000] configured OCI runtime crun initialization failed: no valid executable found for OCI runtime crun: invalid argument 
DEBU[0000] Using OCI runtime "/usr/bin/runc"            
INFO[0000] Found CNI network crio (type=bridge) at /etc/cni/net.d/100-crio-bridge.conf 
INFO[0000] Found CNI network 200-loopback.conf (type=loopback) at /etc/cni/net.d/200-loopback.conf 
INFO[0000] Found CNI network podman (type=bridge) at /etc/cni/net.d/87-podman-bridge.conflist 
DEBU[0000] Default CNI network name podman is unchangeable 
INFO[0000] Setting parallel job count to 13             
DEBU[0000] Starting parallel job on container e194bb99963fe1a44ca0f3e1844a4a6c75d68211cf531597d0244f58887de635 
DEBU[0000] Stopping ctr e194bb99963fe1a44ca0f3e1844a4a6c75d68211cf531597d0244f58887de635 (timeout 10) 
DEBU[0000] Stopping container e194bb99963fe1a44ca0f3e1844a4a6c75d68211cf531597d0244f58887de635 (PID 231617) 
DEBU[0000] Sending signal 37 to container e194bb99963fe1a44ca0f3e1844a4a6c75d68211cf531597d0244f58887de635 
DEBU[0000] Cleaning up container e194bb99963fe1a44ca0f3e1844a4a6c75d68211cf531597d0244f58887de635 
DEBU[0000] Network is already cleaned up, skipping...   
DEBU[0000] Container e194bb99963fe1a44ca0f3e1844a4a6c75d68211cf531597d0244f58887de635 storage is already unmounted, skipping... 
echo-the-trapper-0
DEBU[0000] Called stop.PersistentPostRunE(podman stop echo-the-trapper-0 --log-level debug)

Comment 7 errata-xmlrpc 2022-05-25 21:48:25 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.8.41 bug fix and security 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-2022:2272