Closed visibilityspots closed 8 years ago
@visibilityspots Can you please rerun the command with debug enabled and provide the full log ?
export VAGRANT_OPENSTACK_LOG=debug
Can you also copy/paste your Vagrantfile ?
I added the log to pastebin (will expire in one month) => http://pastebin.com/e3tcFfn6
the vagrantfile:
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'vagrant-openstack-provider'
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
unless Vagrant.has_plugin?("vagrant-hostmanager")
raise 'vagrant-hostmanager plugin is not installed!'
end
if Vagrant.has_plugin?("vagrant-hostmanager")
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
config.vm.provider :openstack do|os, override|
override.ssh.pty = true
override.vm.box = "openstack"
override.ssh.username = "centos"
override.vm.provision "shell", inline: "true"
os.flavor = "2"
os.image = "centos"
os.security_groups = ['default']
os.openstack_auth_url = "http://192.168.91.11:5000/v2.0/tokens"
end
config.vm.define :cpe do |cpe|
cpe.vm.host_name = "cpe"
cpe.vm.provider :openstack do |os, override|
os.tenant_name = "XX"
os.keypair_name = "XX"
os.username = "XX"
os.password = "XX"
override.ssh.private_key_path = "XX"
os.networks = [
{
id: '016481cf-ef9f-4334-854d-564569024b29'
}
]
end
cpe.vm.synced_folder "hieradata", "/etc/hiera"
cpe.vm.synced_folder "../../tooling/", "/opt/rpms"
ext_env = ENV['VAGRANT_PUPPET_ENV']
env = ext_env ? ext_env : config_env
cpe.vm.synced_folder "puppet/environments/#{env}/modules", "/etc/puppet/environments/#{env}/modules"
cpe.vm.provision :puppet do |puppet|
puppet.options = "--environment #{env}"
puppet.hiera_config_path = "hieradata/hiera.yaml"
puppet.manifests_path = "puppet/environments/#{env}/manifests"
puppet.manifest_file = ""
puppet.module_path = "puppet/environments/production/modules"
end
end
end
I had this network configuration in my Vagrantfile:
os.networks = [
{
id: '016481cf-ef9f-4334-854d-564569024b29'
}
]
after some investigation and rereading the documentation I changed it to
os.networks = [
'016481cf-ef9f-4334-854d-564569024b29'
]
this did solved the issue and I'm now able to use vagrant ssh to login into my vagrant instance.
The vagrant up command is working fine, vagrant status does show the correct state and using native ssh I can login into the openstack instance.
But if I want to use the vagrant ssh command I get this error: