Skip to content

Instantly share code, notes, and snippets.

@kyanny
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyanny/6ce12317582b130fe4ff to your computer and use it in GitHub Desktop.
Save kyanny/6ce12317582b130fe4ff to your computer and use it in GitHub Desktop.
Vagrant.configure(2) do |config|
config.vm.box = 'openstack'
config.ssh.username = 'stack'
config.vm.provider :openstack do |os|
os.openstack_auth_url = 'https://identity.tyo1.conoha.io/v2.0/tokens'
os.username = ENV['CONOHA_API_USER_NAME']
os.password = ENV['CONOHA_API_PASSWORD']
os.tenant_name = ENV['CONOHA_TENANT_NAME']
os.flavor = '7eea7469-0d85-4f82-8050-6ae742394681' # g-1gb
os.image = 'fc29c8a5-494b-4229-9d09-3f8185ef50ee' # gncvmi-jenkins-1.6-centos-6.6
os.floating_ip_pool = 'publicNetwork' # FIXME: what's the correct value of this attribute?
end
end
@kyanny
Copy link
Author

kyanny commented Aug 6, 2015

$ vagrant up --provider=openstack
==> default: 3 endpoints are available for service 'identity' but only the first one will be used
==> default:   => https://identity.sjc1.conoha.io/v2.0
Bringing machine 'default' up with 'openstack' provider...
==> default: Finding flavor for server...
==> default: Finding image for server...
==> default: Launching a server with the following settings...
==> default:  -- Tenant          : gnct********
==> default:  -- Name            : default
==> default:  -- Flavor          : g-1gb
==> default:  -- FlavorRef       : 7eea7469-0d85-4f82-8050-6ae742394681
==> default:  -- Image           : gncvmi-jenkins-1.6-centos-6.6
==> default:  -- ImageRef        : fc29c8a5-494b-4229-9d09-3f8185ef50ee
==> default:  -- KeyPair         : vagrant-generated-bgobmrqv
==> default: Waiting for the server to be built...
An unknow error happened in Vagrant OpenStack provider

To easily debug what happened, we recommend to set the environment
variable VAGRANT_OPENSTACK_LOG to debug

    $ export VAGRANT_OPENSTACK_LOG=debug

If doing this does not help fixing your issue, there may be a bug
in the provider. Please submit an issue on Github at
https://github.com/ggiamarchi/vagrant-openstack-provider
with the stracktrace and the logs.

We are looking for feedback, so feel free to ask questions or
describe features you would like to see in this provider.
 (JSON::ParserError)d/lib/ruby/2.0.0/json/common.rb:155:in `parse': Catched Error: Catched Error: Catched Error: Catched Error: 757: unexpected token at '<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>openresty/1.7.10.1</center>
</body>
</html>
'
        from /opt/vagrant/embedded/lib/ruby/2.0.0/json/common.rb:155:in `parse'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/client/http_utils.rb:94:in `handle_response'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/client/http_utils.rb:22:in `block (2 levels) in get'
        from /Users/kyanny/.vagrant.d/gems/gems/rest-client-1.6.9/lib/restclient/request.rb:267:in `call'
        from /Users/kyanny/.vagrant.d/gems/gems/rest-client-1.6.9/lib/restclient/request.rb:267:in `process_result'
        from /Users/kyanny/.vagrant.d/gems/gems/rest-client-1.6.9/lib/restclient/request.rb:212:in `block in transmit'
        from /opt/vagrant/embedded/lib/ruby/2.0.0/net/http.rb:852:in `start'
        from /Users/kyanny/.vagrant.d/gems/gems/rest-client-1.6.9/lib/restclient/request.rb:206:in `transmit'
        from /Users/kyanny/.vagrant.d/gems/gems/rest-client-1.6.9/lib/restclient/request.rb:68:in `execute'
        from /Users/kyanny/.vagrant.d/gems/gems/rest-client-1.6.9/lib/restclient/request.rb:35:in `execute'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/client/rest_utils.rb:8:in `get'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/client/http_utils.rb:22:in `block in get'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/client/http_utils.rb:104:in `authenticated'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/client/http_utils.rb:21:in `get'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/client/nova.rb:27:in `get_all_floating_ips'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/config_resolver.rb:140:in `search_free_ip'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/config_resolver.rb:45:in `resolve_floating_ip'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/create_server.rb:146:in `assign_floating_ip'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/create_server.rb:52:in `execute'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/abstract_action.rb:8:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/create_stack.rb:46:in `execute'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/abstract_action.rb:8:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/sync_folders.rb:48:in `call'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/sync_folders.rb:20:in `execute'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/abstract_action.rb:8:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builtin/provision.rb:80:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/connect_openstack.rb:32:in `execute'
        from /Users/kyanny/.vagrant.d/gems/gems/vagrant-openstack-provider-0.6.1/lib/vagrant-openstack-provider/action/abstract_action.rb:8:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:214:in `action_raw'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:191:in `block in action'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:516:in `lock'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:178:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:178:in `action'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment