Bug 2022866

Summary: Support containers with name:tag@digest
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: BuildAssignee: jawed <jkhelil>
Status: CLOSED ERRATA QA Contact: Jitendar Singh <jitsingh>
Severity: low Docs Contact:
Priority: high    
Version: 4.7CC: adam.kaplan, aos-bugs, cdaley, gferrazs, gmontero, jkhelil, nalin, pbhattac, pkumari, spandura
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-13 12:06:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1964327    
Bug Blocks: 2022867    

Comment 8 Priti Kumari 2021-12-08 12:34:49 UTC
verified on 4.9.0-0.nightly-2021-12-06-112420

$ oc version
Client Version: 4.4.0-0.ci-2020-02-26-215902
Server Version: 4.9.0-0.nightly-2021-12-06-112420
Kubernetes Version: v1.22.3+ffbb954

Buildconfig sample:

apiVersion: build.openshift.io/v1
kind: BuildConfig
  name: test-bc1
  namespace: default
  failedBuildsHistoryLimit: 5
  nodeSelector: null
  output: {}
  postCommit: {}
  resources: {}
  runPolicy: Serial
      uri: https://github.com/xiuwang/ruby-hello-world
    type: Git
        kind: DockerImage
        name: quay.io/centos7/ruby-27-centos7:latest@sha256:b1583a1cb09d80262c191d2272da238107682747ba9df93a15a61dbe234d0d5a
    type: Source
  successfulBuildsHistoryLimit: 5
1. Create the build config with above sample
2. start the build

$ oc start-build test-bc1
build.build.openshift.io/test-bc1-1 started

3. check the build logs

$ oc logs -f build/test-bc1-1
Cloning "https://github.com/xiuwang/ruby-hello-world" ...
        Commit: 10e2879d2ea4ba2b2d6815189c370e0ff77926f4 (Update Dockerfile)
        Author: XiuJuan Wang <xiuwang>
        Date:   Mon Jul 26 17:29:07 2021 +0800
time="2021-12-08T12:21:50Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
I1208 12:21:50.193894       1 defaults.go:102] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".
Trying to pull quay.io/centos7/ruby-27-centos7:latest...
Getting image source signatures
Copying blob sha256:4a360d865afe0998834a99c507739308e3ddf04f5f0dd305553e57da912ebff5
Copying blob sha256:9bcf6d16a3b5828fb00873b3518d78ddb8766ae67b1685aa7496d3430fc3e537
Copying blob sha256:13c9e8ae66f38758a5efc57d029a4f466efe3d3a308bdd6b450de72e94c8e595
Copying blob sha256:c61d16cfe03e7bfb4e7e312f09fb17a815be72096544133320058ee6ce55d0b2
Copying blob sha256:9b5138b633e072962f50ebfd6aa8f8f2cddd87e874ed24e22d66a0cea2c4ac4b
Copying blob sha256:87e82f164637561dc3b130723567cc0e1896f5b04245238bbcef260acac40238
Copying config sha256:fc427f3b09dc8d245ce9d75ed09ceec667d2ace6fd5ad2be08289c9a63140e8f
Writing manifest to image destination
Storing signatures
Generating dockerfile with builder image quay.io/centos7/ruby-27-centos7:latest@sha256:b1583a1cb09d80262c191d2272da238107682747ba9df93a15a61dbe234d0d5a
Adding transient rw bind mount for /run/secrets/rhsm
STEP 1/9: FROM quay.io/centos7/ruby-27-centos7:latest@sha256:b1583a1cb09d80262c191d2272da238107682747ba9df93a15a61dbe234d0d5a
STEP 2/9: LABEL "io.openshift.build.source-location"="https://github.com/xiuwang/ruby-hello-world"       "io.openshift.build.image"="quay.io/centos7/ruby-27-centos7:latest@sha256:b1583a1cb09d80262c191d2272da238107682747ba9df93a15a61dbe234d0d5a"       "io.openshift.build.commit.author"="XiuJuan Wang <xiuwang>"       "io.openshift.build.commit.date"="Mon Jul 26 17:29:07 2021 +0800"       "io.openshift.build.commit.id"="10e2879d2ea4ba2b2d6815189c370e0ff77926f4"       "io.openshift.build.commit.ref"="master"       "io.openshift.build.commit.message"="Update Dockerfile"
STEP 3/9: ENV RACK_ENV="production"     OPENSHIFT_BUILD_NAME="test-bc1-1"     OPENSHIFT_BUILD_NAMESPACE="default"     OPENSHIFT_BUILD_SOURCE="https://github.com/xiuwang/ruby-hello-world"     OPENSHIFT_BUILD_COMMIT="10e2879d2ea4ba2b2d6815189c370e0ff77926f4"
STEP 4/9: USER root
STEP 5/9: COPY upload/src /tmp/src
STEP 6/9: RUN chown -R 1001:0 /tmp/src
STEP 7/9: USER 1001
STEP 8/9: RUN /usr/libexec/s2i/assemble
---> Installing application source ...
---> Building your Ruby application from source ...
---> Running 'bundle install --retry 2 --deployment --without development:test' ...
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path './bundle'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development:test'`, and stop using this flag
Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/........
Fetching rake 13.0.3
Installing rake 13.0.3
Using bundler 2.2.24
Fetching zeitwerk 2.4.2
Fetching concurrent-ruby 1.1.8
Fetching ruby2_keywords 0.0.4
Fetching minitest 5.14.4
Installing ruby2_keywords 0.0.4
Installing zeitwerk 2.4.2
Installing minitest 5.14.4
Fetching mysql2 0.5.3
Installing mysql2 0.5.3 with native extensions
Fetching rack 2.2.3
Installing concurrent-ruby 1.1.8
Installing rack 2.2.3
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching webrick 1.7.0
Fetching rack-protection 2.1.0
Fetching mustermann 1.1.1
Fetching i18n 1.8.9
Installing rack-protection 2.1.0
Installing mustermann 1.1.1
Installing webrick 1.7.0
Installing i18n 1.8.9
Fetching tzinfo 2.0.4
Fetching sinatra 2.1.0
Installing tzinfo 2.0.4
Installing sinatra 2.1.0
Fetching activesupport
Installing activesupport
Fetching activemodel
Installing activemodel
Fetching activerecord
Installing activerecord
Fetching sinatra-activerecord 2.0.22
Installing sinatra-activerecord 2.0.22
Bundle complete! 7 Gemfile dependencies, 19 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./bundle`
---> Cleaning up unused ruby gems ...
Running `bundle clean --verbose` with bundler 2.2.24
Frozen, using resolution from the lockfile
STEP 9/9: CMD /usr/libexec/s2i/run
COMMIT temp.builder.openshift.io/default/test-bc1-1:856aa514
Getting image source signatures
Copying blob sha256:53498d66ad83a29fcd7c7bcf4abbcc0def4fc912772aa8a4483b51e232309aee
Copying blob sha256:acf85c48d8b15752fb3be66652bcc80043866d7120e3ccb69a40b5a9f5c3eb18
Copying blob sha256:cc95744bb011373e644f84037707e14613acef08ccb0d5bc705150270ac0d047
Copying blob sha256:3208f2162462f8be5773ca8c29d9f30d2cc9c10c9c7e4e5157cccc0967539d83
Copying blob sha256:9f6fbe227509f09aadd8056dc8e1a24ca2f5116708785c17a7a91601bb6ae066
Copying blob sha256:6d799267c86038f8e26f3a5b8bccb290880797c7885b44db55cbd29cd30146b0
Copying blob sha256:e380aa850556d9c1e77396f96e1aff8cb65b6989d4df57f7e9c691c16f615272
Copying config sha256:d05e6e6a825e0e3f9a2d7e3ecb900f921254286d1cf9fa952b39906be53330b3
Writing manifest to image destination
Storing signatures
--> d05e6e6a825
Successfully tagged temp.builder.openshift.io/default/test-bc1-1:856aa514
Build complete, no image push requested

Comment 10 errata-xmlrpc 2021-12-13 12:06:24 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 (OpenShift Container Platform 4.9.11 bug fix 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.


Comment 11 Red Hat Bugzilla 2023-09-15 01:17:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days