Coder Social home page Coder Social logo

Comments (2)

Michaelvll avatar Michaelvll commented on May 29, 2024

Seems the error can be fixed by avoiding uploading the credential files when the service account is used, i.e. check if GCP._get_identity_type() == GCPIdentityType.SERVICE_ACCOUNT, return an empty dict in file mounts:

skypilot/sky/clouds/gcp.py

Lines 763 to 782 in 0696eba

def get_credential_file_mounts(self) -> Dict[str, str]:
# Excluding the symlink to the python executable created by the gcp
# credential, which causes problem for ray up multiple nodes, tracked
# in #494, #496, #483.
# We only add the existing credential files. It should be safe to ignore
# the missing files, as we successfully created the VM at this point,
# meaning the authentication is successful.
credentials = {
f'~/.config/gcloud/{filename}': f'~/.config/gcloud/{filename}'
for filename in _CREDENTIAL_FILES
if os.path.exists(os.path.expanduser(
f'~/.config/gcloud/{filename}'))
}
application_key_path = self._find_application_key_path()
if os.path.exists(os.path.expanduser(application_key_path)):
# Upload the application key path to the default path, so that
# autostop and GCS can be accessed on the remote cluster.
credentials[DEFAULT_GCP_APPLICATION_CREDENTIAL_PATH] = (
application_key_path)
return credentials

from skypilot.

concretevitamin avatar concretevitamin commented on May 29, 2024

An attempted fix that uploads ~/.config/gcloud/legacy_credentials/<currently active account> subdir rather than the whole ~/.config/gcloud/legacy_credentials/ dir: c1ea4ed

from skypilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.