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
2019-05-08 16:43:34.134 ERROR 1 --- [pool-1-thread-1] i.s.c.k.SeldonDeploymentControllerImpl : Error creating deployment:{
"metadata": {
"selfLink": "",
"resourceVersion": ""
},
"status": "Failure",
"message": "Deployment.apps \"seldon-6cbb0f8\" is invalid: [metadata.labels: Invalid value: \"longname30longname30longname3012-longname30longname30longname3012\": must be no more than 63 characters, spec.selector.matchLabels: Invalid value: \"longname30longname30longname3012-longname30longname30longname3012\": must be no more than 63 characters, spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"seldon-app\":\"longname30longname30longname3012-longname30longname30longname3012\", \"seldon-app-longname30longname30longname3012\":\"seldon-vmx-vmx171-5000-img-vgg16-v0-0-1-4961034\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: invalid label selector.]",
"reason": "Invalid",
"details": {
"name": "seldon-6cbb0f8",
"group": "apps",
"kind": "Deployment",
"causes": [{
"reason": "FieldValueInvalid",
"message": "Invalid value: \"longname30longname30longname3012-longname30longname30longname3012\": must be no more than 63 characters",
"field": "metadata.labels"
}, {
"reason": "FieldValueInvalid",
"message": "Invalid value: \"longname30longname30longname3012-longname30longname30longname3012\": must be no more than 63 characters",
"field": "metadata.labels"
}, {
"reason": "FieldValueInvalid",
"message": "Invalid value: \"longname30longname30longname3012-longname30longname30longname3012\": must be no more than 63 characters",
"field": "spec.selector.matchLabels"
}, {
"reason": "FieldValueInvalid",
"message": "Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"seldon-app-longname30longname30longname3012\":\"seldon-vmx-vmx171-5000-img-vgg16-v0-0-1-4961034\", \"seldon-app\":\"longname30longname30longname3012-longname30longname30longname3012\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: invalid label selector.",
"field": "spec.selector"
}],
"retryAfterSeconds": 0,
"uid": ""
},
"code": 422
}
2019-05-08 16:43:34.135 ERROR 1 --- [pool-1-thread-1] i.s.c.k.SeldonDeploymentControllerImpl : Failed to create deployment
io.seldon.clustermanager.k8s.SeldonDeploymentException: Failed to create deployment seldon-6cbb0f8
at io.seldon.clustermanager.k8s.SeldonDeploymentControllerImpl.createDeployments(SeldonDeploymentControllerImpl.java:94) ~[classes!/:0.2.6]
at io.seldon.clustermanager.k8s.SeldonDeploymentControllerImpl.createOrReplaceSeldonDeployment(SeldonDeploymentControllerImpl.java:306) ~[classes!/:0.2.6]
at io.seldon.clustermanager.k8s.SeldonDeploymentWatcher.processWatch(SeldonDeploymentWatcher.java:85) [classes!/:0.2.6]
at io.seldon.clustermanager.k8s.SeldonDeploymentWatcher.watchSeldonMLDeployments(SeldonDeploymentWatcher.java:196) [classes!/:0.2.6]
at io.seldon.clustermanager.k8s.SeldonDeploymentWatcher.watch(SeldonDeploymentWatcher.java:228) [classes!/:0.2.6]
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) [spring-context-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [spring-context-4.3.20.RELEASE.jar!/:4.3.20.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_181]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_181]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_181]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_181]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]
When the name has length of 30 characters, it works fine.
It seems that the deployment name is actually repeated twice in that metadata, so the real limitation on length this way is 31 characters, not 63.
seldonio/cluster-manager:0.2.6
When I try to create a seldondeployment with a name of lenght 32 or more, it will go to error state:
In the logs of Seldon cluster manager:
When the name has length of 30 characters, it works fine.
It seems that the deployment name is actually repeated twice in that metadata, so the real limitation on length this way is 31 characters, not 63.
Is this a bug? Or am I doing something wrong?
Full json:
The text was updated successfully, but these errors were encountered: