Bug 1877603 - operator registry downstream image build failure
Summary: operator registry downstream image build failure
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.6
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.6.0
Assignee: Evan Cordell
QA Contact: Jian Zhang
Depends On:
TreeView+ depends on / blocked
Reported: 2020-09-10 00:29 UTC by Kevin Rizza
Modified: 2020-09-10 06:33 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github operator-framework operator-registry pull 437 None open Bug 1877603: add workdir permissions back 2020-09-10 00:30:45 UTC

Description Kevin Rizza 2020-09-10 00:29:57 UTC
Downstream build of operator-registry image is failing

rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:235: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory"
2020-09-09 23:44:31,968 - atomic_reactor.plugins.imagebuilder - INFO -
running 'rm -f '/etc/yum.repos.d/unsigned-b61c5.repo'' failed with exit code 126
2020-09-09 23:44:33,853 - atomic_reactor.plugin - ERROR - Build step plugin imagebuilder failed: image build failed (rc=1): running 'rm -f '/etc/yum.repos.d/unsigned-b61c5.repo'' failed with exit code 126

Comment 3 Jian Zhang 2020-09-10 06:33:31 UTC
[root@preserve-olm-env operator-registry]# git branch
* master
[root@preserve-olm-env operator-registry]# git log
commit cccf27a2efe982269cdeec69a7b4643c2824a614
Merge: e92049a f1a3c75
Author: OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>
Date:   Wed Sep 9 20:36:14 2020 -0400

    Merge pull request #437 from ecordell/fix-workdir

It works well, verify it.
[root@preserve-olm-env operator-registry]# docker build -t quay.io/olmqe/operator-registry:v1 . 
Sending build context to Docker daemon  789.3MB
Step 1/22 : FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-openshift-4.6-clang as builder
rhel-8-golang-openshift-4.6-clang: Pulling from ocp/builder
77c58f19bd6e: Pull complete 
47db82df7f3f: Pull complete 
fa172450bf3a: Pull complete 
8e7469d151d3: Pull complete 
Digest: sha256:651519861e108295d76f4791874146e051d08282cc3899cd7d7e148ab5b11198
Status: Downloaded newer image for registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-openshift-4.6-clang
 ---> acc230bbf2b6
Step 2/22 : ENV GOPATH /go
 ---> Running in 3a49a5794334
Removing intermediate container 3a49a5794334
 ---> e55c661f0e1c
Step 3/22 : ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
 ---> Running in 883ffed047f9
Removing intermediate container 883ffed047f9
 ---> 00e4d004c111
Step 4/22 : WORKDIR /src
 ---> Running in 4179f82bf9f1
Removing intermediate container 4179f82bf9f1
 ---> 501412824955
Step 5/22 : COPY vendor vendor
 ---> 5dde04d03e95
Step 6/22 : COPY cmd cmd
 ---> fbd8547b14f5
Step 7/22 : COPY pkg pkg
 ---> 0e8259cdaec5
Step 8/22 : COPY Makefile go.mod go.sum ./
 ---> a17827e280ce
Step 9/22 : RUN make build cross
 ---> Running in a823f86fdc98
GOFLAGS="-mod=vendor" go build  -tags "json1" -o bin/appregistry-server ./cmd/appregistry-server
GOFLAGS="-mod=vendor" go build  -tags "json1" -o bin/configmap-server ./cmd/configmap-server
GOFLAGS="-mod=vendor" go build  -tags "json1" -o bin/initializer ./cmd/initializer
GOFLAGS="-mod=vendor" go build  -tags "json1" -o bin/registry-server ./cmd/registry-server
GOFLAGS="-mod=vendor" go build -ldflags "-X 'github.com/operator-framework/operator-registry/cmd/opm/version.gitCommit=14acf96abf0970c46e31f54de3358e7a25444195' -X 'github.com/operator-framework/operator-registry/cmd/opm/version.opmVersion=14acf96' -X 'github.com/operator-framework/operator-registry/cmd/opm/version.buildDate=2020-09-10T06:04:07Z'"  -tags "json1" -o bin/opm ./cmd/opm
GOOS=darwin CC=o64-clang CXX=o64-clang++ CGO_ENABLED=1 GOFLAGS="-mod=vendor" go build -ldflags "-X 'github.com/operator-framework/operator-registry/cmd/opm/version.gitCommit=14acf96abf0970c46e31f54de3358e7a25444195' -X 'github.com/operator-framework/operator-registry/cmd/opm/version.opmVersion=14acf96' -X 'github.com/operator-framework/operator-registry/cmd/opm/version.buildDate=2020-09-10T06:04:07Z'" -tags "json1" -o "bin/darwin-amd64-opm" --ldflags "-extld=o64-clang" ./cmd/opm
GOOS=windows CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_ENABLED=1 GOFLAGS="-mod=vendor" go build -ldflags "-X 'github.com/operator-framework/operator-registry/cmd/opm/version.gitCommit=14acf96abf0970c46e31f54de3358e7a25444195' -X 'github.com/operator-framework/operator-registry/cmd/opm/version.opmVersion=14acf96' -X 'github.com/operator-framework/operator-registry/cmd/opm/version.buildDate=2020-09-10T06:04:07Z'" -tags "json1"  -o "bin/windows-amd64-opm" --ldflags "-extld=x86_64-w64-mingw32-gcc" ./cmd/opm
Removing intermediate container a823f86fdc98
 ---> bcdf74450b53
Step 10/22 : RUN CGO_ENABLED=0 go build -mod=vendor -tags netgo -ldflags "-w" ./vendor/github.com/grpc-ecosystem/grpc-health-probe/...
 ---> Running in c338b6c9d779
Removing intermediate container c338b6c9d779
 ---> 65f87a89713e
Step 11/22 : FROM registry.svc.ci.openshift.org/ocp/4.6:base
base: Pulling from ocp/4.6
77c58f19bd6e: Already exists 
47db82df7f3f: Already exists 
5bae0134722c: Pull complete 
22cbc6ff4c1f: Pull complete 
6e9dcd2984f6: Pull complete 
Digest: sha256:2a9204ed0ed258ca4ab731839d72bb02e767b9462a3e8ee6c38cfd8c164af48d
Status: Downloaded newer image for registry.svc.ci.openshift.org/ocp/4.6:base
 ---> bb4c863efb39
Step 12/22 : COPY --from=builder /src/bin/* /tmp/bin/
 ---> e7834c5281eb
Step 13/22 : COPY --from=builder /src/grpc-health-probe /bin/grpc_health_probe
 ---> 7f6eea041d32
Step 14/22 : RUN cp -avr /tmp/bin/. /bin/
 ---> Running in d674c8451467
'/tmp/bin/./appregistry-server' -> '/bin/./appregistry-server'
'/tmp/bin/./configmap-server' -> '/bin/./configmap-server'
'/tmp/bin/./darwin-amd64-opm' -> '/bin/./darwin-amd64-opm'
'/tmp/bin/./initializer' -> '/bin/./initializer'
'/tmp/bin/./opm' -> '/bin/./opm'
'/tmp/bin/./registry-server' -> '/bin/./registry-server'
'/tmp/bin/./windows-amd64-opm' -> '/bin/./windows-amd64-opm'
Removing intermediate container d674c8451467
 ---> 5967c8a28716
Step 15/22 : RUN mkdir /registry
 ---> Running in af35dda9043a
Removing intermediate container af35dda9043a
 ---> b74b9e1d7ba9
Step 16/22 : RUN chgrp -R 0 /registry &&     chmod -R g+rwx /registry
 ---> Running in 02da4f8dcf2c
Removing intermediate container 02da4f8dcf2c
 ---> a2846299a12a
Step 17/22 : WORKDIR /registry
 ---> Running in 77d7ce7f0d3e
Removing intermediate container 77d7ce7f0d3e
 ---> af1b686be918
Step 18/22 : USER 1001
 ---> Running in 9dc6503cdff1
Removing intermediate container 9dc6503cdff1
 ---> 50d7f7bee242
Step 19/22 : EXPOSE 50051
 ---> Running in 16df2af27454
Removing intermediate container 16df2af27454
 ---> 817ce597a431
Step 20/22 : ENTRYPOINT ["/bin/registry-server"]
 ---> Running in a026fa082c88
Removing intermediate container a026fa082c88
 ---> 21d0ba782ce2
Step 21/22 : CMD ["--database", "/bundles.db"]
 ---> Running in 26883054f757
Removing intermediate container 26883054f757
 ---> a2fed95930d9
Step 22/22 : LABEL io.k8s.display-name="OpenShift Operator Registry"       io.k8s.description="This is a component of OpenShift Operator Lifecycle Manager and is the base for operator catalog API containers."       maintainer="Odin Team <aos-odin@redhat.com>"       summary="Operator Registry runs in a Kubernetes or OpenShift cluster to provide operator catalog data to Operator Lifecycle Manager."
 ---> Running in 21ba79a141f6
Removing intermediate container 21ba79a141f6
 ---> f93bbbbdc006
Successfully built f93bbbbdc006
Successfully tagged quay.io/olmqe/operator-registry:v1

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