No experiment gets created by kfp.Client()
See original GitHub issueHi, I’ve deployed Kubeflow onto an AWS EKS cluster. I tried to create and run Kubeflow pipeline using notebook UI inside Kubeflow cluster. However, no experiment gets created. I followed the example in https://www.kubeflow.org/docs/components/pipelines/sdk/build-pipeline/ to build the pipeline. Furthermore, I followed the instructions in https://www.kubeflow.org/docs/distributions/aws/pipeline/ to authenticate Kubeflow Pipeline using SDK inside cluster. Below, you can find how I did the authentication:
authservice_session='<cookie I've obtained from notebook url which is http://localhost:8080/_/jupyter/>' ALB_ADDRESS='<Value of Address field obtained by executing command "kubectl get ingress -n istio-system">' HOST=ALB_ADDRESS+'/pipeline' client = kfp.Client(host=HOST, cookies=authservice_session)
When I executed the following command, I got an error.
client.create_run_from_pipeline_package( pipeline_file='pipeline.yaml', arguments={ 'url': 'https://storage.googleapis.com/ml-pipeline-playground/iris-csv-files.tar.gz' })
The error is:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-22-56afc4f05e24> in <module>
2 pipeline_file='pipeline.yaml',
3 arguments={
----> 4 'url': 'https://storage.googleapis.com/ml-pipeline-playground/iris-csv-files.tar.gz'
5 })
/usr/local/lib/python3.6/dist-packages/kfp/_client.py in create_run_from_pipeline_package(self, pipeline_file, arguments, run_name, experiment_name, namespace)
739 '%Y-%m-%d %H-%M-%S'))
740 experiment = self.create_experiment(name=experiment_name, namespace=namespace)
--> 741 run_info = self.run_pipeline(experiment.id, run_name, pipeline_file, arguments)
742 return RunPipelineResult(self, run_info)
743
/usr/local/lib/python3.6/dist-packages/kfp/_client.py in run_pipeline(self, experiment_id, job_name, pipeline_package_path, params, pipeline_id, version_id)
548 import IPython
549 html = ('<a href="%s/#/runs/details/%s" target="_blank" >Run details</a>.'
--> 550 % (self._get_url_prefix(), response.run.id))
551 IPython.display.display(IPython.display.HTML(html))
552 return response.run
AttributeError: 'NoneType' object has no attribute 'id'
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top GitHub Comments
I think I need to follow the instructions in this url, https://www.kubeflow.org/docs/distributions/aws/authentication/authentication/, to provide TLS authentication for kubeflow. I’ll try it and will let you know the outcome.
It looks like that page is no longer maintained. Did you figure out how to enable TLS authentication on Kubeflow?