← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1861500] Re: [OVN] Key error while setting QoS policies

 

This has been fixed by: https://review.opendev.org/#/c/705452/

** Changed in: neutron
   Importance: Undecided => High

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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1861500

Title:
  [OVN] Key error while setting QoS policies

Status in neutron:
  Fix Released

Bug description:
  When QoS is enabled we found on gates a few errors related to OVN:

  
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers [None req-be677605-23f9-43b8-821d-a3c931739987 tempest-QoSTest-185948236 tempest-QoSTest-185948236] Mechanism driver 'ovn' failed in update_network_postcommit: KeyError: 'direction'
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers   File "/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 475, in _call_on_drivers
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers     getattr(driver.obj, method_name)(context)
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py", line 390, in update_network_postcommit
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers     self._ovn_client.update_network(context.current)
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py", line 1705, in update_network
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers     self._qos_driver.update_network(network)
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers   File "/opt/stack/neutron/neutron/services/qos/drivers/ovn/driver.py", line 154, in update_network
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers     self._update_network_ports(context, network.get('id'), options)
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers   File "/opt/stack/neutron/neutron/services/qos/drivers/ovn/driver.py", line 143, in _update_network_ports
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers     self._driver.update_port(port, qos_options=options)
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py", line 667, in update_port
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers     if_delete=True)
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py", line 704, in _create_qos_rules
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers     direction = 'from-lport' if qos_options['direction'] ==\
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers KeyError: 'direction'
  Jan 31 12:36:45.466010 ubuntu-bionic-rax-ord-0014258431 neutron-server[32458]: ERROR neutron.plugins.ml2.managers

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


References