-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
how to connect kfp.Client to standalone KFP v0.2 deployment on GCP? #2954
Comments
A call to {'experiments': None, 'next_page_token': None, 'total_size': None} even though I have created a couple experiments in the UI. |
Figured it out. Removing |
I remember having the same issue but I was able to solve it by removing |
@JakeTheWise client = kfp.Client(host='....pipelines.googleusercontent.com') should work. Note that you need to get rid of the |
@numerology Wait I'm experiencing this after upgrading to 0.2.1. I think in #2896 there was a change that caused the type of the token to change from str to bytes and that is causing it? I reverted these 2 lines to how it was in 0.1.40 and I can connect. cc @Bobgy is this intended? |
@parthmishra Sorry, that's not intended (I am not familiar with python, might be a mistake.), would you mind submitting a fix? |
@Bobgy @parthmishra |
Looks like #2986 fixed it so that will probably close this |
The fix #2986 is in 0.2.2, please retry. Here close. feel free to reopen if still has issue. |
@rmgogogo This is broken again with kubeflow pipelines version 0.4. |
/reopen /assign @rmgogogo @numerology |
@Bobgy: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@JakeTheWise that seems different from this issue. If that's true, can you open a separate issue for it? |
Well, the issue is that I can't seem to connect to my KFP Standalone deployment from python using the kfp sdk. Now I'm getting this error:
|
I'm trying to run this code from a python script: client = kfp.Client(
client_id='...-dot-us-central2.pipelines.googleusercontent.com'
)
client.create_run_from_pipeline_func(...) |
Sorry, didn't mean to close the issue |
I see, makes sense. |
@Bobgy: GitHub didn't allow me to assign the following users: for, investigation. Note that only kubeflow members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @JakeTheWise I believe you need to set the |
Yes, that causes the |
Oh I see. So I think there are two possible reasons here:
If you are using SDK version > 0.4.0 it's likely incompatible with a KFP deployment < 0.4.0 |
I can access the UI just fine. The server and kfp package are v0.4. However the kfp-api-server was v0.3 - it doesn't seem there is a v0.4 on PyPI. Upgrading kfp-api-server to 0.5 also failed. |
I just did these and it works.
So it passes test my side. You may double check whether it's reproduceable. I used virtualenv to avoid hitting some Python env issue. |
@JakeTheWise Note, 0.5.0 is being released in progress, maybe some of the dependencies haven't been ready yet. |
I had no idea that there was a CLI. Where was this feature announced, and where is it documented?
|
where did you get/find the host name, 1e18af0c54f57e18-dot-us-central2.pipelines.googleusercontent.com? |
You can find it when accessing the KFP UI, it's just the web address. If you're using inverse-proxy (which is true if you deployed using standalone deployment, or from GKE marketplace), it should be of the format |
I've deployed a Kubernetes cluster which has an envoy-ingress service with this endpoint: https://pskfp-1.endpoints.bright-voltage-248522.cloud.goog/ Is this what you are referring to? When I use this as the host for initializing the kfp client with all the parameter fields, I get an invalid_client 401 error. Here are my parameters for intializing the kfp client: here are my user credentials in GCP (web application and other type users were created): I feel like the authentication pipes are not configured properly, but I don't know. error: |
im following these instructions once more: |
Hi @arshyasharifian, Besides, I think the the host should be |
works!!!!!! Thank you so much. Final KFP client params that works on local jupyter notebook: my_host = 'https://pskfp-1.endpoints.bright-voltage-248522.cloud.goog/pipeline' #test script to see if client works (change pipeline ID to one that exists in your kubeflow UI): |
Cool. |
Great, thanks. |
@arshyasharifian Note, be careful, you are sharing your credentials publically. Please regenerate your credentials. |
Sorry for the noob question...
I successfully stood up my KFP v0.2 standalone deployment on a GKE cluster. I can access the UI at
....pipelines.googleusercontent.com
. But I can't seem to get mykfp.Client
to connect:yields
I know I'm doing something wrong that would be simple to fix...
The text was updated successfully, but these errors were encountered: