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

connection timeout in authentication. (probably proxy issue) #337

Open
hadisharifi opened this issue Jun 7, 2017 · 1 comment
Open

connection timeout in authentication. (probably proxy issue) #337

hadisharifi opened this issue Jun 7, 2017 · 1 comment

Comments

@hadisharifi
Copy link

hadisharifi commented Jun 7, 2017

At my place, we use proxy and I am trying to use the plugin behind the proxy.
I am running the simple example with this plugin.
Is there any particular proxy setting I am missing?

I am already doing the typical setting env variables in windows.

this is the error I am getting:
C:/HashiCorp/Vagrant/embedded/gems/gems/rest-client-2.0.2-x86-mingw32/lib/restclient/request.rb:731:in rescue in transmit': Timed out connecting to server (RestClient Exceptions::OpenTimeout) from C:/HashiCorp/Vagrant/embedded/gems/gems/rest-client-2.0.2-x86-mingw32/lib/restclient/request.rb:647:in transmit'
from C:/HashiCorp/Vagrant/embedded/gems/gems/rest-client-2.0.2-x86-mingw32/lib/restclient/request.rb:145:in execute' from C:/HashiCorp/Vagrant/embedded/gems/gems/rest-client-2.0.2-x86-mingw32/lib/restclient/request.rb:52:in execute'
from C:/Users/hsharifi/.vagrant.d/gems/2.2.5/gems/vagrant-openstack-provider-0.10.0/lib/vagrant-openstack-provider/client/rest_utils.rb:14:in post' from C:/Users/hsharifi/.vagrant.d/gems/2.2.5/gems/vagrant-openstack-provider-0.10.0/lib/vagrant-openstack-provider/client/keystone.rb:43:in authenticate'
from C:/Users/hsharifi/.vagrant.d/gems/2.2.5/gems/vagrant-openstack-provider-0.10.0/lib/vagrant-openstack-provider/action/connect_openstack.rb:26:in execute' from C:/Users/hsharifi/.vagrant.d/gems/2.2.5/gems/vagrant-openstack-provider-0.10.0/lib/vagrant-openstack-provider/action/abstract_action.rb:8:in call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/builtin/config_validate.rb:25:in call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/builtin/handle_box.rb:25:in call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/builder.rb:116:in call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/runner.rb:66:in block in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/util/busy.rb:19:in busy'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/runner.rb:66:in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/machine.rb:225:in action_raw'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/machine.rb:200:in block in action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/machine.rb:182:in call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/machine.rb:182:in block in action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/machine.rb:186:in call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/machine.rb:186:in action' from C:/Users/hsharifi/.vagrant.d/gems/2.2.5/gems/vagrant-openstack-provider-0.10.0/lib/vagrant-openstack-provider/provider.rb:33:in state'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/machine.rb:506:in state' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/machine.rb:145:in initialize'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/vagrantfile.rb:79:in new' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/vagrantfile.rb:79:in machine'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:669:in machine' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:177:in block in with_target_vms'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:201:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:201:in block in with_target_vms'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:183:in each' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:183:in with_target_vms'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/commands/up/command.rb:131:in install_providers' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/commands/up/command.rb:85:in execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/cli.rb:42:in execute' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:308:in cli'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/bin/vagrant:138:in `

'

@ggiamarchi
Copy link
Owner

I'm afraid we didn't implement proxy support (see #84). By the way, the underlying library we use for HTTP calls support proxy settings and it can be set statically. So, you can probably hack in your Vagrantfile something like that

require 'restclient'
RestClient.proxy = "http://my-proxy"

Vagrant.configure('2') do |config|
    ...
end

I think it should work.

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

2 participants