Comment 9 for bug 1998337

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/904830
Committed: https://opendev.org/openstack/neutron/commit/222c997022392561c2de2cb493f0f5214eb20dfc
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 222c997022392561c2de2cb493f0f5214eb20dfc
Author: Slawek Kaplonski <email address hidden>
Date: Tue Feb 28 18:27:29 2023 +0100

    Add sleep before checking if ovs port is in the namespace

    When network device which is ovs internal port is moved to the namespace
    it may happend sometimes that it will have "shy port syndrome" [1].
    Even though there is wait for device to be in namespace in the set_netns
    method it may happend that device is in namespace during this check but
    it dissapears for short time later and that causes failures e.g. in
    functional tests like described in [2].
    To avoid that, this patch proposed simple (and ugly) sleep for 1 second
    before checking if port really exists in the namespace. If it will be
    "shy" port it should already flap during that 1 second.

    [1] https://bugs.launchpad.net/neutron/+bug/1618987
    [2] https://bugs.launchpad.net/neutron/+bug/1961740

    Related-Bug: #1961740
    Related-Bug: #1998337
    Change-Id: I442587e7ef55917f4ea873e190bf8afbc0e911e1
    (cherry picked from commit 2af5fd889b3286dcec21e2bc89f287a0e4129d0f)