summaryrefslogtreecommitdiffstats
path: root/deploy/environments/virtual_fuel.py
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2016-11-01 12:20:56 +0300
committerMichael Polenchuk <mpolenchuk@mirantis.com>2016-11-03 07:50:25 +0000
commit771761f708e6cb61fba99abf67a07111e1c75470 (patch)
treec46adb61851c1c1a0d5f5c5f93f11919181654a2 /deploy/environments/virtual_fuel.py
parentc11337074cfa0d520fb3fa876965e420fd7145e3 (diff)
[virtual envs] Switch to raw imagescolorado.2.0
* use raw devices instead of qcow2 * disable i/o caching, it reduces data copies and bus traffic * set native aio instead of thread based JIRA: FUEL-201 Change-Id: I8ac728cbb5be5948080fab8ae4d3d311e0a5c09c Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com> (cherry picked from commit ed79331c115eac4aad0eccd4b191c9e1e836c73d)
Diffstat (limited to 'deploy/environments/virtual_fuel.py')
-rw-r--r--deploy/environments/virtual_fuel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/environments/virtual_fuel.py b/deploy/environments/virtual_fuel.py
index b1a76e479..5ddd93b51 100644
--- a/deploy/environments/virtual_fuel.py
+++ b/deploy/environments/virtual_fuel.py
@@ -87,7 +87,7 @@ class VirtualFuel(ExecutionEnvironment):
else:
err('No devices!')
- def create_volume(self, pool, name, su, img_type='qcow2'):
+ def create_volume(self, pool, name, su, img_type='raw'):
log('Creating image using Libvirt volumes in pool %s, name: %s' %
(pool, name))
size, unit = get_size_and_unit(su)
@@ -109,7 +109,7 @@ class VirtualFuel(ExecutionEnvironment):
def create_image(self, disk_path, disk_size):
if os.environ.get('LIBVIRT_DEFAULT_URI') == None:
- exec_cmd('qemu-img create -f qcow2 %s %s' % (disk_path, disk_size))
+ exec_cmd('qemu-img create -f raw %s %s' % (disk_path, disk_size))
else:
pool = DEFAULT_POOL # FIXME
name = os.path.basename(disk_path)