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

Deploy Packet Generator via provisioning code #91

Closed
22 tasks done
lixuna opened this issue Oct 11, 2018 · 8 comments
Closed
22 tasks done

Deploy Packet Generator via provisioning code #91

lixuna opened this issue Oct 11, 2018 · 8 comments
Assignees

Comments

@lixuna
Copy link
Collaborator

lixuna commented Oct 11, 2018

Provisioning a packet generator machine via code

Packet.net machine provisioning

  • update terraform code for provisioning a Packet.net machine for the packet generator

Host Configuration Tasks:

mst status
  - Note down the MST Device path, e.g. '/dev/mst/mt4117_pciconf0'
mlxconfig -d /dev/mst/mt4117_pciconf0 set SRIOV_EN=1 NUM_OF_VFS=2
  - Use device path collected during the previous step
  • Update GRUB GRUB_CMDLINE_LINUX in /etc/default/grub to include the following settings
    numa_balancing=disable intel_pstate=disable intel_iommu=on iommu=pt isolcpus=2-55 nohz_full=2-55 rcu_nocbs=2-55 hugepagesz=2M hugepages=8096
  • Once the GRUB file has been updated, run update-grub2
  • Update Linux host networking configuration to remove the default bonded interface
  • reboot system

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:

  • reboot system

  • create a script to run terraform code for provisioning a Packet.net machine for the packet generator

  • document how to run terraform code for provisioning a Packet.net machine for the packet generator

  • document how to add SSH keys for CNF dev team are installed / reference packet.net help https://help.packet.net/article/31-ssh-access

@taylor
Copy link
Collaborator

taylor commented Oct 11, 2018

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

@denverwilliams
Copy link
Collaborator

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
Copy link
Collaborator

@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
Copy link
Collaborator

@michaelspedersen Awesome, thanks.

@taylor
Copy link
Collaborator

taylor commented Oct 17, 2018

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 added a commit that referenced this issue Oct 21, 2018
denverwilliams added a commit that referenced this issue Oct 21, 2018
denverwilliams added a commit that referenced this issue Oct 22, 2018
denverwilliams added a commit that referenced this issue Oct 22, 2018
denverwilliams added a commit that referenced this issue Oct 22, 2018
denverwilliams added a commit that referenced this issue Oct 23, 2018
@denverwilliams
Copy link
Collaborator

denverwilliams commented Oct 23, 2018

@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 lixuna assigned denverwilliams and unassigned wvwatson Oct 24, 2018
@lixuna
Copy link
Collaborator Author

lixuna commented Oct 24, 2018

What's left as of Oct 24 2018:

  • reboot system

  • create a script to run terraform code for provisioning a Packet.net machine for the packet generator

  • document how to run terraform code for provisioning a Packet.net machine for the packet generator

  • document how to add SSH keys for CNF dev team are installed / reference packet.net help https://help.packet.net/article/31-ssh-access

@lixuna
Copy link
Collaborator Author

lixuna commented Oct 24, 2018

taylor pushed a commit that referenced this issue Nov 5, 2018
@taylor taylor closed this as completed Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants