Closed poflynn closed 9 years ago
This one is most like an incorrectly configured /etc/hosts
, /etc/sysconfig/network
or /etc/resolv.conf
(it should in most cases not be reporting localhost as the hostname for your machine):
Vagrant returned an exception while calling the SoftLayer API.
Exception class: SocketError
Exception message: getaddrinfo: Name or service not known
[paul.oflynn@localhost vagrant]$ vagrant destroy
After fixing the above error, increase sl.api_timeout
in your Vagrant config from the default value if you still get these errors:
Vagrant returned an exception while calling the SoftLayer API.
Exception class: Net::OpenTimeout
Exception message: execution expired
Vagrant returned an exception while calling the SoftLayer API.
Exception class: Net::ReadTimeout
Exception message: Net::ReadTimeout
Closing, let us know if you are still hitting these issues.
Hey just to follow-up: Your suggestions fixed almost everything but I am still getting some network-related errors which I am assuming are on my end only. Thanks a lot for the quick and detailed response.
Not sure if its relevant to your resolv bug above, but posting here as its close enough. Depending on your /etc/resolv.conf
for a machine if you customize it with ndots you may hit a resolution bug: https://bugs.ruby-lang.org/issues/10412 . The built in vagrant ruby might hit this depending on what version the latest one is at. Noticed it doc'ed in the latest RHEL ruby update.
Hey thanks a lot for the follow-up despite the issue being closed, impressive. So if you really are morbidly curious here's my deal: My company forces me to us Windows (mostly for security reasons) so I had created a CentOS VM on it in VirtualBox and was doing my work from there. Then they rolled out OpenDNS Umbrella for Windows which appeared to cause all my DNS lookups to fail from within the VM. I worked around somewhat by hardcoding the OpenDNS server IPs in /etc/resolv.conf which allows me to browse the web etc but i was still getting errors in vagrant. I did not do any ndot stuff and in fact have nothing in resolv.conf other than the 2 OpenDNS server names. I've actually given up on it, for now at least, but will return to it when I have a chance. Thanks for all of your support.
I implemented the workaround in #44 and got past that error but now I seem to be in some round-robin loop of various errors. For the life of me I can't seem to get a machine created. Any ideas on what might be happening? I recently upgraded both vagrant and the SL plugin.
Thanks,
Paul