Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-16656

Devfile import fails on master branch

XMLWordPrintable

    • No
    • ODC Sprint 243
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      On the openshift/console master branch, a devfile import fails by default. I have noticed that when a repository url has a .git extension, the pod fails due to a bug where the container image is trying to pull from dockerhub rather than the openshift image registry. For example, the container image is Image:          devfile-sample-code-with-quarkus.git:latest but the image from the imagestreamtag is image-registry.openshift-image-registry.svc:5000/maysun/devfile-sample-code-with-quarkus.git@sha256:e6aa9d29be48b33024eb271665d11a7557c9f140c9bd58aeb19fe4570fffb421.
      
      A pod describe shows the expected error "Failed to pull image "devfile-sample-code-with-quarkus.git:latest": rpc error: code = Unknown desc = reading manifest latest in docker.io/library/devfile-sample-code-with-quarkus.git: requested access to the resource is denied".
      
      However, during import, if you were to remove the .git extention from the repository link, the import is successful.
      
      I only see this on the master branch and it seems to be fine on my local crc which is on OpenShift version: 4.13.0

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

      4.13.z

      How reproducible:

      Always

      Steps to Reproduce:

      1. Build from openshift/console master
      2. Import Devfile sample
      3. If repo has a .git extension, pod fails with the wrong image
      

      Actual results:

      POD describe:
      
      Failed to pull image "devfile-sample-code-with-quarkus.git:latest": rpc error: code = Unknown desc = reading manifest latest in docker.io/library/devfile-sample-code-with-quarkus.git: requested access to the resource is denied

      Expected results:

      Successful running pod

      Additional info:

      Fine on Openshift 4.13.0, tested on local crc:
      
      $ crc version
      WARN A new version (2.23.0) has been published on https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.23.0/crc-macos-installer.pkg 
      CRC version: 2.20.0+f3a947
      OpenShift version: 4.13.0
      Podman version: 4.4.4

              rh-ee-lprabhu Lokananda Prabhu
              mfaisal2 Maysun Faisal
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: