question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

default runtime images can not be removed

See original GitHub issue

Currently when you attempt to remove one of the default runtime images, say Pandas 1.1.1, you get the error:

Removal of instance 'pandas' from the runtime-images schemaspace is not permitted!

Screen Shot 2022-02-14 at 17 51 56

The JupyterLab logs show:

[E 2022-02-14 07:18:24.837 ElyraApp] Removal of instance 'pandas' from the runtime-images schemaspace is not permitted!  Resource conflict at '/opt/conda/share/jupyter/metadata/runtime-images/pandas.json'                                                                                                                                                  
[W 2022-02-14 07:18:24.837 ServerApp] 403 DELETE /notebook/kf-development/elyra-3-6-0/elyra/metadata/runtime-images/pandas?1644823104409 (127.0.0.6): Removal of instance 'pandas' from the runtime-images schemaspace is not permitted!                                                                                                                      
[W 2022-02-14 07:18:24.837 ServerApp] 403 DELETE /notebook/kf-development/elyra-3-6-0/elyra/metadata/runtime-images/pandas?1644823104409 (127.0.0.6) 2.38ms referer=https://xxxxxxx/lab/workspaces/auto-b 

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ptitzlercommented, Mar 11, 2022

We could also document how users could export/import the images they wish to retain. (Of course, we’d need the necessary import functionality in place, but I’m assuming this (removal of system-owned RTIs) is something slated for 4.0.)

Yep. Metadata import should be available no later than 3.8. We could also add the current files to the examples repository or document the corresponding CLI commands, which are straightforward for RTIs.

1reaction
ptitzlercommented, Mar 11, 2022

Perhaps we should reevaluate whether this system-owned RTI metadata is even necessary. If I recall correctly, system RTIs were provided to provide a smother up-and-running experience. My thoughts:

  • For container based deployments, pre-seeded container images can be provided through other means:
    • publish -slim image (e.g. elyra-slim), which don’t have any RTIs pre-defined. Users can extend this image FROM ..../elyra-slim and add elyra-metadata install runtime-images ..., specifying their own images.
    • publish elyra image, which extends above image using a small set of images (a subset of what we include today)
  • Pre-seeded RTI metadata is useful for getting started scenarios, but in many cases it’d be just one additional step to add it to an Elyra instance that doesn’t have it defined. (Additional tutorial artifacts can be provided to create the metadata on as as needed basis. For example, https://github.com/elyra-ai/examples/tree/master/pipelines/dax_noaa_weather_data only requires one RTI instance to be fully functional.)
  • As is, system-owned RTIs don’t really solve many problems: (1) users can overwrite them and (2) users can add/use their own, hence the mechanism does nor enforce any restrictions that an admin might want to impose.
Read more comments on GitHub >

github_iconTop Results From Across the Web

1861203 – Cannot remove image because it is used by non ...
Description of problem: I did a cleanup of unused containers and images on my machine and I cannot remove an image without name&tag....
Read more >
Docker image deleted from repository · Issue #2247 - GitHub
Description Steps to reproduce the issue: I came across strange incident, wherein few of docker images deleted automatically from repository ...
Read more >
docker image prune - Docker Documentation
docker image prune -a WARNING! This will remove all images without at least one container associated to them. Are you sure you want...
Read more >
Upgrading to the NVIDIA Container Runtime for Docker
If you build Docker images while nvidia is set as the default runtime, make sure the build scripts executed by the Dockerfile specify...
Read more >
Runtime Image Configuration - Elyra Documentation
Runtime image configurations can be added, modified, duplicated, and removed in the Runtime Images panel. Runtime Images UI. To access the panel in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found