kserve: kfserving tensorflow flowers-sampleprediction through curl not working in kubeflow-v1.0.2 in GKE

/kind bug

What steps did you take and what happened: Kfserving tensorflow flowers-sample prediction through curl command not working in kubeflow-v1.0 in GKE Followed steps in https://github.com/kubeflow/kfserving/tree/master/docs/samples/tensorflow flowers-sample in kubeflow v1.0

But error got through curl command to predict data Error :

  • Connected to X.X.X.X port 31380 (#0)

POST /v1/models/flowers-sample:predict HTTP/1.1 Host: flowers-sample.anonymous.example.com User-Agent: curl/7.58.0 Accept: / Content-Length: 16139 Content-Type: application/x-www-form-urlencoded Expect: 100-continue

< HTTP/1.1 100 Continue

  • We are completely uploaded and fine < HTTP/1.1 404 Not Found < x-powered-by: Express < content-security-policy: default-src ‘none’ < x-content-type-options: nosniff < content-type: text/html; charset=utf-8 < content-length: 172 < date: Sun, 26 Apr 2020 17:04:37 GMT < x-envoy-upstream-service-time: 0 < server: istio-envoy <
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body>
Cannot POST /v1/models/flowers-sample:predict
</body> </html> * Connection #0 to host X.X.X.X1 left intact

What did you expect to happen: flowers-sample curl command to predict the result

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

  • Istio Version: default version comes with kubeflow 1.0
  • Knative Version: default version comes with kubeflow 1.0
  • KFServing Version: default version comes with kubeflow 1.0
  • Kubeflow version: v1.0
  • Kubernetes version: (use kubectl version): 1.14.10
  • OS (e.g. from /etc/os-release): ubuntu

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 19 (8 by maintainers)

Most upvoted comments

this has been fixed in kubeflow 1.1 /close

this problem still exists in 1.5 and 1.4

[root@dev-master kfserving]# curl -v -H "Host: ${SERVICE_HOSTNAME}" -H "Cookie: authservice_session=${SESSION}" http://${CLUSTER_IP}/v1/models/${MODEL_NAME}:predict -d ${INPUT_PATH}
* About to connect() to 10.101.216.126 port 80 (#0)
*   Trying 10.101.216.126...
* Connected to 10.101.216.126 (10.101.216.126) port 80 (#0)
> POST /v1/models/sklearn-iris:predict HTTP/1.1
> User-Agent: curl/7.29.0
> Accept: */*
> Host: sklearn-iris.kubeflow-user-example-com.example.com
> Cookie: authservice_session=MTY0OTQwNzgyOXxOd3dBTkVaQ1ZqWlpTazFFVlVVMU56TkxWRTQyV0ZkV1ZVTllWMWRCVEZGQldFTXpNamRMUjFoVE56SmFTVmMyVGpWTVMwVk9VRkU9fKa7dC36g3eCJjrZakMOkJOEvoouLi190z06UrDWWjQZ
> Content-Length: 88
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 88 out of 88 bytes
< HTTP/1.1 404 Not Found
< x-powered-by: Express
< content-security-policy: default-src 'none'
< x-content-type-options: nosniff
< content-type: text/html; charset=utf-8
< content-length: 170
< date: Fri, 08 Apr 2022 08:55:50 GMT
< x-envoy-upstream-service-time: 2
< server: istio-envoy
<
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /v1/models/sklearn-iris:predict</pre>
</body>
</html>
* Connection #0 to host 10.101.216.126 left intact

@SachinVarghese you want to give a shot with kubeflow 1.1 RC0?

@bjmrevilla there is an issue unfortunately in kubeflow manifests v1.0.2 https://github.com/kubeflow/manifests/issues/1142, either you can fall back to v1.0.0 or use manifest from v1.0 branch/master.