libvirt driver ignores 'disk_cachemodes' configuration setting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Kashyap Chamarthy | ||
Newton |
Fix Committed
|
High
|
melanie witt | ||
Ocata |
Fix Committed
|
High
|
melanie witt | ||
Pike |
Fix Committed
|
High
|
melanie witt |
Bug Description
The libvirt driver is ignoring the 'disk_cachemodes' configuration setting and is always setting "cache='none'" in the device xml.
For example, with a setting in nova.conf of "disk_cachemode
Expected result:
# virsh dumpxml <instance> | grep cache
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
Actual result:
# virsh dumpxml <instance> | grep cache
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
This is a regression in pike [1] that was also backported to ocata and newton.
Changed in nova: | |
assignee: | nobody → melanie witt (melwitt) |
status: | New → In Progress |
Changed in nova: | |
assignee: | melanie witt (melwitt) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Kashyap Chamarthy (kashyapc) |
importance: | Undecided → High |
Patch is here: https:/ /review. openstack. org/#/c/ 514339