-
Notifications
You must be signed in to change notification settings - Fork 485
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
[Spot] Fix oslogin username in clusters #1106
Conversation
LGTM |
@Michaelvll Thank you for the quick fix! However, I tried again after updating the Skypilot with your fix, but the same problem still exists. Provision still failed due to no account in '~/.config/gcloud/configurations/config_default':
When I ssh into the contorller, I can see the updated sky now create a
And I checked again my local computer's
My summary is:
Logs:
|
In the GCP cluster launched by
ray up
, our uploaded GCP credentials~/.config/gcloud/configurations/config_default
will be reset to empty, probably becauseray
needs to use the service account instead of the user's account. This will affect our spot controller, as it requires that file to decide the username used for the spot clusters, when oslogin is enabled in the user project.skypilot/sky/authentication.py
Lines 201 to 226 in 783adc9
To solve the problem, we make a backup of that file in the same folder, which will be uploaded by the credential uploads. SkyPilot will read the backup file instead.
Hey @lhqing, please check out if this can fix your problem with the
sky spot launch
when you get time. ; )