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

deploy.py gives gcloud api error '... Version "1.8.1-gke.1" is invalid.' #268

Closed
cwbeitel opened this issue Jan 7, 2018 · 0 comments
Closed

Comments

@cwbeitel
Copy link
Contributor

cwbeitel commented Jan 7, 2018

Deploy command

> PROJECT_ID=$(get_project_id)
> SALT=`date | shasum -a 256 | cut -c1-8`
> CHART=https://storage.googleapis.com/tf-on-k8s-dogfood-releases/latest/tf-job-operator-chart-latest.tgz
> python -m py.deploy setup --project ${PROJECT_ID} --cluster kubeflow-${SALT} \
  --zone us-east1-d --chart $CHART --junit_path /tmp/junit-info

gives

INFO:root:Creating cluster; project=kubeflow-rl, zone=us-east1-d, name=kubeflow-7bdc62bc
ERROR:root:Exception occured creating cluster: <HttpError 400 when requesting https://container.googleapis.com/v1/projects/kubeflow-rl/zones/us-east1-d/clusters?alt=json returned "Version "1.8.1-gke.1" is invalid.">, status: 400
Traceback (most recent call last):
  File "/Users/cb/miniconda2/envs/dev/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/Users/cb/miniconda2/envs/dev/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/cb/code/project/tmp/k8s/py/deploy.py", line 210, in <module>
    main()
  File "/Users/cb/code/project/tmp/k8s/py/deploy.py", line 207, in main
    args.func(args)
  File "/Users/cb/code/project/tmp/k8s/py/deploy.py", line 63, in setup
    util.create_cluster(gke, project, zone, cluster_request)
  File "py/util.py", line 164, in create_cluster
    response = request.execute()
  File "/Users/cb/miniconda2/envs/dev/lib/python2.7/site-packages/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/Users/cb/miniconda2/envs/dev/lib/python2.7/site-packages/googleapiclient/http.py", line 842, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://container.googleapis.com/v1/projects/kubeflow-rl/zones/us-east1-d/clusters?alt=json returned "Version "1.8.1-gke.1" is invalid.">

Suggest changing initialClusterVersion to "1.7.11-gke.1".

cwbeitel pushed a commit to cwbeitel/k8s that referenced this issue Jan 7, 2018
- addressing kubeflow#268
- previously thought GCS read/write was also necessary for tensorflow/agents
  but does not appear to be the case so oauthScopes left unchanged.
@jlewi jlewi closed this as completed in 13db0a5 Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant