-
Notifications
You must be signed in to change notification settings - Fork 7
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
Plugins added from local storage or pulled from self hosted registry are not scanned for commands #8
Comments
To reproduce this, I would need to have a local registry running. Do you know an easy way to set one up? As a workaround, there is an API to tell container service to check for commands in the labels of an image stored locally: |
Running a local registry is as simple as Manually calling that API endpoint produces mixed results. Image stored in local registry: API returns command JSON and XNAT updates the command list. Image stored on local machine (never pushed to a registry, just built and tagged on the machine running XNAT): API returns command JSON but XNAT does NOT update the command list. I realize running XNAT, a container registry, and doing my dev work all on the same machine probably isn't something you planned for when developing the plugin. Thankfully it isn't a permanent setup, just a quick environment I cobbled together to test getting our pipelines into containers and executed using your plugin. It is looking like we can accomplish everything we need so I'll be expanding my efforts and changing to a slightly more sane configuration this week. That may make this no longer an issue for me, but if the behavior is unintended I'll do what I can to continue testing and providing feedback for this particular scenario. |
In my efforts to reproduce I have found problems trying to use a local registry, but they are different from the problems you've pointed out. I'm trying to catalog all the different ways this is going wrong before figuring out how to fix it.
|
Well this one is on me. Using the XNAT UI to get an image from a local registry is broken. I'm assuming because the For timeliness sake I created a free account with quay.io and pushed an image there, cleared all local copies of it, confirmed the CS plugin had no mention of the image, then used the CS plugin to successfully pull the image. It completed without issue and the command is populated. This makes me think there is no issue with populating from an outside, 'unofficial' registry, only with the CS plugin not supporting image names that contain a This issue can probably be reduced to just tracking down why locally created images are being automatically enumerated, but their commands not parsed and added. |
TL;DR:
Long version:
|
Thanks so much for testing all of this! It's a lot to go through, so it might take me some time to fix things. I can give my general impressions now, though:
|
Glad to be able to give something back. Thanks for all the work you (and the rest of the XNAT devs) have put into this. Looking forward to the next release. |
…rgXnat#8) CIRRUS-316: rollback event history update in container service
When adding an image from Docker Hub with a LABEL containing the command, the CS plugin automatically populates the command list as it should. When adding an image that exists locally or pulling from a locally hosted registry this step does not occur. After adding the container I can manually copy/paste the command JSON in and the container will be available and runs fine. Also, doing an inspect on the container shows the LABEL is present and properly formatted.
To confirm it wasn't an error on my part I created a simple test container, pushed to my local registry, and added it to XNAT. The command did not appear. I then pushed it to Docker Hub, added to XNAT from there, and the command populated fine.
I also reversed the process and pulled one of the example containers from the XNAT Docker public repository and the command populated automatically. I then used the corresponding Dockerfile from github, built the container locally, pushed to my local repo, and added to XNAT but no command populated. And just for completeness sake, pushed the same image to a public Docker Hub repo, added it again, and the command populated just fine.
This behavior is consistent in versions 1.5.1, 2.0.0-RC1, and 2.0.0-RC2 running on XNAT 1.7.4.1
The text was updated successfully, but these errors were encountered: