From: Prisacari Dmitrii Date: Fri, 8 Dec 2017 17:09:50 +0000 (+0200) Subject: Vagrantfile: Fixed repeated OSD controller creation X-Git-Tag: v3.0.16~28^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eab5f0fa3662ac7149401b8514bdca5cdfe50220;p=ceph-ansible.git Vagrantfile: Fixed repeated OSD controller creation --- diff --git a/Vagrantfile b/Vagrantfile index 3f5a00f24..24176edcf 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -479,9 +479,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # Virtualbox osd.vm.provider :virtualbox do |vb| # Create our own controller for consistency and to remove VM dependency - vb.customize ['storagectl', :id, - '--name', 'OSD Controller', - '--add', 'scsi'] + unless File.exist?("disk-#{i}-0.vdi") + # Adding OSD Controller; + # once the first disk is there assuming we don't need to do this + vb.customize ['storagectl', :id, + '--name', 'OSD Controller', + '--add', 'scsi'] + end + (0..1).each do |d| vb.customize ['createhd', '--filename', "disk-#{i}-#{d}",