Fix QEMU cache mode used for image conversion and Nova instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Kashyap Chamarthy |
Bug Description
Nova uses QEMU's disk image cache modes in two main areas:
(1) When decicding what cache mode to use for the target disk image when
converting (using `qemu-img convert`) images from one format to
another (qcow2 <-> raw).
See unprivileged_
(2) When configuring cache modes for running guests (Nova instances).
Nova tells libvirt what cache mode to use, and libvirt will in turn
configure block devices via QEMU (using its '-drive' command-line
option).
See disk_cachemode() in nova/virt/
"volume drivers" like SMBFS and Virtuozzo Storage also use
'writethrough' -- refer smbfs.py and vzstorage.py.)
In both cases Nova uses QEMU's a combination of cache modes 'none' and
'writethrough'. But that is incorrect, because of our misunderstanding
of how cache modes work. E.g. Nova's libvirt driver currently assumes
(refer disk_cachemode()) that 'writethrough' and 'none' cache modes have
the same behaviour with respect to host crash safety, which is not at
all true.
Fix these wrong assumptions.
(Also consult the QEMU Block Layer developers to double-check the
behaviour of cache modes and where they are applicable.)
summary: |
- Fix QEMU cache mode for image conversion and Nova instances + Fix QEMU cache mode used for image conversion and Nova instances |
tags: | added: libvirt |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
importance: | Low → Medium |
Changed in nova: | |
assignee: | Kashyap Chamarthy (kashyapc) → Sylvain Bauza (sylvain-bauza) |
Changed in nova: | |
assignee: | Sylvain Bauza (sylvain-bauza) → Kashyap Chamarthy (kashyapc) |
Changed in nova: | |
assignee: | Kashyap Chamarthy (kashyapc) → Eric Fried (efried) |
Changed in nova: | |
assignee: | Eric Fried (efried) → Kashyap Chamarthy (kashyapc) |
Fix proposed to branch: master /review. openstack. org/641981
Review: https:/