[ovs-git] [openvswitch/ovs] 1858e7: system-userspace-packet-type-aware.at: Wait for ip...

Ilya Maximets noreply at github.com
Fri Oct 9 15:02:02 UTC 2020


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: 1858e7064fd823bf3fc43776c0787903d9dcbc6a
      https://github.com/openvswitch/ovs/commit/1858e7064fd823bf3fc43776c0787903d9dcbc6a
  Author: Ilya Maximets <i.maximets at ovn.org>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

  Changed paths:
    M tests/system-userspace-packet-type-aware.at

  Log Message:
  -----------
  system-userspace-packet-type-aware.at: Wait for ip address updates.

ovs-router module checks for the source ip address of the interface
while adding a new route.  netdev module doesn't request ip addresses
from the system every time, but instead it caches currently assigned
ip addresses and updates the cache on netlink notifications if needed.

So, there is a slight delay between setting ip address on interface
in a system and a moment OVS updates list of ip addresses of this
interface.  If route addition happens within this time frame, it
fails with the following error:

    # ovs-appctl ovs/route/add 10.0.0.0/24 br-p1
    Error while inserting route.
    ovs-appctl: ovs-vswitchd: server returned an error

This makes system tests to fail frequently.

Let's wait until local route successfully added.  This will mean
that OVS finished processing of a netlink event and will use up to
date list of ip addresses on desired interface.

Fixes: 526cf4e1d6a8 ("tests: Added unit tests in packet-type-aware.at")
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
Acked-by: Aaron Conole <aconole at redhat.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>




More information about the git mailing list