Bug 2023942 - ocp new-app fails on RH 4.9 when running on RHEL 7 (IBM Cloud)
Summary: ocp new-app fails on RH 4.9 when running on RHEL 7 (IBM Cloud)
Keywords:
Status: CLOSED DUPLICATE of bug 1979966
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 4.9
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Adam Kaplan
QA Contact: Jitendar Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-16 19:34 UTC by Steve halverson
Modified: 2021-11-16 23:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 23:31:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Steve halverson 2021-11-16 19:34:39 UTC
Description of problem:

os-release:
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
kernel: 3.10.0-1160.45.1.el7.x86_64
OpenShift Server Version: 4.9.5


This is for IBM cloud.  oc new-app is failing for OpenShift 4.9 when running on RHEL 7. Indicates invalid options ...

time="2021-11-15T19:14:40Z" level=info msg="metacopy option not supported on this kernelmetacopy=on"
time="2021-11-15T19:14:40Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: failed to mount overlay: invalid argument"
I1115 19:14:40.076127       1 defaults.go:102] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].


The  mountopt=metacopy=on   seems to be incompatible when running on RHEL 7

Was able to capture the yaml for the build job, hack it, re-submit the pod manually and have the build work by adding the --storage-driver=overlay option to the openshift-sti-build container

  - args:
    - openshift-sti-build
    - --storage-driver=overlay
    - --loglevel=0


Version-Release number of selected component (if applicable):
OpenShift 4.9

How reproducible:
Always fails

Steps to Reproduce:
1. oc new-app -l app=pvg-nodejs --name pvg-nodejs  https://github.com/openshift/nodejs-ex.git
2. build job errors
3. logs from build job yield:  

vagrant@verify-cluster:~/armada-ansible$ oc logs pvg-nodejs-1-build
time="2021-11-15T19:14:40Z" level=info msg="metacopy option not supported on this kernelmetacopy=on"
time="2021-11-15T19:14:40Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: failed to mount overlay: invalid argument"
I1115 19:14:40.076127       1 defaults.go:102] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".
Getting image source signatures
Copying blob sha256:63f9f4c31162a6a5dacd999a0dc65007e15b2ca6b2d9360a1234c27de12e7f38
Copying blob sha256:d49355ce848e2c86326ad8d7c3e4905e2883c89e1f6b79553427f1acf21ea7d1
Copying blob sha256:ce3c6836540f978b55c511d236429e26b7a45f5a6f1204ab8d4378afaf77332f
Copying blob sha256:236ea3424c2d1a06de825b1bb1967351c30915621e0f650756f402d7cbd27216
Copying config sha256:e7672e73aa234fab0cbfbaf539abf6714c91827eb8923cdd1457f05d65939649
Writing manifest to image destination
Storing signatures
Generating dockerfile with builder image image-registry.openshift-image-registry.svc:5000/openshift/nodejs@sha256:1f5fca1a02b22d32e28abf8f5b966ef5ad4e915ab4e1610d7885b290300dafda
Adding transient rw bind mount for /run/secrets/rhsm
Adding transient rw bind mount for /run/secrets/etc-pki-entitlement
Adding transient rw bind mount for /run/secrets/redhat.repo
STEP 1: FROM image-registry.openshift-image-registry.svc:5000/openshift/nodejs@sha256:1f5fca1a02b22d32e28abf8f5b966ef5ad4e915ab4e1610d7885b290300dafda
time="2021-11-15T19:15:32Z" level=error msg="error unmounting /var/lib/containers/storage/overlay/cc89cf6dab21a44ba722f1753c5aec849d6e6b753b6b32792d887076efc54996/merged: invalid argument"
error: build error: error mounting new container: error mounting build container "a432f63ab46daef1ebddb837ff405c6ca7852ac2470d93336761a5f711a8f5a4": error creating overlay mount to /var/lib/containers/storage/overlay/cc89cf6dab21a44ba722f1753c5aec849d6e6b753b6b32792d887076efc54996/merged, mount_data="metacopy=on,lowerdir=/var/lib/containers/storage/overlay/l/SDXDLK7IGRBBZ7KBHJIPWKKMDB:/var/lib/containers/storage/overlay/l/EWN5Y4XLI6IRQEHXPRKZVWYGRZ:/var/lib/containers/storage/overlay/l/LHUU3LV6ILIKDNMIGNUQNDZ2CZ:/var/lib/containers/storage/overlay/l/SMFNH6KFJ3ERA6ZR73VJFJYWNU,upperdir=/var/lib/containers/storage/overlay/cc89cf6dab21a44ba722f1753c5aec849d6e6b753b6b32792d887076efc54996/diff,workdir=/var/lib/containers/storage/overlay/cc89cf6dab21a44ba722f1753c5aec849d6e6b753b6b32792d887076efc54996/work": invalid argument


Actual results:
Build fails

Expected results:
Build to be successful

Additional info:

Comment 1 Adam Kaplan 2021-11-16 23:31:16 UTC
Marking this as a duplicate of Bug #1979966. We are observing this behavior as well in our CI environment.

*** This bug has been marked as a duplicate of bug 1979966 ***


Note You need to log in before you can comment on or make changes to this bug.