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

[UX] Better hint when GCP project is wrongly typed in auth #4163

Open
Michaelvll opened this issue Oct 24, 2024 · 0 comments
Open

[UX] Better hint when GCP project is wrongly typed in auth #4163

Michaelvll opened this issue Oct 24, 2024 · 0 comments

Comments

@Michaelvll
Copy link
Collaborator

Currently, if a user types a wrong project ID in gcloud init, sky check will pass but cause an issue when sky launch:

  File "/Users/xxx/anaconda3/envs/sky/lib/python3.10/site-packages/sky/backends/backend_utils.py", line 979, in write_cluster_config
    _add_auth_to_cluster_config(cloud, tmp_yaml_path)
  File "/Users/xxx/anaconda3/envs/sky/lib/python3.10/site-packages/sky/backends/backend_utils.py", line 1034, in _add_auth_to_cluster_config
    config = auth.setup_gcp_authentication(config)
  File "/Users/xxx/anaconda3/envs/sky/lib/python3.10/site-packages/sky/utils/common_utils.py", line 402, in method_with_retries
    return method(*args, **kwargs)
  File "/Users/xxx/anaconda3/envs/sky/lib/python3.10/site-packages/sky/authentication.py", line 159, in setup_gcp_authentication
    project = compute.projects().get(project=project_id).execute()
  File "/Users/xxx/anaconda3/envs/sky/lib/python3.10/site-packages/googleapiclient/discovery.py", line 1122, in method
    for pvalue in pvalues:

Version & Commit info:

  • sky -v: PLEASE_FILL_IN
  • sky -c: PLEASE_FILL_IN
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