You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploy an experiment which spec.objective.additionalMetricNames contains spec.objective.objectiveMetricName.
The experiment is created, but you can see nothing on the experiment UI, like below.
You can see the log GetLastConditionType failed: Experiment doesn't have any condition in the Katib UI pod.
Also in katib controller, you can see the log "admission webhook \"validator.experiment.katib.kubeflow.org\" denied the request: only spec.parallelTrialCount, spec.maxTrialCount and spec.maxFailedTrialCount are editable",.
After some investigation, we found that the experiment is created, but failed to update when the additionalMetricNames contains objectiveMetricName.
Detailed investigation below
This is because of the behavior of the mutating & validation webhook.
If additionalMetricNames contains objectiveMetricName, mutating webhook tries to add objectiveMetricName to metricStrategies like below.
/kind bug
What steps did you take and what happened:
Deploy an experiment which
spec.objective.additionalMetricNames
containsspec.objective.objectiveMetricName
.The experiment is created, but you can see nothing on the experiment UI, like below.
GetLastConditionType failed: Experiment doesn't have any condition
in the Katib UI pod."admission webhook \"validator.experiment.katib.kubeflow.org\" denied the request: only spec.parallelTrialCount, spec.maxTrialCount and spec.maxFailedTrialCount are editable",
.After some investigation, we found that the experiment is created, but failed to update when the
additionalMetricNames
containsobjectiveMetricName
.Detailed investigation below
This is because of the behavior of the mutating & validation webhook.
If
additionalMetricNames
containsobjectiveMetricName
, mutating webhook tries to addobjectiveMetricName
tometricStrategies
like below.So after the mutation, metric strategies look like below.
Another mutation happens when the controller update finalizer
However, it is not allowed to update
metricsStrategies
whenoldInst
is not nilSo the updating experiment is failed and status of experiment will be never updated
What did you expect to happen:
The experiment should not be created when
additionalMetricNames
containsobjectiveMetricName
.Environment:
Impacted by this bug? Give it a 👍 We prioritize the issues with the most 👍
The text was updated successfully, but these errors were encountered: