Format volumes filesystems in parallel
Format volumes filesystems in parallel

Formatting in ext4 can be a long operation (several minutes for large
disks). With multiple volumes per instance, this significantly increases
cluster set-up time.

Since formatting and mounting can be done in parallel (bottleneck is
disk IO, not CPU), spawn a thread for each volume.

This change applies to the Heat engine only, because the direct engine
also attach devices to instances and this must be done sequentially.

Change-Id: Ie0d47c0906da7c123383646842003675096a2fc7
Closes-Bug: #1394593

zhangjunli177/sahara,redhat-openstack/sahara,henaras/sahara,egafford/sahara,esikachev/scenario,zhujzhuo/Sahara,tellesnobrega/sahara,henaras/sahara,redhat-openstack/sahara,matips/iosr-2015,esikachev/sahara-backup,bigfootproject/sahara,matips/iosr-2015,crobby/sahara,ekasitk/sahara,esikachev/scenario,tellesnobrega/sahara,zhujzhuo/Sahara,zhujzhuo/Sahara,openstack/sahara,crobby/sahara,egafford/sahara,redhat-openstack/sahara,matips/iosr-2015,esikachev/sahara-backup,ekasitk/sahara,openstack/sahara,bigfootproject/sahara,esikachev/sahara-backup,henaras/sahara,zhangjunli177/sahara,zhangjunli177/sahara,ekasitk/sahara,esikachev/scenario,crobby/sahara,bigfootproject/sahara