Bug 1904461

Summary: Log reader pod crashes with "exec format error"
Product: Migration Toolkit for Containers Reporter: Sergio <sregidor>
Component: GeneralAssignee: Rayford Johnson <rjohnson>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: high Docs Contact: Avital Pinnick <apinnick>
Priority: unspecified    
Version: 1.4.0CC: chezhang, ernelson, rjohnson, rpattath, whu, xjiang
Target Milestone: ---   
Target Release: 1.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-11 12:54:49 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 Sergio 2020-12-04 14:30:34 UTC
Description of problem:
When we deploy MTC, the log-reader pod is created and then instantly crashes. It shows "exec format error" in the pod's log.

Version-Release number of selected component (if applicable):
MTC 1.4.0

How reproducible:
Always

Steps to Reproduce:
1. Install MTC 1.4.0 using 72b089c1a985294b9161651ca8baef69646bdbc7901f9176349ef31c41e44840 sha to deploy log-reader pod.


Actual results:
The log-reader pod crashes

]$ oc get pods
NAME                                   READY     STATUS             RESTARTS   AGE
migration-log-reader-fb9587f5d-72mcv   0/2       CrashLoopBackOff   38         1h


$ oc logs migration-log-reader-fb9587f5d-72mcv  -c plain
standard_init_linux.go:178: exec user process caused "exec format error"


Expected results:
The log-reader pod should work without errors.

Additional info:

 It seems that the entry point has no shebang #!/bin/sh and it is causing the issue.

Comment 5 Sergio 2020-12-09 13:10:30 UTC
Verified in MTC 1.4.0

openshift-migration-rhel7-operator@sha256:8bdf3dcaa629d159f10f66272fc71415b771904e90732bf2d78a9c0b25afe084

    - name: MIG_LOG_READER_REPO
      value: openshift-migration-log-reader-rhel8@sha256
    - name: MIG_LOG_READER_TAG
      value: d186fffbaab94b78a84abc16364b32d016fdd728da40f71fe42e7d023ea44880


Moved to VERIFIED status.

Comment 7 errata-xmlrpc 2021-02-11 12:54:49 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 (Migration Toolkit for Containers (MTC) tool image release advisory 1.4.0), 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/RHBA-2020:5329