-
Notifications
You must be signed in to change notification settings - Fork 344
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
default runtime images can not be removed #2476
Comments
In a similar vein, are we considering adding a "runtime image catalog" feature as we have for pipeline components? |
The images that come out of the box are considered system-owned and cannot be deleted. They can be updated, in which a copy is made and persisted to the general user location. Those updated copies can be deleted, but the originals can't.
No, but that's an interesting thought. I'd love to figure out a way to NOT have "system-owned" behaviors. Perhaps introducing the notion of "metadata packages" could be interesting, where a package includes pre-built instances. I think we'd need something like - if the instance already exists, it is not installed. This would allow for updates to override the packaged instance. The problem would then be how to not re-install a deleted pre-packaged instance. So you'd probably have to record installation at a package level, but then have a mechanism for introducing new instances when a new version is made, etc. Hmm, we'd also have to figure out the expected behavior for when someone removes a metadata package. Do the instances remain? Or only those instances that have been updated (implying a checksumming/hash registry), etc.? |
For reference: For source code Elyra builds its possible to customize which images are system-owned images by modifying the content of https://github.com/elyra-ai/elyra/tree/master/etc/config/metadata/runtime-images |
Another possible alternative: Perhaps we could introduce a configuration setting that, if defined, causes the metadata service to ignore system-owned entries. This way these entries would not be listed in the UI or CLI. This would not change the default user experience and require an explicit action by the entity that installs Elyra, but does not require a custom-built Elyra. wdyt @kevin-bates @kiersten-stokes? |
This would be a matter of constraining the multiple paths to the preferred directory when gathering the paths to use. That said, I'd love to find a different (and optional) way of exposing these system-owned instances, but prior to that, a configurable for this makes sense. Things get a little trickier if this needed to be done at a schemaspace level, but that doesn't appear to be the case since runtime-images are the only schemaspace we provide instances for out of the box. |
An approach similar to the one we are currently using for connectors should be able to address not just the symptom (there are metadata instances the user has no need for - which my earlier alternative would do) but would also support customization:
|
yeah, this is probably better, although, today, we can edit system-owned instances where the "edited instances" are stored in the user's location - rather than Another thought might be to introduce Bring-Your-Own-Instances where the |
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:
|
This would be great! It does seem like most of this could be handled via documentation and within images we provide - as you mention. System-owned metadata is also problematic for other storage solutions (which we don't have at the moment, but will be an immediate problem when that does occur). 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. |
Currently when you attempt to remove one of the default runtime images, say
Pandas 1.1.1
, you get the error:The JupyterLab logs show:
The text was updated successfully, but these errors were encountered: