Skip to content

Experiment names conflict across namespaces #2578

@pioGuilpain

Description

@pioGuilpain

What happened?

When two Experiments are created in different namespaces with the same metadata.name, Katib Suggestion services appear to share state. This results in errors such as:

rpc error: code = Internal desc = Same parameter is not found for Trial ...

In practice, one Experiment fails until the other with the same name (in a different namespace) is deleted. This indicates that Experiment name is treated as a global identifier rather than being scoped by namespace.

How to reproduce it:
1. Create two namespaces (e.g., ns-a, ns-b).
2. Submit an Experiment named cmaes-example in ns-a.
3. Submit another Experiment with the same name in ns-b.
4. Observe Suggestion controller logs and Experiment status.
5. The second Experiment fails with a parameter mismatch error until the first is deleted.

What did you expect to happen?

Experiments with the same name should be isolated per namespace. Suggestion services and the Katib database should uniquely identify Studies using both namespace and name.

Environment

Kubernetes version: 1.31.9

Katib controller version: 0.18.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions