Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image stream not found during build process - base nginx image #160

Closed
varodrig opened this issue Apr 10, 2021 · 8 comments · Fixed by #161
Closed

Image stream not found during build process - base nginx image #160

varodrig opened this issue Apr 10, 2021 · 8 comments · Fixed by #161

Comments

@varodrig
Copy link

Build process failed due to not finding image stream.

image

File: basic-nginx/.openshift/builds/template.yml
Image information:

  • description: Image stream tag for the image you'd like to use to build the application
    name: IMAGE_STREAM_TAG_NAME
    required: true
    value: nginx-118:latest

Available tag images in a OCP 4.6:

image

I tried the images existent in the cluster and none of the images worked. The one that worked, was this image stream provided by Francisco Meneses:

  • name: 1.14-rscl
    annotations:
    description: >-
    Build and serve static content via Nginx HTTP server and a reverse
    proxy (nginx) on RHEL 8. For more information about using this builder
    image, including OpenShift considerations, see
    https://github.com/sclorg/nginx-container/blob/master/1.14/README.md.
    iconClass: icon-nginx
    openshift.io/display-name: Nginx HTTP server and a reverse proxy 1.14 (RHEL 8)
    openshift.io/provider-display-name: 'Red Hat, Inc.'
    sampleRepo: 'https://github.com/sclorg/nginx-ex.git'
    supports: nginx
    tags: 'builder,nginx'
    version: '1.14'
    from:
    kind: DockerImage
    name: 'registry.access.redhat.com/rhscl/nginx-114-rhel7:latest'
    generation: 4
    importPolicy: {}
    referencePolicy:
    type: Local
@sabre1041
Copy link
Contributor

OpenShift 4 currently defines the following ImageStreams

apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
  annotations:
    openshift.io/display-name: Nginx HTTP server and a reverse proxy (nginx)
    openshift.io/image.dockerRepositoryCheck: "2021-04-09T23:26:34Z"
    samples.operator.openshift.io/version: 4.7.4
  creationTimestamp: "2021-04-09T23:25:10Z"
  generation: 2
  labels:
    samples.operator.openshift.io/managed: "true"
  managedFields:
  - apiVersion: image.openshift.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:openshift.io/display-name: {}
          f:samples.operator.openshift.io/version: {}
        f:labels:
          .: {}
          f:samples.operator.openshift.io/managed: {}
      f:spec:
        f:tags:
          .: {}
          k:{"name":"1.14-el8"}:
            .: {}
            f:annotations:
              .: {}
              f:description: {}
              f:iconClass: {}
              f:openshift.io/display-name: {}
              f:openshift.io/provider-display-name: {}
              f:sampleRepo: {}
              f:supports: {}
              f:tags: {}
              f:version: {}
            f:from:
              .: {}
              f:kind: {}
              f:name: {}
            f:generation: {}
            f:importPolicy: {}
            f:name: {}
            f:referencePolicy:
              .: {}
              f:type: {}
          k:{"name":"1.16"}:
            .: {}
            f:annotations:
              .: {}
              f:description: {}
              f:iconClass: {}
              f:openshift.io/display-name: {}
              f:openshift.io/provider-display-name: {}
              f:sampleRepo: {}
              f:supports: {}
              f:tags: {}
              f:version: {}
            f:from:
              .: {}
              f:kind: {}
              f:name: {}
            f:generation: {}
            f:importPolicy: {}
            f:name: {}
            f:referencePolicy:
              .: {}
              f:type: {}
          k:{"name":"1.16-el7"}:
            .: {}
            f:annotations:
              .: {}
              f:description: {}
              f:iconClass: {}
              f:openshift.io/display-name: {}
              f:openshift.io/provider-display-name: {}
              f:sampleRepo: {}
              f:supports: {}
              f:tags: {}
              f:version: {}
            f:from:
              .: {}
              f:kind: {}
              f:name: {}
            f:generation: {}
            f:importPolicy: {}
            f:name: {}
            f:referencePolicy:
              .: {}
              f:type: {}
          k:{"name":"1.16-el8"}:
            .: {}
            f:annotations:
              .: {}
              f:description: {}
              f:iconClass: {}
              f:openshift.io/display-name: {}
              f:openshift.io/provider-display-name: {}
              f:sampleRepo: {}
              f:supports: {}
              f:tags: {}
              f:version: {}
            f:from:
              .: {}
              f:kind: {}
              f:name: {}
            f:generation: {}
            f:importPolicy: {}
            f:name: {}
            f:referencePolicy:
              .: {}
              f:type: {}
          k:{"name":"1.18-ubi7"}:
            .: {}
            f:annotations:
              .: {}
              f:description: {}
              f:iconClass: {}
              f:openshift.io/display-name: {}
              f:openshift.io/provider-display-name: {}
              f:sampleRepo: {}
              f:supports: {}
              f:tags: {}
              f:version: {}
            f:from:
              .: {}
              f:kind: {}
              f:name: {}
            f:generation: {}
            f:importPolicy: {}
            f:name: {}
            f:referencePolicy:
              .: {}
              f:type: {}
          k:{"name":"1.18-ubi8"}:
            .: {}
            f:annotations:
              .: {}
              f:description: {}
              f:iconClass: {}
              f:openshift.io/display-name: {}
              f:openshift.io/provider-display-name: {}
              f:sampleRepo: {}
              f:supports: {}
              f:tags: {}
              f:version: {}
            f:from:
              .: {}
              f:kind: {}
              f:name: {}
            f:generation: {}
            f:importPolicy: {}
            f:name: {}
            f:referencePolicy:
              .: {}
              f:type: {}
          k:{"name":"latest"}:
            .: {}
            f:annotations:
              .: {}
              f:description: {}
              f:iconClass: {}
              f:openshift.io/display-name: {}
              f:openshift.io/provider-display-name: {}
              f:sampleRepo: {}
              f:supports: {}
              f:tags: {}
            f:from:
              .: {}
              f:kind: {}
              f:name: {}
            f:generation: {}
            f:importPolicy: {}
            f:name: {}
            f:referencePolicy:
              .: {}
              f:type: {}
    manager: cluster-samples-operator
    operation: Update
    time: "2021-04-09T23:25:10Z"
  name: nginx
  namespace: openshift
  resourceVersion: "22717"
  uid: c843e7dc-434c-43ee-a9da-bbe003ad1bd7
spec:
  lookupPolicy:
    local: false
  tags:
  - annotations:
      description: Build and serve static content via Nginx HTTP server and a reverse proxy (nginx) on RHEL 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.14/README.md.
      iconClass: icon-nginx
      openshift.io/display-name: Nginx HTTP server and a reverse proxy 1.14 (RHEL 8)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nginx-ex.git
      supports: nginx
      tags: builder,nginx
      version: "1.14"
    from:
      kind: DockerImage
      name: registry.redhat.io/rhel8/nginx-114:latest
    generation: 2
    importPolicy: {}
    name: 1.14-el8
    referencePolicy:
      type: Local
  - annotations:
      description: Build and serve static content via Nginx HTTP server and a reverse proxy (nginx) on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.16/README.md.
      iconClass: icon-nginx
      openshift.io/display-name: Nginx HTTP server and a reverse proxy 1.16
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nginx-ex.git
      supports: nginx
      tags: builder,nginx,hidden
      version: "1.16"
    from:
      kind: DockerImage
      name: registry.redhat.io/rhscl/nginx-116-rhel7:latest
    generation: 2
    importPolicy: {}
    name: "1.16"
    referencePolicy:
      type: Local
  - annotations:
      description: Build and serve static content via Nginx HTTP server and a reverse proxy (nginx) on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.16/README.md.
      iconClass: icon-nginx
      openshift.io/display-name: Nginx HTTP server and a reverse proxy 1.16 (RHEL 7)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nginx-ex.git
      supports: nginx
      tags: builder,nginx
      version: "1.16"
    from:
      kind: DockerImage
      name: registry.redhat.io/rhscl/nginx-116-rhel7:latest
    generation: 2
    importPolicy: {}
    name: 1.16-el7
    referencePolicy:
      type: Local
  - annotations:
      description: Build and serve static content via Nginx HTTP server and a reverse proxy (nginx) on RHEL 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.16/README.md.
      iconClass: icon-nginx
      openshift.io/display-name: Nginx HTTP server and a reverse proxy 1.16 (RHEL 8)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nginx-ex.git
      supports: nginx
      tags: builder,nginx
      version: "1.16"
    from:
      kind: DockerImage
      name: registry.redhat.io/rhel8/nginx-116:latest
    generation: 2
    importPolicy: {}
    name: 1.16-el8
    referencePolicy:
      type: Local
  - annotations:
      description: Build and serve static content via Nginx HTTP server and a reverse proxy (nginx) on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.18/README.md.
      iconClass: icon-nginx
      openshift.io/display-name: Nginx HTTP server and a reverse proxy 1.18 (UBI 7)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nginx-ex.git
      supports: nginx
      tags: builder,nginx
      version: "1.18"
    from:
      kind: DockerImage
      name: registry.redhat.io/ubi7/nginx-118:latest
    generation: 2
    importPolicy: {}
    name: 1.18-ubi7
    referencePolicy:
      type: Local
  - annotations:
      description: Build and serve static content via Nginx HTTP server and a reverse proxy (nginx) on RHEL 8. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.18/README.md.
      iconClass: icon-nginx
      openshift.io/display-name: Nginx HTTP server and a reverse proxy 1.18 (UBI 8)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nginx-ex.git
      supports: nginx
      tags: builder,nginx
      version: "1.18"
    from:
      kind: DockerImage
      name: registry.redhat.io/ubi8/nginx-118:latest
    generation: 2
    importPolicy: {}
    name: 1.18-ubi8
    referencePolicy:
      type: Local
  - annotations:
      description: |-
        Build and serve static content via Nginx HTTP server and a reverse proxy (nginx) on RHEL. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/nginx-container/blob/master/1.18/README.md.

        WARNING: By selecting this tag, your application will automatically update to use the latest version of Nginx available on OpenShift, including major version updates.
      iconClass: icon-nginx
      openshift.io/display-name: Nginx HTTP server and a reverse proxy (Latest)
      openshift.io/provider-display-name: Red Hat, Inc.
      sampleRepo: https://github.com/sclorg/nginx-ex.git
      supports: nginx
      tags: builder,nginx
    from:
      kind: ImageStreamTag
      name: 1.18-ubi8
    generation: 1
    importPolicy: {}
    name: latest
    referencePolicy:
      type: Local
status:
  dockerImageRepository: image-registry.openshift-image-registry.svc:5000/openshift/nginx
  tags:
  - items:
    - created: "2021-04-09T23:26:34Z"
      dockerImageReference: registry.redhat.io/rhel8/nginx-114@sha256:ec21e4b0be1372bd96ed79345c59e19effc49b79eb6450dc0e121278b7372497
      generation: 2
      image: sha256:ec21e4b0be1372bd96ed79345c59e19effc49b79eb6450dc0e121278b7372497
    tag: 1.14-el8
  - items:
    - created: "2021-04-09T23:26:34Z"
      dockerImageReference: registry.redhat.io/rhscl/nginx-116-rhel7@sha256:9c781fce5121b97cd0248f1ad19bdf037c894e206386dd60d4336fc0766c43c9
      generation: 2
      image: sha256:9c781fce5121b97cd0248f1ad19bdf037c894e206386dd60d4336fc0766c43c9
    tag: "1.16"
  - items:
    - created: "2021-04-09T23:26:34Z"
      dockerImageReference: registry.redhat.io/rhscl/nginx-116-rhel7@sha256:9c781fce5121b97cd0248f1ad19bdf037c894e206386dd60d4336fc0766c43c9
      generation: 2
      image: sha256:9c781fce5121b97cd0248f1ad19bdf037c894e206386dd60d4336fc0766c43c9
    tag: 1.16-el7
  - items:
    - created: "2021-04-09T23:26:34Z"
      dockerImageReference: registry.redhat.io/rhel8/nginx-116@sha256:398836a30b2f43a6e73e52370f21450f7368366aee1552750ae3f6c4abdde775
      generation: 2
      image: sha256:398836a30b2f43a6e73e52370f21450f7368366aee1552750ae3f6c4abdde775
    tag: 1.16-el8
  - items:
    - created: "2021-04-09T23:26:34Z"
      dockerImageReference: registry.redhat.io/ubi7/nginx-118@sha256:6ee6ce4766018796d3e1a6e8af1b58ff3cb45a0e83c97e66969a3c8859d67fc7
      generation: 2
      image: sha256:6ee6ce4766018796d3e1a6e8af1b58ff3cb45a0e83c97e66969a3c8859d67fc7
    tag: 1.18-ubi7
  - items:
    - created: "2021-04-09T23:26:34Z"
      dockerImageReference: registry.redhat.io/ubi8/nginx-118@sha256:b79f4043e1cb58184684653fcdf626dda8ed860cb77df7d7ba12769322b6b5ed
      generation: 2
      image: sha256:b79f4043e1cb58184684653fcdf626dda8ed860cb77df7d7ba12769322b6b5ed
    tag: 1.18-ubi8
  - items:
    - created: "2021-04-09T23:26:34Z"
      dockerImageReference: registry.redhat.io/ubi8/nginx-118@sha256:b79f4043e1cb58184684653fcdf626dda8ed860cb77df7d7ba12769322b6b5ed
      generation: 2
      image: sha256:b79f4043e1cb58184684653fcdf626dda8ed860cb77df7d7ba12769322b6b5ed
    tag: latest
``

@varodrig
Copy link
Author

Exactly!

@pabrahamsson
Copy link
Contributor

@varodrig I'm want to make sure I understand the issue(s).

  1. The default nginx imageStreamTag no longer exist (nginx-118:latest)?
  2. None of the other installed nginx images work, but a 3rd party nginx image does?

If the above is correct, can you please provide the error(s) you're receiving with the OCP4 provided nginx images?

@varodrig
Copy link
Author

@pabrahamsson that's exactly the problem.

@varodrig
Copy link
Author

any news on this? is there something I can help with?

@springdo
Copy link
Contributor

This has happened before - when we were testing pelorus stuff on a newer cluster that didn't have the images as expected .... #148

@garethahealy
Copy link
Contributor

@varodrig ; if you want to raise a PR for a suggested fix, go for it. we'll happily review/merge.

@varodrig
Copy link
Author

varodrig commented Apr 20, 2021

the PR looks good to me. According to Francisco Meneses was already tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants