Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Some problems about VPP config for Vhost-user CNI plugin #1

Open
TrevorTaoARM opened this issue Nov 15, 2017 · 2 comments
Open

Some problems about VPP config for Vhost-user CNI plugin #1

TrevorTaoARM opened this issue Nov 15, 2017 · 2 comments

Comments

@TrevorTaoARM
Copy link

TrevorTaoARM commented Nov 15, 2017

@rkamudhan @john
I am using your vhost-user-net-plugin for vpp-17.10, but met some problems when I use it to config the Vhost-user for K8s Pod, which leads the 2 container can not ping each other successfully:

  1. For the vpp-config.py, the function
    def configVhostPortRoute(port, containerIP, containerMAC):
    1.1 For the command:
    cmd = 'vppctl set int unnum {} use loop0'.format(port), I don't find a command to create the loop0 interface, is the loop0 should be created beforehand and what are the related configurations about it?
    1.2 For the command:
    cmd = 'vppctl show tap', it shows:
    unknown input `vppctl show tap', so what are the commands about the "tap", so that the subsequent "ip link set " command can be executed?

  2. For the created vpp container by this vhost-user-net-plugin, I see in the README.md:
    "Run the VPP in a container A as follows"
    " # vpp unix {log /tmp/vpp.log cli-listen 0.0.0.0:5002} api-trace { on }
    dpdk {coremask 0x2 no-multi-seg no-pci singlefile 512 extra --vdev=virtio_user0,path=/vhost-user-net-plugin/4d578250ad8d760c0722be78badb4b4b6d57fed8f95dea23aaa0065aa8657b29/4d578250ad8d-net1,mac=e2:52:b5:7b:58:ad } cpu {skip-cores 1}"
    " # vppctl set int state virtio_user0 up"
    " # vppctl set int ip table virtio_user0 0"
    Run the VPP in another container B and ping the Container A
    " # vppctl ping 10.56.217.132"

And I do see a VirtioUser0/0/0 interface in the container's vpp, but I don't see how the IP address(10.56.217.131,10.56.217.132) are configured in the vpp, could you give a more detailed information about the configuration in the vpp container?

I tried to set the IP address on this VirtioUser0/0/0 interface, but it does not work. Could you give some introduction about your configuration here.

@rkamudhan rkamudhan self-assigned this Nov 23, 2017
@rkamudhan
Copy link
Contributor

@TrevorTaoARM I will look into this issue

@TrevorTaoARM
Copy link
Author

@rkamudhan
Thank you very much for your help.
One more question here:
I see in the vpp-config.py, there is a command:

cmd = 'vppctl set int unnum {} use loop0'.format(port)

But I don't see any configuration about the 'loop0', did you enable it beforehand, how about the configurations if possible?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants