Skip to content
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

Seldon-Core Quickstart is not working #4958

Closed
elia-secchi opened this issue Apr 15, 2020 · 12 comments
Closed

Seldon-Core Quickstart is not working #4958

elia-secchi opened this issue Apr 15, 2020 · 12 comments

Comments

@elia-secchi
Copy link

elia-secchi commented Apr 15, 2020

/kind bug

What steps did you take and what happened:
After Installing Kubeflow in GKE, everything works fine part from Seldon.
I am following the quickstart example in Kubeflow Docs so I am:

  • adding the new namespace
  • adding a new istio gateway
  • deploying the dummy model
  • port-forwarding

when I send my prediction with:

curl -s -d '{"data": {"ndarray":[[1.0, 2.0, 5.0]]}}'    -X POST http://localhost:8004/seldon/testseldon/seldon-model/api/v1.0/predictions    -H "Content-Type: application/json"

I get:
Origin authentication failed
Inspecting the Logs of istio ingress-gateway I can see that the returned error code is 401 - Unauthorized so I think the problem is at istio ingress-gateway level.

I've tried several times with different Kubeflow versions but I am still getting the same error.

Environment:

  • Kubeflow version: 1.0.1
  • kfctl version: kfctl v1.0.1-0-gf3edb9b
  • Kubernetes platform: GKE
  • Kubernetes version: 1.14.10
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the labels:

Label Probability
kind/bug 0.95

Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.

@kubeflow-bot kubeflow-bot added this to To Do in Needs Triage Apr 15, 2020
@dilzeem
Copy link

dilzeem commented Apr 15, 2020

Are you using any kind of authentication service?

I posted a similar issue just now for AWS.

It says here for port forwarding that authentication can be an issue:
https://www.kubeflow.org/docs/components/central-dash/overview/#using-kubectl-and-port-forwarding

@elia-secchi
Copy link
Author

elia-secchi commented Apr 15, 2020

Yes I am using Google Identity Aware proxy when interacting with the endpoint.

@elia-secchi
Copy link
Author

elia-secchi commented Apr 17, 2020

I've found a solution for the problem.
The request needs to be sent with IAP authentication (JWT token).
For that is possible to use a Python script similar to what suggested in the tensorflow serving page:
https://www.kubeflow.org/docs/components/serving/tfserving_new/#sending-prediction-request-through-ingress-and-iap

Something similar to the page I linked above can be done also for the Seldon Quickstart.

@jtfogarty
Copy link
Contributor

/area seldon
/priority p1

@jtfogarty jtfogarty moved this from To Do to Assigned to Area Owner For Triage in Needs Triage Apr 17, 2020
@kubeflow-bot kubeflow-bot removed this from Assigned to Area Owner For Triage in Needs Triage Apr 17, 2020
@jlewi
Copy link
Contributor

jlewi commented Apr 20, 2020

/cc @cliveseldon

@ukclivecox
Copy link
Contributor

I can update the docs but looks like a lot of that script is generic IAP processing. I could try to generalize it and add a Seldon specific addition?

@elia-secchi
Copy link
Author

elia-secchi commented Apr 21, 2020

The only thing I've changed in the script is adding
Content: application/json to the headers of the request.

@vladislavkoz
Copy link

I'm getting the same issue even with the Python script. I've created a separate service account with access to all that is related to IAP. Could you please provide more details on how did you fix that?

@stale
Copy link

stale bot commented Jul 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the labels:

Label Probability
area/inference 0.53

Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.

@vladislavkoz
Copy link

vladislavkoz commented Aug 6, 2020

It's because of the wrong service account. You need to add more permissions. Try the following: IAP-secured Web App User,
ML Engine Admin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants