Skip to content

Flaky VRF tests due to missing IPv6 route #1103

@LionelJouin

Description

@LionelJouin

In the tests:

  • adds the interface and custom routing to new VRF - Setting custom routing first
  • filters the correct routes to import to new VRF - Setting custom routing for IF0Name
  • filters the correct routes to import to new VRF - Setting custom routing for IF1Name

IPv6 are added to an interface, and routes using that IPv6 is created. In order to create the route, we should wait for some IPv6 route to be created (created automatically by the kernel when adding the IPv6 to the interface). Without that route, the RouteAdd call in the tests will fail, for example:

• [FAILED] [0.011 seconds]
vrf plugin [It] filters the correct routes to import to new VRF
/home/runner/work/plugins/plugins/plugins/meta/vrf/vrf_test.go:278

  Timeline >>
  STEP: Setting custom routing for IF0Name @ 09/20/24 07:14:34.461
  STEP: Setting custom routing for IF1Name @ 09/20/24 07:14:34.462
  STEP: Adding if1 to the VRF @ 09/20/24 07:14:34.464
  STEP: Checking routes are moved correctly to VRF @ 09/20/24 07:14:34.467
  [FAILED] in [It] - /home/runner/work/plugins/plugins/plugins/meta/vrf/vrf_test.go:392 @ 09/20/24 07:14:34.469
  << Timeline

  [FAILED] Unexpected error:
      <syscall.Errno>: 
      invalid argument
      0x16
  occurred
  In [It] at: /home/runner/work/plugins/plugins/plugins/meta/vrf/vrf_test.go:392 @ 09/20/24 07:14:34.469

Here is some job that have failed.
https://github.com/containernetworking/plugins/actions/runs/10954784634/job/30417500257?pr=1092
https://github.com/containernetworking/plugins/actions/runs/11109122762/job/30863918356?pr=1082

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions