← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1789074] Re: failed to boot guest with vnic_type direct when rx_queue_size and tx_queue_size are set

 

Reviewed:  https://review.openstack.org/595592
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=622ebf2fab0a9bf75ee12437bef28f60e083f849
Submitter: Zuul
Branch:    master

commit 622ebf2fab0a9bf75ee12437bef28f60e083f849
Author: Moshe Levi <moshele@xxxxxxxxxxxx>
Date:   Thu Aug 23 14:25:04 2018 +0300

    libvirt: skip setting rx/tx queue sizes for not virto interfaces
    
    It seem that if driver name is None nova try to set
    rx_queue_size tx_queue_size config. (they define the
    virtio-net rx/tx queue sizes). Direct/Physical Direct
    vnic_types are not vritio so this kind of config is
    invalid and causing booting guest to failed. To avoid
    issues we skip such configuration these  vnic_types
    
    Closes-Bug: #1789074
    
    Change-Id: I45532896690ad9505f2b09c98d8d86b61bcfef2b


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1789074

Title:
  failed to boot guest with vnic_type direct when rx_queue_size and
  tx_queue_size are set

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) rocky series:
  New

Bug description:
  Description of problem:

  Nova compute forces the virtio RX/TX Queue Size also on SRIOV devices.
  This makes VM spawn to fail. The configurable RX/TX Queue Size code is similar all the way from OSP10 to OSP13, so it's possible the issue is present also on other releases.

  Version-Release number of selected component (if applicable):
  OSP13 z3

  How reproducible:

  (quick and dirty way)
  Change nova config file 

  # crudini --set /var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf libvirt rx_queue_size 1024
  # crudini --set /var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf libvirt tx_queue_size 1024
   
  # restart nova_compute container
  docker restart nova_compute

  # boot a VM with an SRIOV (PF or VF) interface

  Actual results:
  Nova add on the sriov port section rx_queue_size

      <interface type="hostdev" managed="yes">
        <mac address="fa:16:3e:9d:f0:52"/>
        <driver name="vhost" rx_queue_size="1024"/>
        <source>
          <address type="pci" domain="0x0000" bus="0x01" slot="0x14" function="0x7"/>
        </source>
        <vlan>
          <tag id="435"/>
        </vlan>

  Expected results:

      <interface type='hostdev' managed='yes'>
        <mac address='fa:16:3e:83:b2:84'/>
        <driver name='vfio'/>
        <source>
          <address type='pci' domain='0x0000' bus='0x01' slot='0x14' function='0x7'/>
        </source>
        <vlan>
          <tag id='435'/>
        </vlan>
        <alias name='hostdev0'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
      </interface>

  Additional info:

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1789074/+subscriptions


References