Inconsistent xml for libvirt disks

Bug #1729636 reported by Mike Lowe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

With both of these settings the xml is not consistent between root disks and volumes when using RBD.

hw_disk_discard = unmap
disk_cachemodes = network=writeback

Root disks get this:
      <driver name='qemu' type='raw' cache='none' discard='unmap'/>
Volumes get this:
      <driver name='qemu' type='raw' cache='writeback'/>

Both have the same type (<disk type='network' device='disk'>) but the settings are not applied consistently between volumes and root disks.

nova: 15.0.7
CentOS: 7.4
libvirt: 3.2.0
Ceph: 12.2.1

Tags: libvirt
Revision history for this message
Matt Riedemann (mriedem) wrote :

This was recently fixed and backported to stable/ocata:

https://github.com/openstack/nova/commit/fc10b54f25023d7e780b110928bda3a19e4c03f0

tags: added: libvirt
Revision history for this message
Mike Lowe (jomlowe) wrote :

How about ignoring the hw_disk_discard = unmap for volumes?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.