Uploaded image for project: 'Red Hat OpenShift AI Requests for Enhancement'
  1. Red Hat OpenShift AI Requests for Enhancement
  2. RHOAIRFE-60

Create a Workbench from a ImageStream that has been built is not possible.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Dashboard
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      Case following this issue:
      https://access.redhat.com/support/cases/#/case/03754491

      Customers have to rebuild the workbench Images to embed some specific elements (Certificates, Internal packages...).

      They do that by running BuildConfig at the moment, the thing is that a Pushed Image Stream has a "null" value into its default ImageStreamTag, and it looks like the GUI tries to fetch informations from this field when you create and workbench. It the tag field contains the null value, the button "create" is greyed and it is not possible to launch a workbench from a Image that results from a BuildConfig build.

      How to reproduce:

      Create a BuildConfig that builds a "copy" of a workbench:

      kind: Build
      apiVersion: build.openshift.io/v1
      metadata:
        annotations:
          openshift.io/build-config.name: imagetest
          openshift.io/build.number: '1'
          openshift.io/build.pod-name: imagetest-1-build
        name: imagetest-1
        namespace: redhat-ods-applications
        labels:
          buildconfig: imagetest
          openshift.io/build-config.name: imagetest
          openshift.io/build.start-policy: Serial
      spec:
        serviceAccount: builder
        source:
          type: Dockerfile
          dockerfile: |-
            FROM scratch
            RUN echo "totitit"
        strategy:
          type: Docker
          dockerStrategy:
            from:
              kind: DockerImage
              name: 'quay.io/modh/odh-minimal-notebook-container@sha256:7c39f8c0c5c679245f6761d37c10451f1c7d0223d98e2ccc386f7e2425ba2ea8'
        output:
          to:
            kind: ImageStreamTag
            namespace: redhat-ods-applications
            name: 'testimage:latest'
      

      Create an ImageStream to store the result of the build:

      apiVersion: image.openshift.io/v1
      kind: ImageStream
      metadata:
        name: imagetest
        namespace: redhat-ods-applications
      

      When the Build is finished, add the proper labels to the image is usable in the RHOAI GUI

          app.kubernetes.io/part-of: workbenches
          app.opendatahub.io/workbenches: 'true'
          component.opendatahub.io/name: notebooks
          opendatahub.io/component: 'true'
          opendatahub.io/notebook-image: 'true'
      

      Try to create a workbench using this image, the button is greyed, because tag in the imagestreamtag is "null":

      kind: ImageStreamTag
      apiVersion: image.openshift.io/v1
      metadata:
        name: 'testimage:latest'
        namespace: redhat-ods-applications
        uid: f5f81765-6598-46c3-820c-0ed5bbcdafd5
        resourceVersion: '589457'
        creationTimestamp: '2024-03-07T08:57:25Z'
      tag: null
      

            jdemoss@redhat.com Jeff DeMoss
            vbroniko@redhat.com Vincent Bronikowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: