Hi gang,
I'm starting to try vagrant/rackspace integration and running into trouble 
specifying a custom SSH keypair or perhaps have encountered a new bug in 
the Rackspace API. Can you take a look?

Works without custom SSH-keypair

Trying to get going with Vagrant and Rackspace, I was able to spool up a 
box with the dummy *.box* file and insecure Vagrant keys, following these 
instructions <https://github.com/mitchellh/vagrant-rackspace#quick-start>.

Vagrant.configure("2") do |config|
  #----------
  # config.vm
  #----------
  config.vm.box     = "dummy"
  config.vm.box_url = 
"https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box";

  #------------------
  # config rackspace
  #------------------
  config.vm.provider :rackspace do |rs|
    rs.username         = "xxxxxx"
    rs.api_key          = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    rs.flavor           = "1 GB Performance"
    rs.image            = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    rs.rackspace_region = "dfw"
    rs.server_name      = "test-vagrant"
  end
end

Broken with custom SSH-keypair

Trying to then specify a keypair with the following configuration

Vagrant.configure("2") do |config|
  #----------
  # config.vm
  #----------
  config.vm.box     = "dummy"
  config.vm.box_url = 
"https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box";

  #-----------
  # config.ssh
  #-----------
  config.ssh.private_key_path = "/Users/natedogg/.ssh/id_rsa"

  #------------------
  # config rackspace
  #------------------
  config.vm.provider :rackspace do |rs|
    rs.username         = "xxxxxx"
    rs.api_key          = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    rs.flavor           = "1 GB Performance"
    rs.image            = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    rs.rackspace_region = "dfw"
    rs.server_name      = "test-vagrant"
    rs.public_key_path  = "/Users/natedogg/.ssh/id_rsa.pub"
  end
end

vagrant up --provider=rackspace results in an HTTP 413 from Rackspace.

~/.vagrant.d/gems/gems/excon-0.31.0/lib/excon/middlewares/expects.rb:6:in 
`response_call': [HTTP 413 | ] Personality file content too long 
(Fog::Compute::RackspaceV2::ServiceError)

Have Tried
   
   - Different rs.flavor (512MB Standard Instance)
   - Different installations of Vagrant

Seems like this would be a common problem since insecure keys would be bad 
on a Rackspace box.

thanks,

-nathan

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to