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

GCP error: skylark init complains about missing project ID #304

Closed
parasj opened this issue Apr 27, 2022 · 0 comments · Fixed by #306
Closed

GCP error: skylark init complains about missing project ID #304

parasj opened this issue Apr 27, 2022 · 0 comments · Fixed by #306
Labels
bug Something isn't working
Milestone

Comments

@parasj
Copy link
Contributor

parasj commented Apr 27, 2022

init
    No AWS config detected! Consquently, the AWS region list is empty. Run 'skyplane init' to remedy this.
    No GCP config detected! Consquently, the GCP region list is empty. Run 'skyplane init' to remedy this.
    No GCP config detected! Consquently, the GCP region list is empty. Run 'skyplane init' to remedy this.

=================================================
  ______  _             _                 _
 / _____)| |           | |               | |
( (____  | |  _  _   _ | |  _____   ____ | |  _
 \____ \ | |_/ )| | | || | (____ | / ___)| |_/ )
 _____) )|  _ ( | |_| || | / ___ || |    |  _ (
(______/ |_| \_) \__  | \_)\_____||_|    |_| \_)
                (____/
=================================================


(1) Configuring AWS:
    Loaded AWS credentials from the AWS CLI [IAM access key ID: ...H4IEWX]
    AWS region config file saved to /home/ubuntu/.skyplane/aws_config

(2) Configuring Azure:
    Azure credentials found in Azure CLI
    Azure credentials found, do you want to enable Azure support in Skyplane? [Y/n]: Y
    Enter the Azure subscription ID: [ab110d95-7b83-4cec-b9dc-400255f3166e]:

(3) Configuring GCP:
    GCP region config missing! GCP will be reconfigured.
    GCP credentials found in GCP CLI
    GCP credentials found, do you want to enable GCP support in Skyplane? [Y/n]: Y
    Enter the GCP project ID: [skylark-333700]:
Traceback (most recent call last):
  File "/home/ubuntu/miniconda/bin/skyplane", line 33, in <module>
    sys.exit(load_entry_point('skyplane', 'console_scripts', 'skyplane')())
  File "/home/ubuntu/miniconda/lib/python3.8/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/home/ubuntu/miniconda/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/miniconda/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/ubuntu/miniconda/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/miniconda/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ubuntu/miniconda/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/ubuntu/miniconda/lib/python3.8/site-packages/typer/main.py", line 500, in wrapper
    return callback(**use_params)  # type: ignore
  File "/home/ubuntu/skylark/skyplane/cli/cli.py", line 386, in init
    cloud_config = load_gcp_config(cloud_config, force_init=reinit_gcp)
  File "/home/ubuntu/skylark/skyplane/cli/cli_helper.py", line 462, in load_gcp_config
    auth.save_region_config()
  File "/home/ubuntu/skylark/skyplane/compute/gcp/gcp_auth.py", line 35, in save_region_config
    request = service.zones().list(project=self.inferred_project_id)
  File "/home/ubuntu/miniconda/lib/python3.8/site-packages/googleapiclient/discovery.py", line 1034, in method
    raise TypeError('Missing required parameter "%s"' % name)
TypeError: Missing required parameter "project"

This seems to be caused by reference to self.inferred_project_id which should be self.project_id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant