-
Bug
-
Resolution: Done
-
Blocker
-
RHOAI_2.9.0
-
1
-
False
-
-
False
-
No
-
c.f. release notes text on RHOAIENG-7070
-
Bug Fix
-
No
-
-
-
-
Dashboard - General-5
-
Important
-
Testable
When a Jupyter notebook (workbench via Jupyter app) is created, then after it is stopped and started again with a different set of environment variables configured via Dashboard, it's not possible to create a pod for it anymore:
Danger alert:FailedCreate
create Pod jupyter-nb-htpasswd-2dcluster-2dadmin-2duser-0 in StatefulSet jupyter-nb-htpasswd-2dcluster-2dadmin-2duser failed error: Pod "jupyter-nb-htpasswd-2dcluster-2dadmin-2duser-0" is invalid: spec.containers[0].env[2].valueFrom: Invalid value: "": may not be specified when `value` is not empty
Though, the added environment variable seem to be reflected:
env:
- name: NOTEBOOK_ARGS
value: |-
{redacted}
- name: JUPYTER_IMAGE
value: >-
image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/minimal-gpu:2024.1
- name: env1
value: '8888'
valueFrom:
configMapKeyRef:
key: env1
name: >-
jupyterhub-singleuser-profile-htpasswd-2dcluster-2dadmin-2duser-envs
- name: PIP_CERT
value: /etc/pki/tls/custom-certs/ca-bundle.crt
- name: REQUESTS_CA_BUNDLE
value: /etc/pki/tls/custom-certs/ca-bundle.crt
- name: SSL_CERT_FILE
value: /etc/pki/tls/custom-certs/ca-bundle.crt
- name: PIPELINES_SSL_SA_CERTS
value: /etc/pki/tls/custom-certs/ca-bundle.crt
kind: ConfigMap apiVersion: v1 metadata: name: jupyterhub-singleuser-profile-htpasswd-2dcluster-2dadmin-2duser-envs namespace: rhods-notebooks uid: 05f70d39-e087-4414-aff1-4000865e826c resourceVersion: '5319391' creationTimestamp: '2024-05-02T08:17:27Z' labels: opendatahub.io/dashboard: 'true' data: env1: value1
A workaround is to delete the relevant Notebook CR and then we can start a workbench via Jupyter app with a different set of environment variables again.
- is caused by
-
RHOAIENG-6455 Workbench created via Jupyter tile doesn't attach certs after restart
- Resolved
- is cloned by
-
RHOAIENG-7070 Jupyter notebook creation may fail when specified environment variable
- Review
- links to
-
RHBA-2024:131928 RHOAI 2.9.1 - Red Hat OpenShift AI
- mentioned on