mitchellh / vagrant-rackspace

Use Vagrant to manage Rackspace Cloud instances.
MIT License
235 stars 155 forks source link

timeoutError for service cloudServersOpenStack #139

Open refaelgold opened 9 years ago

refaelgold commented 9 years ago

Hey , i try to make a rackspace envirment

Vagrant.configure("2") do |config|
  # The box is optional in newer versions of Vagrant
  # config.vm.box = "dummy"

  config.vm.provider :rackspace do |rs|
    rs.username = "SECRET"
    rs.api_key  = "SECRET"
    rs.flavor   = /1 GB Performance/
    rs.image    = /Ubuntu/
    rs.metadata = {"key" => "value"}       # optional
  end
end

i get this error

vagrant up --provider=rackspace
/Users/nirgoldman/.vagrant.d/gems/gems/fog-1.30.0/lib/fog/rackspace/models/identity/service_catalog.rb:54:in `get_endpoint': Unknown region : for service cloudServersOpenStack. Please use one of the following regions: :lon (RuntimeError)

can you tell me what is the error and how to fix it?

Thanks, Nir

smashwilson commented 9 years ago

Hi @refaelgold,

You'll also need to explicitly specify a region:

config.vm.provider :rackspace do |rs|
  rs.username = "SECRET"
  rs.api_key  = "SECRET"
  rs.flavor   = /1 GB Performance/
  rs.image    = /Ubuntu/
  rs.rackspace_region = :lon  # <= Like so
  rs.metadata = {"key" => "value"}
end

Hmm, I see the README and the code comments are out of date. I'll see what I can do.

mdarby commented 9 years ago

Here is a list of Rackspace's regions: