Repository navigation
Description
Describe the bug
To reproduce, go to http://kagenti-ui.localtest.me:8080/Import_New_Tool and Deploy from Existing Image.
For the image, choose mcp-test2.
The UI displays a traceback:
ValueError: URL must contain a tag (e.g., :latest)
Traceback:
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 121, in exec_func_with_error_handling
result = func()
^^^^^^
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 643, in code_to_exec
_mpa_v1(self._main_script_path)
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 164, in _mpa_v1
page.run()
File "/app/.venv/lib/python3.12/site-packages/streamlit/navigation/page.py", line 297, in run
exec(code, module.__dict__)
File "/app/pages/05_Import_New_Tool.py", line 36, in <module>
render_import_form(
File "/app/lib/build_utils.py", line 1616, in render_import_form
_repo, resource_name, _tag = parse_image_url(docker_image_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/build_utils.py", line 1649, in parse_image_url
raise ValueError("URL must contain a tag (e.g., :latest)")
The UI should never display tracebacks.
Steps To Reproduce
To reproduce, go to http://kagenti-ui.localtest.me:8080/Import_New_Tool and Deploy from Existing Image.
For the image, choose mcp-test2.
Another way to reproduce is to use mcp-test2:latest for the image. In this case, the error is ValueError: URL must contain at least a repo and image name. This surprised me, because my Docker image was built without a repo and loaded onto the cluster with kind load -n agent-platform docker-image mcp-test2
Expected Behavior
A nicely formatted message, or default of ":latest" if no version is specified.
Additional Context
No response
cc @Alan-Cha
Activity
esnible commentedon Oct 23, 2025
Similar problem if the image is
trpc-reverse:v0.0.1.@cwiklik what are the rules for the image name used by the Kagenti operator? The code in build_utils.py shows the resource body being built with
"imageRegistry": image_registry_prefix,but I don't know if it can be blank/null.esnible commentedon Oct 23, 2025
Note that the tag problem originally reported has been fixed by #256 . We should either close this issue or expand it to cover UI tracebacks when the container image URL does not include a repo/host.
esnible commentedon Oct 29, 2025
CAN WE RAISE THE PRIORITY OF THIS ISSUE? Or is there some docs or a work-around? I would like to be able to deploy container images on Kagenti!
pdettori commentedon Oct 29, 2025
@esnible seems like this is a blocker for your use case - can you clarify what the blocking issue is about ? the issue initially talk about "A nicely formatted message, or default of ":latest" if no version is specified"
esnible commentedon Oct 29, 2025
Closing in favor of #364