]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: make libvirt use the same device names as virtualbox 1098/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 16 Nov 2016 19:01:22 +0000 (13:01 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 16 Nov 2016 21:15:32 +0000 (15:15 -0600)
This makes our libvirt boxes come up with the OS on /dev/vda and
three devices added at /dev/sd{a/b/c} so that we can ensure that
the OSD devices we want to use can always be available for
both virtualbox and libvirt for both xenial and centos7.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Vagrantfile
vagrant_variables.yml.sample

index 3957d4c235621f239ce7b141a6084d6ea5310a9f..895dfc7684de158b59d15bb27573efb221ce4665 100644 (file)
@@ -444,10 +444,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
       end
 
       # Libvirt
-      driverletters = ('b'..'z').to_a
+      driverletters = ('a'..'z').to_a
       osd.vm.provider :libvirt do |lv|
-        (0..1).each do |d|
-          lv.storage :file, :device => "vd#{driverletters[d]}", :path => "disk-#{i}-#{d}.disk", :size => '11G'
+        # always make /dev/sd{a/b/c} so that CI can ensure that
+        # virtualbox and libvirt will have the same devices to use for OSDs
+        (0..2).each do |d|
+          lv.storage :file, :device => "hd#{driverletters[d]}", :path => "disk-#{i}-#{d}.disk", :size => '12G', :bus => "ide"
         end
         lv.memory = MEMORY
       end
index 640eba9a12eb2394d7373f633812adef0958d10e..4d3963326b2a574fe586fb1ef9c0187aba5f804d 100644 (file)
@@ -29,7 +29,7 @@ memory: 512
 eth: 'eth1'
 
 # Disks
-# For libvirt use disks: "[ '/dev/vdb', '/dev/vdc' ]"
+# For Xenial use disks: "[ '/dev/sdb', '/dev/sdc' ]"
 # For CentOS7 use disks: "[ '/dev/sda', '/dev/sdb' ]"
 disks: "[ '/dev/sdb', '/dev/sdc' ]"