Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcn-iptables/pxn-iptables-init-xdp[BUG] #344

Closed
liuuwqia opened this issue Oct 19, 2020 · 2 comments
Closed

pcn-iptables/pxn-iptables-init-xdp[BUG] #344

liuuwqia opened this issue Oct 19, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@liuuwqia
Copy link

##ubuntu20.04/kernel 5.4

##polycubectl version
polycubectl:
version: v0.9.0+ [git: (branch/commit): master/b7758768-dirty]
polycubed:
version: v0.9.0+ [git: (branch/commit): master/b7758768-dirty]

description:
I'm using the pcn-iptabls service, using the pcn-iptables init-xdp mode init, when I init (pcn-iptables init-xdp).I see from the log that there is the following problem, I wonder if it will affect?

[2020-10-19 15:55:35.634] [polycubed] [debug] XDP program compileed
Oct 19 15:55:36 newblackbox2 polycubed[48188]: [2020-10-19 15:55:36.246] [polycubed] [debug] XDP program compileed
Oct 19 15:55:36 newblackbox2 polycubed[48188]: /virtual/main.c:541:1: error: table already exists
Oct 19 15:55:36 newblackbox2 polycubed[48188]: BPF_TABLE_SHARED("percpu_array", int, u64, pkts_acceptestablished_Output, 1);
Oct 19 15:55:36 newblackbox2 polycubed[48188]: ^
Oct 19 15:55:36 newblackbox2 polycubed[48188]: /virtual/include/bcc/helpers.h:171:69: note: expanded from macro 'BPF_TABLE_SHARED'
Oct 19 15:55:36 newblackbox2 polycubed[48188]: BPF_TABLE(_table_type, _key_type, _leaf_type, _name, _max_entries);
Oct 19 15:55:36 newblackbox2 polycubed[48188]: ^
Oct 19 15:55:36 newblackbox2 polycubed[48188]: /virtual/main.c:542:1: error: table already exists
Oct 19 15:55:36 newblackbox2 polycubed[48188]: BPF_TABLE_SHARED("percpu_array", int, u64, bytes_acceptestablished_Output, 1);
Oct 19 15:55:36 newblackbox2 polycubed[48188]: ^
Oct 19 15:55:36 newblackbox2 polycubed[48188]: /virtual/include/bcc/helpers.h:171:69: note: expanded from macro 'BPF_TABLE_SHARED'
Oct 19 15:55:36 newblackbox2 polycubed[48188]: BPF_TABLE(_table_type, _key_type, _leaf_type, _name, _max_entries);
Oct 19 15:55:36 newblackbox2 polycubed[48188]: ^
Oct 19 15:55:36 newblackbox2 polycubed[48188]: 2 errors generated.
Oct 19 15:55:36 newblackbox2 polycubed[48188]: [2020-10-19 15:55:36.517] [Iptables] [pcn-iptables] [error] load err: failed to init ebpf program: Unable to initialize BPF program
Oct 19 15:55:37 newblackbox2 polycubed[48188]: [2020-10-19 15:55:37.003] [polycubed] [debug] XDP program compileed
Oct 19 15:55:37 newblackbox2 polycubed[48188]: [2020-10-19 15:55:37.471] [polycubed] [debug] XDP program compileed

@liuuwqia liuuwqia added the bug Something isn't working label Oct 19, 2020
@FedeParola
Copy link
Collaborator

Hi @liuuwqia, yes there is a problem and it will probably affect the TCP connection tracking.
The problem appeared after the introduction of emulated XDP egress in 4c29de8. I'll try to find a solution, thanks for your feedback.

@liuuwqia
Copy link
Author

liuuwqia commented Oct 21, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants