Attach an extra drive to baremetal vms

This commit is contained in:
Ben Nemec 2015-02-09 16:08:58 -06:00
parent 7d20b784b6
commit 2476791b1c

View File

@ -40,6 +40,14 @@ MACS=$(for i in $(seq 0 3); do echo -n $(tripleo get-vm-mac baremetal_$i)" "; do
cp $RCFILE /tmp/deploy-virt-overcloudrc cp $RCFILE /tmp/deploy-virt-overcloudrc
sed -i "s/MACS=\"\"/MACS=\"$MACS\"/" /tmp/deploy-virt-overcloudrc sed -i "s/MACS=\"\"/MACS=\"$MACS\"/" /tmp/deploy-virt-overcloudrc
# Attach disks for os-disk-config testing
for i in $(seq 0 3); do
qcow_file=/var/lib/libvirt/images/baremetal_extra_${i}.qcow2
sudo rm -f $qcow_file
sudo qemu-img create $qcow_file 10G
sudo virsh attach-disk baremetal_$i $qcow_file vdb --driver=file --subdriver=qcow2 --persistent
done
export UNDERCLOUD_VM_NAME=${UNDERCLOUD_VM_NAME:-"instack"} export UNDERCLOUD_VM_NAME=${UNDERCLOUD_VM_NAME:-"instack"}
export UNDERCLOUD_OS=${UNDERCLOUD_OS:-"fedora-20"} export UNDERCLOUD_OS=${UNDERCLOUD_OS:-"fedora-20"}
export UNDERCLOUD_INSTALL=${UNDERCLOUD_INSTALL:-1} export UNDERCLOUD_INSTALL=${UNDERCLOUD_INSTALL:-1}