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

[BUG] Can't run router tutorial #415

Closed
hansbogert opened this issue Jun 13, 2022 · 2 comments · Fixed by #416
Closed

[BUG] Can't run router tutorial #415

hansbogert opened this issue Jun 13, 2022 · 2 comments · Fixed by #416
Labels
bug Something isn't working

Comments

@hansbogert
Copy link

hansbogert commented Jun 13, 2022

Describe the bug

I get a eBPF error when trying to run the router tutorial [1]

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://polycube-network.readthedocs.io/en/latest/quickstart.html#docker and run polycubed through docker, with :latest tag
  2. Go to [1]
  3. Come to step 1 and run polycubectl router add r1 loglevel=INFO
  4. See error
polycubectl router add r1 loglevel=DEBUG
failed to init ebpf program: Unable to initialize BPF program

Expected behavior

A clear and concise description of what you expected to happen.

Please tell us about your environment:

  1. OS details: cat /etc/*-release
cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

  1. Kernel details: uname -a
Linux hans-desktop 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  1. Polycube Version: polycubectl version
    Had to use docker tag :latest, as v0.9.0-rc didn't exist
polycubectl  version
polycubectl:
 version: -128-NOTFOUND+ [git: (branch/commit): NOT_FOUND/49834b6f]
polycubed:
 version: -128-NOTFOUND+ [git: (branch/commit): NOT_FOUND/49834b6f]

  1. Polycube Log: Attach the log from /var/log/polycube/polycubed.log
cat /var/log/polycube/polycubed.log
[2022-06-13 12:29:04.557] [polycubed] [info] configuration parameters: 
[2022-06-13 12:29:04.557] [polycubed] [info]  loglevel: info
[2022-06-13 12:29:04.557] [polycubed] [info]  daemon: true
[2022-06-13 12:29:04.557] [polycubed] [info]  pidfile: /var/run/polycube.pid
[2022-06-13 12:29:04.557] [polycubed] [info]  port: 9000
[2022-06-13 12:29:04.557] [polycubed] [info]  addr: localhost
[2022-06-13 12:29:04.557] [polycubed] [info]  logfile: /var/log/polycube/polycubed.log
[2022-06-13 12:29:04.557] [polycubed] [info]  cubes-dump-file: /etc/polycube/cubes.yaml
[2022-06-13 12:29:04.557] [polycubed] [info]  cubes-dump-clean-init: false
[2022-06-13 12:29:04.557] [polycubed] [info]  cubes-dump-enable: false
[2022-06-13 12:29:04.557] [polycubed] [info] polycubed starting...
[2022-06-13 12:29:04.557] [polycubed] [info] version -128-NOTFOUND+ [git: (branch/commit): NOT_FOUND/49834b6f]
[2022-06-13 12:29:04.557] [polycubed] [info] running as daemon

Additional context

Add any other context about the problem here.

[1] https://polycube-network.readthedocs.io/en/latest/tutorials/tutorial2/tutorial2.html

@hansbogert hansbogert added the bug Something isn't working label Jun 13, 2022
@FedeParola
Copy link
Collaborator

Hi @hansbogert,
this is probably related to the version of the kernel not supported by BCC.
I just submitted a patch to bump BCC to the latest version.

@hansbogert
Copy link
Author

Yeah probably. Because it worked fine on an ubuntu 20.04 machine.

Not able to check if this works for at least 10 day due to vacation.

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

Successfully merging a pull request may close this issue.

2 participants