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

cloud-endpoints fails when using bootstrapper #735

Closed
kkasravi opened this issue Apr 27, 2018 · 5 comments
Closed

cloud-endpoints fails when using bootstrapper #735

kkasravi opened this issue Apr 27, 2018 · 5 comments
Assignees

Comments

@kkasravi
Copy link
Contributor

steps to reproduce:

$ kubectl create -f bootstrap/examples/kubeflow_toolbox.yaml
$ kubectl exec -it -n kubeflow kubeflow-toolbox-0 bash
$ gcloud compute --project=${PROJECT} addresses create kubeflow --global
$ gcloud compute --project=${PROJECT} addresses list
$ gcloud iam service-accounts list
$ gcloud iam service-accounts create cloud-endpoints-controller --display-name cloud-endpoints-controller
$ gcloud iam service-accounts list     --filter="displayName:cloud-endpoints-controller"     --format='value(email)'
$ gcloud projects add-iam-policy-binding       $PROJECT --role roles/servicemanagement.admin --member serviceAccount:cloud-endpoints-controller@constant-cubist-173123.iam.gserviceaccount.com
$ gcloud iam service-accounts keys create cloudep-sa.json --iam-account cloud-endpoints-controller@constant-cubist-173123.iam.gserviceaccount.com
$ kubectl create secret generic cloudep-sa --from-file=./cloudep-sa.json
$ ks generate cloud-endpoints cloud-endpoints --namespace=kubeflow --secretName=cloudep-sa
$ ks param set cloud-endpoints secretKey $PWD/cloudep-sa.json
$ ks param list cloud-endpoints
COMPONENT       INDEX PARAM      VALUE
=========       ===== =====      =====
cloud-endpoints 0     name       "cloud-endpoints"
cloud-endpoints 0     namespace  "kubeflow"
cloud-endpoints 0     secretKey  "/opt/kubeflow/app/kubeflow/cloudep-sa.json"
cloud-endpoints 0     secretName "cloudep-sa"
$ ks show cloud -c cloud-endpoints
ERROR find objects: find objects for cloud-endpoints in /: RUNTIME ERROR: couldn't open import "param://secretKey": no match locally or in the Jsonnet library paths
	/opt/kubeflow/app/kubeflow/components/cloud-endpoints.jsonnet:6:19-45	thunk <secretKey> from <$>
	/opt/kubeflow/app/kubeflow/components/cloud-endpoints.jsonnet:15:79-88	thunk from <$>
	/opt/kubeflow/app/kubeflow/vendor/kubeflow/core/cloud-endpoints.libsonnet:19:54-63	thunk from <thunk from <thunk from <function <anonymous>>>>
	/opt/kubeflow/app/kubeflow/vendor/kubeflow/core/cloud-endpoints.libsonnet:296:53-62	object <anonymous>
	/opt/kubeflow/app/kubeflow/vendor/kubeflow/core/cloud-endpoints.libsonnet:296:28-62	object <anonymous>
	During manifestation
@pdmack
Copy link
Member

pdmack commented Apr 27, 2018

/assign @inc0

@inc0
Copy link

inc0 commented May 6, 2018

I had something similar - issue is with latest ksonnet (I think). @kkasravi try to run it on ks 0.9.5 and see if issue persists.

@jlewi
Copy link
Contributor

jlewi commented May 21, 2018

Is the issue fixed by using 0.9.5?

/cc @kunmingg

@kunmingg
Copy link
Contributor

@jlewi This is fixed, as part of another PR:
ccebb3b#diff-6bb32f8581100ba09f21c6e02f87c631

@kunmingg
Copy link
Contributor

/close

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

6 participants