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

Inconsistent phase between CRE and ImageStream #169

Open
codificat opened this issue Jan 17, 2023 · 3 comments
Open

Inconsistent phase between CRE and ImageStream #169

codificat opened this issue Jan 17, 2023 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. wg/cre Issues or PRs related to the Custom Runtime Environment (fka Custom Notebook Image) ODH feature.

Comments

@codificat
Copy link
Member

Bug description

The Phase of a custom environment gets inconsistent between a CustomRuntimeEnvironment and associated ImageStream.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a CRE of type import
  2. Set the image to import to quay.io/repository/thoth-station/elyra-aidevsecops-training:v0.14.1. That image does not meet the requirements
  3. Let the associated PipelineRun complete

Actual behavior

$ oc get cre cre-1673945925026 -o jsonpath='{.status.phase}'
Succeeded

$ oc describe is cre-cre-1673945925026-import | grep phase=
			opendatahub.io/notebook-image-phase=Failed

Expected behavior

The phase information between CRE and ImageStream should match.

Environment information

meteor-operator v0.2.1

Additional context

Logs for the pipelinerun for the example image import above, where the import is marked as failed because it doesn't meet the expected requisites:

[validate : get-package-versions] Analyzing image:
[validate : get-package-versions]     Python:             3.8.6
[validate : get-package-versions]     Python packages:    boto3==1.18.42 matplotlib==3.4.3 tensorflow==2.6.0 thamos==1.18.1
[validate : get-package-versions]     R (optional):       Not available
[validate : get-package-versions]     RStudio (optional): Not available

[validate : minimal-requirements] Validating minimal requirements:
[validate : minimal-requirements]     Python >= 3.8.0 ✅
[validate : minimal-requirements]     'jupyterhub' package is present ❌
[validate : minimal-requirements]     'jupyterlab' package is present ❌
[validate : minimal-requirements]     $HOME is writeable ✅
[validate : minimal-requirements]     start-singleuser.sh is present  ❌
[validate : minimal-requirements]     start-singleuser.sh must execute 'jupyter'  ❌
[validate : minimal-requirements]     start-singleuser.sh must start 'labhub' environment  ⚠
[validate : minimal-requirements]     start-singleuser.sh must accept runtime args or pass a config file  ⚠

[update-imagestream : oc] Updating image stream:
[update-imagestream : oc]   Name:       cre-cre-1673945925026-import
[update-imagestream : oc]   Namespace:  aicoe-meteor
[update-imagestream : oc] 
[update-imagestream : oc]   Image tag:           v0.14.1
[update-imagestream : oc]   Phase:               Failed
[update-imagestream : oc]   Messages:            [{"severity":"error","message":"Missing 'jupyterhub' python package"},{"severity":"error","message":"Missing 'jupyterlab' python package"},{"severity":"error","message":"start-singleuser.sh script must be present in /opt/app-root/bin:/opt/app-root/src/.local/bin/:/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin and executable"},{"severity":"error","message":"start-singleuser.sh script took too long to call 'jupyter labhub'"}]
[update-imagestream : oc]   Visibility:          false
[update-imagestream : oc]   Software:            [{"name":"Python","version":"3.8.6"}]
[update-imagestream : oc]   Python dependencies: [{"name": "boto3", "version": "1.18.42", "visible": true}, {"name": "matplotlib", "version": "3.4.3", "visible": true}, {"name": "tensorflow", "version": "2.6.0", "visible": true}, {"name": "thamos", "version": "1.18.1", "visible": true}]
[update-imagestream : oc] 
[update-imagestream : oc] imagestream.image.openshift.io/cre-cre-1673945925026-import patched
[update-imagestream : oc] imagestream.image.openshift.io/cre-cre-1673945925026-import annotated
@codificat codificat added the kind/bug Categorizes issue or PR as related to a bug. label Jan 17, 2023
@VannTen
Copy link
Member

VannTen commented Jan 18, 2023

I think we're getting rid of the Phase in the CRE status ( #168 / #130 )

@codificat
Copy link
Member Author

Yes - but it's currently in use by the dashboard - both in the CRE status and ImageStream annotations

@goern
Copy link
Member

goern commented Jan 25, 2023

/wg cre

@sesheta sesheta added the wg/cre Issues or PRs related to the Custom Runtime Environment (fka Custom Notebook Image) ODH feature. label Jan 25, 2023
@goern goern added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. wg/cre Issues or PRs related to the Custom Runtime Environment (fka Custom Notebook Image) ODH feature.
Projects
Status: 🆕 New
Development

No branches or pull requests

4 participants