From 9dc122c3ddd852f4572ffff0c6d5ed6f84fa2a96 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 12 Sep 2016 12:29:57 -0400 Subject: [PATCH] Don't force images to raw format We upload our images today as qcow2 format, however compute nodes will force them to raw format. To improve performance when first booting a node, do bother converting the image to raw format. Change-Id: I82e16825a90a1a8995b6dd3c8769954e3976a15f Signed-off-by: Paul Belanger --- manifests/compute.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/compute.pp b/manifests/compute.pp index 8b12053..fc52081 100644 --- a/manifests/compute.pp +++ b/manifests/compute.pp @@ -100,7 +100,8 @@ class infracloud::compute( # nova-compute service class { '::nova::compute': - enabled => true, + enabled => true, + force_raw_images => false, } # nova.conf neutron credentials @@ -119,6 +120,12 @@ class infracloud::compute( libvirt_virt_type => $virt_type, } + # NOTE(pabelanger): This is needed for force_raw_images to work. Otherwise + # nova will still convert images to raw. + nova_config { + 'libvirt/images_type': value => 'qcow2'; + } + ### Neutron ### # neutron.conf