openstack-tox-functional-ovs-with-sudo consistently fails

Bug #2087982 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-vif
In Progress
Undecided
Unassigned

Bug Description

One of the test cases run in the openstack-tox-functional-ovs-with-sudo job consistently fails.

example: https://zuul.opendev.org/t/openstack/build/0125a62d43ea40359f61a512b75e91c4

==============================
Failed 1 tests - output below:
==============================

vif_plug_ovs.tests.functional.ovsdb.test_ovsdb_lib.TestOVSDBLib.test_create_ovs_vif_port_with_default_qos(native)
-----------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/zuul/src/opendev.org/openstack/os-vif/os_vif/tests/functional/base.py", line 77, in func
    return f(self, *args, **kwargs)

      File "/home/zuul/src/opendev.org/openstack/os-vif/vif_plug_ovs/tests/functional/ovsdb/test_ovsdb_lib.py", line 212, in test_create_ovs_vif_port_with_default_qos
    self._check_parameter('Interface', port_name, 'external_ids',

      File "/home/zuul/src/opendev.org/openstack/os-vif/vif_plug_ovs/tests/functional/base.py", line 38, in _check_parameter
    self.assertTrue(

      File "/usr/lib/python3.10/unittest/case.py", line 687, in assertTrue
    raise self.failureException(msg)

    AssertionError: False is not true : Parameter external_ids of Interface qos-port-native is None not {'iface-status': 'active', 'iface-id': 'iface_id', 'attached-mac': 'ca:fe:ca:fe:ca:fe', 'vm-uuid': '140d2c00-361a-4a9d-9360-9f55be57394e'}

Tags: gate-failure
tags: added: gate-failure
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-vif (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/os-vif/+/935653

Changed in os-vif:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to os-vif (master)

Reviewed: https://review.opendev.org/c/openstack/os-vif/+/935653
Committed: https://opendev.org/openstack/os-vif/commit/2df01e88450ab99eec204c6e2e8ef8681610c496
Submitter: "Zuul (22348)"
Branch: master

commit 2df01e88450ab99eec204c6e2e8ef8681610c496
Author: Sean Mooney <email address hidden>
Date: Tue Nov 19 13:24:30 2024 +0000

    address test stablity under load

    vif_plug_ovs.tests.functional.ovsdb.test_ovsdb_lib.TestOVSDBLib.test_create_ovs_vif_port_with_default_qos(native)
    can fail under load as the ovs-db requires the ovsvswitchd
    to acknowlage the requested configution
    before the db tansaction is complete.

    currently os-vif works around this using a wait_until_true retry loop
    with a hardcoded 2 second timeout. This change bumps the default timeout
    to 10 seconds and make it configurable via a new env var.

    OS_VIF_CHECK_PARAMETER_TIMEOUT

    this should stablise the test under load such as in ci and allow the timeout
    to be turned via ci jobs if requried.

    note 10 seconds is already over kill so if we see instablity after this
    change we likely shoudl reduce concurrency instead.

    Related-Bug: #2087982
    Change-Id: Icd0b69a7f3a121fbe4fe2b754c1fc1d993d2a741

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.