Comments (7)
@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.
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.
@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.
@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.
@kidlab , @abhishekkr, Can you please close this if it's not an issue?
from knife-google.
@NimishaS I can't close the ticket because I didn't open it. Permissions are not such.
from knife-google.
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)
- No support for GCE image family HOT 23
- knife server create fails if no --gce-public-ip option is supplied HOT 4
- Can't Modify Frozen String HOT 1
- how do i mount a disk on an instance which i am creating HOT 3
- not honoring "--node-ssl-verify-mode none" HOT 1
- Dependency Conflict on MacOS HOT 2
- server create bug HOT 2
- Unresolved Dependency Causes StackTrace HOT 2
- Doesn't Detect Default Project HOT 3
- Need to Enter Zone to View Zones HOT 1
- knife google server create fails while bootstrap to centos node
- knife google server create fails for option --bootstrap-protocol and --image-os-type HOT 1
- ssh-agent no key added issue while node bootstra. HOT 1
- SSH Authentication failed for root user which should be the user passed in --ssh-user. HOT 1
- Bootstrapping the node fails while running `sh /tmp/chef_7ObzwE/bootstrap.sh` for windows workstation HOT 2
- knife google server create fails while bootstrap to windows node
- Dependabot can't parse your Gemfile
- Undefined method check_for_missing_config_values!
- Downloaded metadata file is corrupted
- Migrate to the new Google API gems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife-google.