From: Mario Codeniera Date: Tue, 6 Dec 2022 08:18:03 +0000 (+1300) Subject: Check first the OSD storage file rather than after created X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e5ad1953dccf7463507b932b04a00a17f3c8d81e;p=ceph-ansible.git Check first the OSD storage file rather than after created Signed-off-by: Mario Codeniera --- diff --git a/Vagrantfile b/Vagrantfile index a25b9641e..72e891f1b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -523,9 +523,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end (0..2).each do |d| + unless File.exist?("disk-#{i}-#{d}.vdi") vb.customize ['createhd', '--filename', "disk-#{i}-#{d}", - '--size', '11000'] unless File.exist?("disk-#{i}-#{d}.vdi") + '--size', '11000'] + end vb.customize ['storageattach', :id, '--storagectl', 'OSD Controller', '--port', 3 + d,