[important]cinder volumes lvm iscsi use io=native default?

Bug #1864857 reported by ybyn
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Arthur Dayne

Bug Description

Description
===========
when i'm using cinder volumes , and use lvm as backend, i want to enhance my disk performance in my case, i boot my guest with volumes, and when change the cachemode to block=writethrough or blcok=writeback, then nova-compute will rasie: `libvirtError: unsupported configuration: native I/O needs either no disk cache or directsync cache mode, QEMU will fallback to aio=threads`
i found that in `nova/virt/libvirt/volume/iscsi.py:`
the code is:
 `def get_config(self, connection_info, disk_info):
    """Returns xml for libvirt."""
    conf = super(LibvirtISCSIVolumeDriver,
                 self).get_config(connection_info, disk_info)
    conf.source_type = "block"
    conf.source_path = connection_info['data']['device_path']
    conf.driver_io = "native"
    return conf`

why here specify the driver_io to native , do i have chance to change it back to `threads` in the conf?

Steps to reproduce
==================
nova.conf:
disk_cachemodes = file=default,block=writethrough (or writeback the same)
restart nova-compute

Expected result
===============
guest can normally started

Actual result
=============
I/O needs either no disk cache or directsync cache mode, QEMU will fallback to aio=threads`

Environment
===========
1. Exact version of OpenStack you are running. See the following
  nova-common/stable 2:17.0.13
stable queens build from source.

2. Which hypervisor did you use?
   libvirt-qemu x86_64

2. Which storage type did you use?
  lvm

3. Which networking type did you use?
   flat linux-bridge

Tags: cache disk
ybyn (berlinsaint)
Changed in nova:
status: New → In Progress
ybyn (berlinsaint)
Changed in nova:
status: In Progress → New
ybyn (berlinsaint)
summary: - cinder volumes lvm iscsi use io=native default?
+ [important]cinder volumes lvm iscsi use io=native default?
Revision history for this message
Arthur Dayne (palagend) wrote :
tags: added: cache disk
Changed in nova:
assignee: nobody → Arthur Dayne (palagend)
Revision history for this message
Arthur Dayne (palagend) wrote :
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.