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 <zhu.boxiang@99cloud.net>
This commit is contained in:
zhu.boxiang 2019-05-27 10:17:03 +08:00
parent 38f7697bdc
commit 82906cd3c9
1 changed files with 1 additions and 0 deletions

View File

@ -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})