You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(base) root@f81a9cc47641:/sky_repo/skypilot# sky check
Checking credentials to enable clouds for SkyPilot.
...
Checking Cudo...Traceback (most recent call last):
File "/opt/conda/bin/sky", line 8, in <module>
sys.exit(cli())
^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/sky_repo/skypilot/sky/utils/common_utils.py", line 349, in _record
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/sky_repo/skypilot/sky/cli.py", line 803, in invoke
return super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sky_repo/skypilot/sky/utils/common_utils.py", line 370, in _record
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/sky_repo/skypilot/sky/cli.py", line 2812, in check
sky_check.check(verbose=verbose)
File "/sky_repo/skypilot/sky/check.py", line 48, in check
check_one_cloud(cloud_tuple)
File "/sky_repo/skypilot/sky/check.py", line 25, in check_one_cloud
ok, reason = cloud.check_credentials()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sky_repo/skypilot/sky/clouds/cudo.py", line 293, in check_credentials
project_id, error = cudo_api.get_project_id()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/cudo_compute/cudo_api.py", line 34, in get_project_id
return context_config['project'], None
~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'project'
Looks like the credentials file generated by cudoctl has changed formats?
The issue was that if a project hadn't been created in the account or if the command line tool was set up before project creation there wouldn't be a default project in the credentials file. I have added some checks with better error messages and better instructions to handle it: #3438
Running
sky check
after following installation instructions fails withKeyError
:Looks like the credentials file generated by
cudoctl
has changed formats?Full logs from running on
berkeleyskypilot/skypilot-debug
here: https://gist.github.com/romilbhardwaj/7324c222196248c06f92962201140cb1Versions:
Here's the config generated by
cudoctl
:cc @JungleCatSW
The text was updated successfully, but these errors were encountered: