ipdk-io / ipdk

Infrastructure Programmer Development Kit (IPDK) is an open source, vendor agnostic framework of drivers and APIs for infrastructure offload and management that runs on a CPU, IPU, DPU or switch.
Apache License 2.0
185 stars 68 forks source link

rundemo_TAP_IO.sh failed #414

Closed dsw0423 closed 5 months ago

dsw0423 commented 5 months ago

Hi,

I built ipdk natively on Ubuntu 20.04, tried to run the demo script but got some errors.

root@aq:~/ipdk/build/networking/scripts# ./rundemo_TAP_IO.sh --workdir=/root/ipdk_deps

WORKING_DIR: /root/ipdk_deps
SCRIPTS_DIR: /root/ipdk_deps/scripts
DEPS_INSTALL_DIR: /root/ipdk_deps/networking-recipe/deps_install
P4C_INSTALL_DIR: /root/ipdk_deps/p4c/install
SDE_INSTALL_DIR: /root/ipdk_deps/p4-sde/install
NR_INSTALL_DIR: /root/ipdk_deps/networking-recipe/install

Cleaning from previous run

Cannot remove namespace file "/run/netns/VM0": No such file or directory
Cannot remove namespace file "/run/netns/VM1": No such file or directory
infrap4d: no process found

Setting hugepages up and starting networking-recipe processes

~/ipdk_deps ~/ipdk/build/networking/scripts

DEPS_INSTALL_DIR: /root/ipdk_deps/networking-recipe/deps_install
SDE_INSTALL_DIR: /root/ipdk_deps/p4-sde/install
NR_INSTALL_DIR: /root/ipdk_deps/networking-recipe/install
P4C_INSTALL_DIR: /root/ipdk_deps/p4c/install

Updated Environment Variables ...
SDE_INSTALL_DIR: /root/ipdk_deps/p4-sde/install
LIBRARY_PATH: /root/ipdk_deps/networking-recipe/deps_install/lib:/root/ipdk_deps/networking-recipe/deps_install/lib64:
LD_LIBRARY_PATH: /root/ipdk_deps/networking-recipe/deps_install/lib:/root/ipdk_deps/networking-recipe/deps_install/lib64:/root/ipdk_deps/networking-recipe/install/lib:/root/ipdk_deps/networking-recipe/install/lib64::/root/ipdk_deps/p4-sde/install/lib:/root/ipdk_deps/p4-sde/install/lib64:/root/ipdk_deps/p4-sde/install/lib/x86_64-linux-gnu:/usr/local/lib:/usr/local/lib64
PATH: /root/ipdk_deps/p4c/install/bin:/root/ipdk_deps/networking-recipe/deps_install/bin:/root/ipdk_deps/networking-recipe/deps_install/sbin:/root/ipdk_deps/networking-recipe/install/bin:/root/ipdk_deps/networking-recipe/install/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

1024
1024

SDE_INSTALL_DIR: /root/ipdk_deps/p4-sde/install
NR_INSTALL_DIR: /root/ipdk_deps/networking-recipe/install

NR_INSTALL_DIR: /root/ipdk_deps/networking-recipe/install
DEAMON_MODE_ARGS: 

~/ipdk/build/networking/scripts

Creating TAP ports

~/ipdk_deps ~/ipdk/build/networking/scripts
E20240618 15:26:01.240880  4118 credentials_manager.cc:100] Cannot access certificate/key files. Unable to initiate server_credentials.
E20240618 15:26:01.240957  4118 credentials_manager.cc:141] Cannot access certificate/key files. Unable to initiate client_credentials.
E20240618 15:26:01.245996  4118 gnmi_ctl.cc:400] Return Error: stub->Set(&ctx, req, &resp) failed with generic::invalid_argument: Invalid credentials.
I20240618 15:26:01.254771  4119 gnmi_ctl.cc:103] Client context cancelled.
setting vhost_dev = true.

Thanks.