Skip to content

Failed to deploy Antrea dual stack in Ubuntu 22.04 #7602

@hongliangl

Description

@hongliangl

To Reproduce

Deploy a Kind cluster on Ubuntu 22.04 using:

cd antrea

./ci/kind/test-e2e-kind.sh \
  --run TestDummy \   # A workaround to provision a cluster only
  --ip-family dual \
  --proxy-all \
  --setup-only

Root Cause

On Ubuntu 22.04, ip6tables-nft cannot handle Antrea’s mangle-table rules that use the MARK target with --or-mark. For example:

ip6tables -t mangle -A OUTPUT -j MARK --or-mark 0x1

produces:

ip6tables v1.8.7 (nf_tables): unknown option "--or-mark"
Try `ip6tables -h' or 'ip6tables --help' for more information.

This causes Antrea’s rule installation to fail when running on hosts using the nft backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions