-
Notifications
You must be signed in to change notification settings - Fork 452
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
GCE Plugin infinite loop #382
Comments
@brauliobo Did you by any change found a work around for this? 👍 For a fix for this |
@jvanbaarsen Yeah, disable it! |
Does this still replicate on ohai-8.0.x and chef-12? Also, we don't support non-omnibus installs of chef that I can see that you're doing in /usr/lib/ruby and we're dropping support for 1.9.x in Chef-12.1.0 (the gem will no longer install on that ruby). |
@lamont-granquist I finally installed a vagrant box with chef succesfully yesterday, but im not sure if its because I switched to VMWare provider or an update in chef / ohai. I'll look at that later this week. |
Same problem here. Some of my nodes have a NATed network, all of them are encountering this error. I was also able to reproduce this issue via chef's embedded irb:
Supplying an invalid port returns the result which is expected by the GCE Mixin (-> failing):
However, I'm quite sure this has something to do with my NATed setup, as a connection on TCP 80 to any URL via Ruby socket succeeds:
EDIT
|
Disable gce plugin Temporary fix for the issue #422 and chef/ohai#382 See merge request !281
We hit the same problem, and it is easy to reproduce once you understand the root-cause. It all boils down to if your VM is in the "smoketest.com" domain, then the GCE plugin is able to resolve the metadata.google.internal hostname, as in: nslookup metadata.google.internal.smoketest.comServer: 10.0.80.11 Non-authoritative answer: This tricks the Ohai/GCE plugin into thinking that the VM is running in the GCE cloud, and hangs chef-server / chef-client startup (since 69.172.201.208 is not a real GCE metadata server). |
#736 should make this better |
This is resolved with #736 via a short timeout period. |
How to disable it with knife solo?
chef/chef#1756
The text was updated successfully, but these errors were encountered: