Bug 1356719

Summary: Libvirt: AIO mode for disk devices not propagating the io policy when set in nova.conf
Product: Red Hat OpenStack Reporter: Aaron Thomas <aathomas>
Component: openstack-novaAssignee: Vladik Romanovsky <vromanso>
Status: CLOSED DUPLICATE QA Contact: Prasanth Anbalagan <panbalag>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0 (Liberty)CC: berrange, dasmith, eglynn, jbiao, kchamart, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: ---Keywords: ZStream
Target Release: 8.0 (Liberty)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 12:50:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aaron Thomas 2016-07-14 20:45:01 UTC
Description of problem:
-----------------------------------------
Cisco has requested the following change around the previous outcome of the BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1175440. The resulting solution was to change nova.conf "disk_cachemodes=network=writeback" which did not propagate the io policy in libvirt.xml, putting forth the argument that the VM performance is not optimized.

Additional research leads to the accepted blueprint for mitaka m3 release:
-----------------------------------------
Libvirt and qemu provide two different modes for asynchronous IO (AIO), “native” and “threads”. Right now nova always uses the default thread mode. Depending on the disk type that is used for backing guest disks, it can be beneficial to use the native IO mode instead which appears to be related to Cisco's request. 

Upstream Blueprints: 

Libvirt: AIO mode for disk devices
-----------------------------------------
https://specs.openstack.org/openstack/nova-specs/specs/mitaka/implemented/libvirt-aio-mode.html#libvirt-aio-mode-for-disk-devices

bp/libvirt-aio-mode
-----------------------------------------
https://review.openstack.org/#/q/topic:bp/libvirt-aio-mode,n,z


Version-Release number of selected component (if applicable):
-----------------------------------------
All current versions of nova


How reproducible:
-----------------------------------------
100%


Steps to Reproduce:
------------------------------------------
1. Set "disk_cachemodes=network=writeback" in nova.conf
2. check libvirt.xml policy to verify io="threads" are enabled not aio="native"


Actual results:
-----------------------------------------
When "disk_cachemodes=network=writeback" is set in nova.conf, the libvirt.xml io policy is set to io="threads".


Expected results:
-----------------------------------------
When "disk_cachemodes=network=writeback" is set in nova.conf, the libvirt.xml io policy is set to aio="native".



Additional info:
-----------------------------------------
https://bugzilla.redhat.com/show_bug.cgi?id=1175440#c14
https://access.redhat.com/support/cases/#/case/01665252

Comment 8 awaugama 2017-09-07 19:06:12 UTC
Dup -- QE will decide about automating the original