Skip to content
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

Spinning up a GCP instance from an EC2 instance results in an error #81

Closed
jameshcoppens opened this issue Nov 6, 2015 · 1 comment
Closed

Comments

@jameshcoppens
Copy link

Whenever I issue the following command to try and create a GCP instance

knife google server create test-01-production-chs -m n1-standard-2 -I ubuntu-1404-trusty-v20150909a --gce-image-project-id ubuntu-os-cloud -n um-subnet-chs-1b-public-admin -N 01.test.production.chs -E production -Z us-east1-b --gce-boot-disk-size 40G -i ec2_keys/um_vn_key_chs.pem -x ubuntu --gce-server-connect-ip PUBLIC -VV

I get the following output

Instance Name: test-01-production-chs
Machine Type: n1-standard-2
Image: ubuntu-1404-trusty-v20150909a
Zone: us-east1-b
Tags: None
Public IP Address: ["104.196.13.69"]
Private IP Address: ["10.4.0.3"]

Waiting for server

Waiting for sshd
DEBUG: sshd accepting connections on 104.196.13.69, banner is SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3

done
ERROR: knife encountered an unexpected error
This may be a bug in the 'google server create' knife command or plugin
Please collect the output of this command with the -VV option before filing a bug report.
Exception: NoMethodError: undefined method `empty?' for nil:NilClass

Any insight would be very helpful.

@jameshcoppens
Copy link
Author

I figured out what the issue is. I had to create an empty runlist for the the plugin to work

I had to append
-r ''
to the end of my string in order for it to work correctly.

Interesting issue that seems like it should have been solved already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant