Description of problem: ======================= Trying to set the ceph containers using vagrant and ansible and when it fails with the below message during 'vagrant up --no-provision' [root@dhcp43-179 ceph-ansible]# vagrant up --no-provision /root/ceph-ansible/Vagrantfile:288:in `block in <top (required)>': undefined method `-' for nil:NilClass (NoMethodError) from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/config/v2/loader.rb:37:in `call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/config/v2/loader.rb:37:in `load' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/config/loader.rb:113:in `block (2 levels) in load' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/config/loader.rb:107:in `each' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/config/loader.rb:107:in `block in load' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/config/loader.rb:104:in `each' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/config/loader.rb:104:in `load' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/vagrantfile.rb:28:in `initialize' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/environment.rb:740:in `new' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/environment.rb:740:in `vagrantfile' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/environment.rb:486:in `host' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/environment.rb:208:in `block in action_runner' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/action/runner.rb:33:in `call' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/action/runner.rb:33:in `run' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/environment.rb:473:in `hook' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/lib/vagrant/environment.rb:722:in `unload' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/bin/vagrant:177:in `ensure in <main>' from /opt/vagrant/embedded/gems/gems/vagrant-1.8.5/bin/vagrant:177:in `<main>' [root@dhcp43-179 ceph-ansible]# Version-Release number of selected component (if applicable): ============================================================= 2.0 How reproducible: ================= 100% Steps to Reproduce: 1. Followed the documentation to setup the ceph container using vagrant and ansible. Actual results: Expected results: Additional info:
Did you copy all the files? Like vagrant_variables.yml?
I followed the below document for setting up the cluster using vagrant. https://docs.google.com/document/d/1Ef5a_-Yjozy5Ue3C0M7mMQNn6zWZe0-514bhxKwFHI8/edit?ts=576a3d95&pli=1# Did copy the files.
Does the command: "vagrant status" return the same error?
Vagrant status output: [root@dhcp43-179 ceph-ansible]# vagrant status No usable default provider could be found for your system. Vagrant relies on interactions with 3rd party systems, known as "providers", to provide Vagrant with resources to run development environments. Examples are VirtualBox, VMware, Hyper-V. The easiest solution to this message is to install VirtualBox, which is available for free on all major platforms. If you believe you already have a provider available, make sure it is properly installed and configured. You can see more details about why a particular provider isn't working by forcing usage with `vagrant up --provider=PROVIDER`, which should give you a more specific error message for that particular provider. This looks more to be a documentation i guess. Should we login to a hypervisor and do the vagrant provisioning ??
yes you need to run this command on the same node where you're trying to provision, which provider do you use?
Okay. I am using KVM.
libvirt.
So can you resend the output of the command from the node where you're trying to provision?
I suspect this is a setup issue with your vagrant and libvirt provider
Will update that shortly.
But the documentation has to be modified accordingly else wouldn't know from where to run vagrant.
Comment #11 is correct. Error in comment #6 ("No usable default provider could be found for your system") is a Vagrant setup error.
This is caused by a missing variable in vagrant_variables.yml.atomic, which is used as a reference and copied into vagrant_variables.yml per the instructions in the doc linked in comment #4. I've created https://github.com/ceph/ceph-ansible/pull/990 to fix this.