Peter,
I have committed few changes to allow no-openstack runs with NFVbench (not a
big patch but I prefer to do it as it touches many files and I needed to add
proper unit testing). I have only unit tested the changes and it should no
longer access openstack.
To test on your system, please pull the latest Docker container from DockerHub
(tag “latest”).
The nfvbench configuration to use will need to have an empty openrc_file
property (or you can just remove it from your file since it defaults to empty)
and will need EXT chain.
In your example of config, you have to drop the openrc_file and add the vlan ID
to use for the 2 ends of your chain (e.g. 1000, 1001 – replace with your own
values)
{
"traffic_generator": {
"generator_profile": [
{
"interfaces": [
{
"pci": "00:04.0",
"port": 0,
},
{
"pci": "00:03.0",
"port": 1,
}
],
"intf_speed": "10Gbps",
"ip": "127.0.0.1",
"name": "trex-local",
"software_mode": false,
"tool": "TRex"
}
]
},
vlans: [1000, 1001]
}
Running with this config, you need
* the interfaces on the 00:04.0 and 00.03.0 to be wired properly (i.e. to
your TOR normally)
* the corresponding TOR interfaces to be configured in trunk mode
Regarding the service chain config, assuming your chain is made of 1 VM
configured as a virtual router (most common case):
* 1.1.0.2 and 2.2.0.2 to be configured public IP addresses for the 2
interfaces of your virtual router (with ARP enabled)
* static routing to be configured in your virtual router to route
* 10.0.0.0/8 through 1.1.0.100 and
* 20.0.0.0/8 through 2.2.0.100
These are the default IP addresses in the nfvbench default config that you can
also override if needed (you can also check the IP addressing diagram in the
nfvbench doc
http://docs.opnfv.org/en/latest/submodules/nfvbench/docs/testing/user/userguide/advanced.html#external-chain)
Hopefully all this makes sense, if you see any issue, send the config file
used, a description of what your chain does and how it is configured, run your
cli with –debug and send the full output.
Thanks
Alec
From: "Balint, Peter (Nokia - HU/Budapest)" <[email protected]>
Date: Sunday, January 14, 2018 at 10:59 PM
To: "Alec Hothan (ahothan)" <[email protected]>,
"[email protected]" <[email protected]>
Subject: RE: [opnfv-tech-discuss] [nfvbench] - AttributeError: 'NoneType'
object has no attribute 'rstrip'
Hi Alec,
Thanks for infos, the contribution looks interesting. My python knowledge is
about basic/intermediate level. I you could share more infos maybe I can
investigate my the effort needs.
Br,
Peter
From: Alec Hothan (ahothan) [mailto:[email protected]]
Sent: Saturday, January 13, 2018 1:45 AM
To: Balint, Peter (Nokia - HU/Budapest) <[email protected]>;
[email protected]
Subject: Re: [opnfv-tech-discuss] [nfvbench] - AttributeError: 'NoneType'
object has no attribute 'rstrip'
Hi Balint,
We have had multiple requests in the past to support a no-OpenStack mode but we
have not officially added support for that mode for lack of resources.
Having said that, I do not think it would be a lot of work because all the main
SW pieces to support this mode are already in place and working (EXT chain mode
is definitely the right starting point).
Michael is currently adding a feature for EXT chain that allows to specify the
chain MAC addresses in the config (otherwise the current code expects your
chain end points to reply to ARP). This will allow to test with external chains
that do not support ARP.
Other than that, it would be just a matter of disabling a few functions related
to OpenStack (mainly the OpenStack credentials code and Neutron network
discovery), probably a couple of days of work for somebody familiar with python
coding.
If you have cycles to contribute there, I’d be happy to guide you and point you
to what needs to change.
Regards,
Alec
From: "Balint, Peter (Nokia - HU/Budapest)"
<[email protected]<mailto:[email protected]>>
Date: Friday, January 12, 2018 at 12:11 AM
To: "Alec Hothan (ahothan)" <[email protected]<mailto:[email protected]>>,
"[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: RE: [opnfv-tech-discuss] [nfvbench] - AttributeError: 'NoneType'
object has no attribute 'rstrip'
Hi,
Thanks for infos.
My NFVBench installed on a bare metal server, I would like to benchmark
different network elements, VNFs with it. So I only need to generate test with
NFVBench and I do not want to manage Openstack or any other network element
with it. Is this possible?
openrc config is the default one with some port info:
{
"openrc_file": "/tmp/nfvbench/openrc",
"traffic_generator": {
"generator_profile": [
{
"interfaces": [
{
"pci": "00:04.0",
"port": 0,
},
{
"pci": "00:03.0",
"port": 1,
}
],
"intf_speed": "10Gbps",
"ip": "127.0.0.1",
"name": "trex-local",
"software_mode": false,
"tool": "TRex"
}
]
}
}
Br,
Peter
From: Alec Hothan (ahothan) [mailto:[email protected]]
Sent: Wednesday, January 10, 2018 6:37 PM
To: Balint, Peter (Nokia - HU/Budapest)
<[email protected]<mailto:[email protected]>>;
[email protected]<mailto:[email protected]>
Subject: Re: [opnfv-tech-discuss] [nfvbench] - AttributeError: 'NoneType'
object has no attribute 'rstrip'
Hi Peter,
This looks to be a problem with the openstack authentication (openrc file)
while trying to list a neutron network:
networks = self.neutron.list_networks(name=network_name)
In EXT chain mode, the code will attempt to retrieve the characteristics of the
right and left external networks (configured in your config file as
“nfvbench-net0” and “nfvbench-net1”) to get their VLAN ids
Could you share the content of the openrc file used and what version of
openstack are your running?
Something you can try real quick is to source the openrc file in the container
(source /tmp/nfvbench/openrc) and try to show the 2 networks using neutron cli
and see if you hit the same exception (neutron router-list, or neutron
network-show nfvbench-net0)
Alec
From:
<[email protected]<mailto:[email protected]>>
on behalf of "Balint, Peter (Nokia - HU/Budapest)"
<[email protected]<mailto:[email protected]>>
Date: Wednesday, January 10, 2018 at 8:37 AM
To:
"[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: [opnfv-tech-discuss] [nfvbench] - AttributeError: 'NoneType' object
has no attribute 'rstrip'
Hi,
I started to investigate NFVBench for use as benchmarking software, and I got
some errors.
I attached the output and config file.
I tried to use it in External Chain mode.
Could you please give some recommended settings or could you provide me any
information which help to fix.
Br,
Peter Balint
Test Architect
MN Cloud Core
NOKIA
Nokia Solutions and Networks Kft.
H-1082 Budapest, Hungary, Bókay János u. 36-42.
Mobile: +36 70 501 89 01
[email protected]<mailto:[email protected]>
https://networks.nokia.com/
_______________________________________________
opnfv-tech-discuss mailing list
[email protected]
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss