cncf / cnf-testbed

ARCHIVED: 🧪🛏️Cloud-native Network Function (CNF) Testbed --> See LFN Cloud Native Telecom Initiative https://wiki.lfnetworking.org/pages/viewpage.action?pageId=113213592
https://wiki.lfnetworking.org/pages/viewpage.action?pageId=113213592
Apache License 2.0
162 stars 51 forks source link

Deploy Packet Generator via provisioning code #91

Closed lixuna closed 5 years ago

lixuna commented 5 years ago

Provisioning a packet generator machine via code

Packet.net machine provisioning

Host Configuration Tasks:

DEFERRED tasks:

NFVbench tasks:

Testing:

nfvbench status

Verify that NFVbench is running using nfvbench --status. Output should be similar to what can be seen below

INFO Loading configuration file: /tmp/nfvbench/nfvbench_config.cfg
INFO EXT chain with OpenStack mode disabled
INFO Version: 0.0.0
INFO Status: idle

What's left as of Oct 24 2018:

taylor commented 5 years ago

@michaelspedersen please add a more minimal nfvbench config to this ticket or in the repo

denverwilliams commented 5 years ago

It looks like the --upstream-libs flag in the docs is not valid, going to skip using that flag for now. https://github.com/cncf/cnfs/blob/master/comparison/cnf_edge_throughput/packet_generator/README.md

root@cnfdev07:/tmp/MLNX_OFED_LINUX-4.1-1.0.2.0-ubuntu16.04-x86_64# ./mlnxofedinstall --dpdk --upstream-libs --force

Unsupported installation option: '--upstream-libs'
To see list of supported options, run: ./mlnxofedinstall --help
michaelspedersen commented 5 years ago

@denverwilliams Just looked through the bash history on the generator machine, and it looks like I ended up using the following "./mlnxofedinstall --all --force"

I guess my initial messing with the installation caused me to miss that difference - Good thing you noticed.

denverwilliams commented 5 years ago

@michaelspedersen Awesome, thanks.

taylor commented 5 years ago

Virtual functions work as expected

root@cnfauto:/tmp/MLNX_OFED_LINUX-4.1-1.0.2.0-ubuntu16.04-x86_64# mst status
MST modules:
------------
    MST PCI module loaded
    MST PCI configuration module loaded

MST devices:
------------
/dev/mst/mt4099_pciconf0         - PCI configuration cycles access.
                                   domain:bus:dev.fn=0000:02:00.0 addr.reg=88 data.reg=92
                                   Chip revision is: 01
/dev/mst/mt4099_pci_cr0          - PCI direct access.
                                   domain:bus:dev.fn=0000:02:00.0 bar=0xc7500000 size=0x100000
                                   Chip revision is: 01

and mlxconfig -d /dev/mst/mt4117_pciconf0 set SRIOV_EN=1 NUM_OF_VFS=2

denverwilliams commented 5 years ago

@taylor @lixuna Packet generator is now starting

root@cnfauto:~/cnfs/comparison/cnf_edge_throughput/packet_generator/ansible# nfvbench 
2018-10-23 19:51:31,660 INFO Loading configuration file: /tmp/nfvbench/nfvbench_config.cfg
2018-10-23 19:51:31,687 INFO EXT chain with OpenStack mode disabled
2018-10-23 19:51:31,687 INFO -c /tmp/nfvbench/nfvbench_config.cfg
2018-10-23 19:51:31,692 INFO ServiceChain initialized.
2018-10-23 19:51:31,692 INFO ChainRunner initialized.
2018-10-23 19:51:31,692 INFO Adjusting frame size 64 Bytes to minimum size 68 Bytes due to traffic generator restriction
2018-10-23 19:51:31,693 INFO Connecting to TRex...
2018-10-23 19:51:36,701 INFO TRex server is running...
nohup: ignoring input and appending output to 'nohup.out'
lixuna commented 5 years ago

What's left as of Oct 24 2018:

lixuna commented 5 years ago

https://github.com/cncf/cnfs/blob/master/comparison/cnf_edge_throughput/README-layer2-network.md