diff options
author | Fedor Zhadaev <fzhadaev@mirantis.com> | 2016-11-02 04:29:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-02 04:29:31 +0000 |
commit | cdd06895fa0453c79e67838b801e7cce3a9eff5e (patch) | |
tree | 609379f186b9dc7e473524d71ac602f08526b689 /deploy/environments | |
parent | 24d3bc11cc36528143fe833b05f2d9cbd1641a9f (diff) | |
parent | ed79331c115eac4aad0eccd4b191c9e1e836c73d (diff) |
Merge "[virtual envs] Switch to raw images"
Diffstat (limited to 'deploy/environments')
-rw-r--r-- | deploy/environments/libvirt_environment.py | 2 | ||||
-rw-r--r-- | deploy/environments/virtual_fuel.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/deploy/environments/libvirt_environment.py b/deploy/environments/libvirt_environment.py index c9fa41fd7..07a47fd7e 100644 --- a/deploy/environments/libvirt_environment.py +++ b/deploy/environments/libvirt_environment.py @@ -36,7 +36,7 @@ class LibvirtEnvironment(ExecutionEnvironment): def create_storage(self, node_id, disk_path, disk_sizes): role = self.dea.get_node_main_role(node_id, self.fuel_node_id) disk_size = disk_sizes[role] - 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)) def create_vms(self): temp_dir = tempfile.mkdtemp() 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) |