New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
permission error when trying to run pipeline on kubeflow #1479
Comments
Hi @ran-haim |
I installed 1.4 using this guide: |
I see, we use 1.0.4, while semver-wise 1.4.0 should be compatible, it seems like something changed in the schema there, I suggest you to downgrade and use 1.0.4 |
In the meanwhile I'll try to bring up 1.4.0 myself and see if this is an easy fix |
Kubeflow version is 1.4, but it seems that pipelines version is actually 1.7. I thought this is due to some permissions problem, should'nt I give mlrun permissions to "kubeflow-user-example-com" namespace? |
Oh yeah it might be, now I get what's behind the |
I am new to kubeflow and mlrun - how do I do that? |
still not able to get it to work, were you able to do it? Is there a guide for kubeflow integration I am missing? |
Try this in order to add permissions to the mlrun-api service:
|
nope. |
I think it is something to do with using the same namespace for the ml-pipeline service and the namespace for which the experiment should run. |
I see, when you're doing |
yes, I know - but as I said if I use namespace="kubeflow" in skproj.run(), it does find the ml-pipline service, but I think it also trying to create the pipeline in that namespace, where it should be "kubeflow-user-example-com" |
ok, and if you put there |
then we go back to the original problem where it tries to call ml-pipline and cannot find it due to the domain name... |
Ok I see |
ok, makes sense due to the error I got. |
Hi @ran-haim, any updates ? |
No respond, closing |
Sorry for not responding. |
Hi,
I am trying to run the demo notebook sklearn-project on a local kubernetes.
I have installed kubeflow.
I get this error when trying to send the pipeline to the api server:
400 Client Error: Bad Request for url: http://mlrun-api:8080/api/projects/sk-project/pipelines?namespace=mlrun&experiment=sk-project-main: details: {'reason': 'MLRunBadRequestError("Failed creating pipeline: HTTPConnectionPool(host='ml-pipeline.mlrun.svc.cluster.local', port=8888): Max retries exceeded with url: /apis/v1beta1/experiments (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f94278ed0>: Failed to establish a new connection: [Errno -2] Name or service not known'))")'}
I noticed it tried to call the ml-pipeline on the wrong namespace (it uses the one mlrun is installed on).
I changed the namespace to "kubeflow" and now I get this error:
400 Client Error: Bad Request for url: http://mlrun-api:8080/api/projects/sk-project/pipelines?namespace=kubeflow&experiment=sk-project-main: details: {'reason': 'MLRunBadRequestError('Failed creating pipeline: (400)\nReason: Bad Request\nHTTP response headers: HTTPHeaderDict({\'content-type\': \'application/json\', \'date\': \'Mon, 08 Nov 2021 13:40:04 GMT\', \'content-length\': \'708\', \'x-envoy-upstream-service-time\': \'1\', \'server\': \'istio-envoy\', \'x-envoy-decorator-operation\': \'ml-pipeline.kubeflow.svc.cluster.local:8888/*\'})\nHTTP response body: {"error":"Validate experiment request failed.: Invalid input error: Invalid resource references for experiment. Expect one namespace type with owner relationship. Got: []","code":3,"message":"Validate experiment request failed.: Invalid input error: Invalid resource references for experiment. Expect one namespace type with owner relationship. Got: []","details":[{"@type":"type.googleapis.com/api.Error","error_message":"Invalid resource references for experiment. Expect one namespace type with owner relationship. Got: []","error_details":"Validate experiment request failed.: Invalid input error: Invalid resource references for experiment. Expect one namespace type with owner relationship. Got: []"}]}\n')'}
also keep in mind that the ml-pipeline service is installed on kubeflow, but I probably need to add the experiment on kubeflow-user-example-com namespace (the default example user namespace created when installing kubeflow).
In any case - what am I doing wrong?
The text was updated successfully, but these errors were encountered: