Skip to content

bug: Container image URL must contain at least a repo and image name #364

Closed

Description

@esnible

Describe the bug

The Kagenti UI will not accept Dockerfiles that don't come from public repos, even if they have been explicitly loaded using kind load.

For example, the image "mcp-test2" built locally.

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.

The UI displays a traceback:

ValueError: URL must contain at least a repo and image name
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/04_Import_New_Agent.py", line 39, in <module>
    render_import_form(
File "/app/lib/build_utils.py", line 1714, in render_import_form
    _repo, resource_name, _tag = parse_image_url(docker_image_url)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/build_utils.py", line 1875, in parse_image_url
    raise ValueError("URL must contain at least a repo and image name")

Expected Behavior

Should container images need hosts? Perhaps this error is OK. However, it is frustrating to have a local registry used by Kind and a Kagenti registry, but need to use an external container repo.

Additional Context

I have pushed two small container images to my Quay.io account. The Quay.io web UI https://quay.io/user/esnible_ibm/billing says "You are using more private repositories than your plan allows. Please upgrade your subscription to avoid disruptions in your service.". I am not sure how to increase my quota.

Activity

  1. changed the title [-]bug: URL must contain at least a repo and image name[/-] [+]bug: Container image URL must contain at least a repo and image name[/+] on Oct 29, 2025
  2. cwiklik commented on Oct 29, 2025

    @cwiklik
    Contributor
  3. esnible commented on Oct 30, 2025

    @esnible
    MemberAuthor

    @cwiklik The K8s documentation says https://kubernetes.io/docs/concepts/containers/images/#image-names that the registry hostname is optional. All we do with image name is pass it down when creating the Depoyment that goes to Kubernetes. We should allow any name that K8s allows.

    If the user chooses to use an image name such as busybox and that image isn't present, it is up to the cluster admin to deal with it. We shouldn't restrict Kagenti's UI.

  4. pdettori commented on Oct 30, 2025

    @pdettori
    Member

    I agree with @esnible - we should allow whatever kubernetes pods / deployments etc. allow for images.

  5. self-assigned this
    on Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions