From 82906cd3c946f9689afe03b52ada16707f5b9a92 Mon Sep 17 00:00:00 2001 From: "zhu.boxiang" Date: Mon, 27 May 2019 10:17:03 +0800 Subject: [PATCH] Use true for force_raw_images when using ceph image backend We need this patch for two reasons: Nova of starlingx has not this patch[0]. We use remote storage(ceph) as nova backend. If we set force_raw_image to False and use qcow2 format image to boot vms, the vms will fail to boot. Nova of starlingx will have this patch[0]. If we still use False for force_raw_images, the nova-compute service will refuse to start. So that, we must set this force_raw_images to True at all. [0] https://review.opendev.org/#/c/640271/ Change-Id: I76d48a4bf6846783edb4bb80724f777288bd9327 Story: 2003909 Task: 33547 Signed-off-by: zhu.boxiang --- sysinv/sysinv/sysinv/sysinv/helm/nova.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sysinv/sysinv/sysinv/sysinv/helm/nova.py b/sysinv/sysinv/sysinv/sysinv/helm/nova.py index 9866e383c9..ef846c87e1 100644 --- a/sysinv/sysinv/sysinv/sysinv/helm/nova.py +++ b/sysinv/sysinv/sysinv/sysinv/helm/nova.py @@ -391,6 +391,7 @@ class NovaHelm(openstack.OpenstackBaseHelm): constants.CEPH_CONF_PATH + os.path.basename(ceph_ext_obj.ceph_conf) if remote_storage: + default_config.update({'force_raw_images': True}) libvirt_config.update({'images_type': 'rbd', 'images_rbd_pool': rbd_pool, 'images_rbd_ceph_conf': rbd_ceph_conf})