Project

General

Profile

Actions

Bug #5905

closed

Failed to create nft table "osmo-upf" (on older kernels?)

Added by osmith over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/13/2023
Due date:
% Done:

100%

Spec Reference:

Description

osmo-upf fails to start since https://gerrit.osmocom.org/c/osmo-upf/+/31165 was merged in the Osmocom-repo-install-debian11 and Osmocom-repo-install-centos8 jobs:

Feb 12 06:03:34 unassigned-hostname osmo-upf[41901]: Error: Could not process rule: Invalid argument
Feb 12 06:03:34 unassigned-hostname osmo-upf[41901]: add table inet osmo-upf { flags owner; };
Feb 12 06:03:34 unassigned-hostname osmo-upf[41901]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 12 06:03:34 unassigned-hostname osmo-upf[41901]: 20230212060334707 DNFT ERROR error running nft ruleset: rc=-1 ruleset="add table inet osmo-upf { flags owner; };\n" (upf_nft.c:79)
Feb 12 06:03:34 unassigned-hostname osmo-upf[41901]: 20230212060334707 DNFT ERROR Failed to create nft table "osmo-upf" (upf_nft.c:111)

The kernels versions are 4.18.0-425.3.1.el8.x86_64 (CentOS 8 / AlmaLinux 8) and 5.10.0-9 (Debian 11). It does work on my Ubuntu 22.04 install with a 5.15 kernel. So my guess is, that it's related to the kernel.

I suspected that maybe it works if changing osmo-upf to osmo_upf in the table name (reading the man page it seems the minus character is not allowed as identifier?). But that did not help it.

I'll disable checking this service until this is fixed (or maybe we don't care about older kernels?), so we see when the tests fail for other reasons.

Actions #1

Updated by neels over 1 year ago

yes, it needs a 5.16.x linux kernel to work, AFAIK -- though i did not expect it to fail on the trivial 'add table' step. Maybe 'flags owner' is a newer feature. Also needs recent versions of libnftnl-1.2.4 and nftables-1.0.6 AFAIK.

Actions #2

Updated by laforge about 1 year ago

  • Status changed from New to Feedback
  • Assignee changed from neels to osmith
  • % Done changed from 0 to 100
Actions #3

Updated by osmith about 1 year ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)