Giter Site home page Giter Site logo

Google::Apis::ClientError about knife-google HOT 7 CLOSED

chef avatar chef commented on August 19, 2024
Google::Apis::ClientError

from knife-google.

Comments (7)

dheerajd-msys avatar dheerajd-msys commented on August 19, 2024

@kidlab ,
I am able to run this command successfully. How do you provide the google-compute.json file to your command?
You may need to set the GOOGLE_APPLICATION_CREDENTIALS environment variable with the full path to that file.

Also check if project is created and you have permission to access it.

from knife-google.

abhishekkr avatar abhishekkr commented on August 19, 2024

My knife-google-2.2.0 also suddenly started failing for a command that was working for long.
I've gce utils working, so no issues with credentials. This same setup was working till few weeks back.
Defaults for Project, Zone for Googel Cloud are all correct.

When I tried tracking source of raise, it happens in knife-google-2.2.0/lib/chef/knife/cloud/google_service.rb in method check_api_call at rescue Google::Apis::ClientError

The error comes like

  • ERROR: RuntimeError: Invalid machine type: n1-standard-1

command used

knife google server create "$_MACHINE_NAME" -E "$_MACHINE_ENVIRONMENT" -Z "$_MACHINE_ZONE" -m "$_MACHINE_TYPE" -T "a-tag-to-give" -I "$_MACHINE_IMAGE" --gce-public-ip 'None' --gce-use-private-ip --gce-boot-disk-autodelete --gce-boot-disk-size ${_MACHINE_DISKSIZE} --gce-metadata sshKeys='someone:ssh-rsa AAAA_MY_PUBLIC_KEY someone@abk' -x "someone" -i "${_MY_PRIVATE_KEY}" --no-host-key-verify -r 'recipe[mycookbook]' -c "${MY_KNIFE_RB}"

from knife-google.

dheerajd-msys avatar dheerajd-msys commented on August 19, 2024

@abhishekkr ,
I checked all possible values and command run fine for me. Machine is being created of type n1-standard-1
Could you please share all the actual values used in your command instead of variables ? So that I can verify.

from knife-google.

abhishekkr avatar abhishekkr commented on August 19, 2024

@dheerajd-msys my bad, should have updated here... was reviewing my profile funcs, it was an assignment issue due to bad refactoring, no issue with knife-google

from knife-google.

NimishaS avatar NimishaS commented on August 19, 2024

@kidlab , @abhishekkr, Can you please close this if it's not an issue?

from knife-google.

abhishekkr avatar abhishekkr commented on August 19, 2024

@NimishaS I can't close the ticket because I didn't open it. Permissions are not such.

from knife-google.

adamleff avatar adamleff commented on August 19, 2024

I will go ahead and close this ticket now as this does not appear to be an issue with knife-google. Thanks!

from knife-google.

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.