ctrautma / rhel_nic_qualification Goto Github PK
View Code? Open in Web Editor NEWRHEL development NIC qualification scripts for partners
License: Apache License 2.0
RHEL development NIC qualification scripts for partners
License: Apache License 2.0
Packages python-twisted-core, python-zope-interface, groff are not in repo anymore.
Python packages were probably removed because of this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1363962
In rh_nic_cert.tar, the script rh_nic_cert.sh defines IMG_GUEST as:
http://netqe-bj.usersys.redhat.com/share/vms/rhel7.4.qcow2
But the FQDN in that URL is not in the Internet, and so this error happens:
--2018-01-28 15:19:18-- http://netqe-bj.usersys.redhat.com/share/vms/rhel7.4.qcow2
Resolving netqe-bj.usersys.redhat.com (netqe-bj.usersys.redhat.com)... failed: Name or service not known.
wget: unable to resolve host address ‘netqe-bj.usersys.redhat.com’
I was able to resolve it by connecting to Red Hat's network by VPN (since I am a Red Hat partner engineer, I was granted VPN access).
Can you put that rhel7.4.qcow2 image in a publicly-accessible file server so that it won't be necessary to VPN to Red Hat?
Hi, the readme states:
"""
Please visit https://access.redhat.com/downloads/content/479/ver=/rhel---8/8.2/x86_64/product-software and use the combo boxes to select the correct guest image for use with the tests. For example for 8.2 you would select 8.2 in the version and then select Red Hat Enterprise Linux Fast Datapath from the Product Variant. Save this to the DUT as the Ansible script will use it for the test setup. You will need to modify the trex_settings.yml file to specify where this was saved.
"""
But when we navigate to that repository of images, there is no .iso available for Fast Datapath option.
I have an issue running Perf-Verify.sh
It fails with following log:
[ERROR] 2017-11-29 11:04:22,430 : (root) - Could not import file trex.py
[ERROR] 2017-11-29 11:04:22,430 : (root) - Failed to run test: pvp_tput
Traceback (most recent call last):
File "./vsperf", line 688, in main
test.run()
File "/root/vswitchperf/testcases/testcase.py", line 330, in run
self.run_initialize()
File "/root/vswitchperf/testcases/testcase.py", line 198, in run_initialize
loader.get_trafficgen_class())
File "/root/vswitchperf/core/loader/loader.py", line 79, in get_trafficgen_class
return self._trafficgen_loader.get_class()
File "/root/vswitchperf/core/loader/loader_servant.py", line 67, in get_class
class_name=self._class_name)
File "/root/vswitchperf/core/loader/loader_servant.py", line 119, in load_module
path=path, interface=interface)
File "/root/vswitchperf/core/loader/loader_servant.py", line 142, in load_modules
for _, mod in LoaderServant._load_all_modules(path):
File "/root/vswitchperf/core/loader/loader_servant.py", line 181, in _load_all_modules
modname, *imp.find_module(modname, [root]))
File "/root/vsperfenv/lib64/python3.3/imp.py", line 175, in load_module
return load_source(name, filename, file)
File "/root/vsperfenv/lib64/python3.3/imp.py", line 114, in load_source
_LoadSourceCompatibility(name, pathname, file).load_module(name)
File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 1024, in load_module
File "<frozen importlib._bootstrap>", line 1005, in load_module
File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
File "<frozen importlib._bootstrap>", line 870, in _load_module
File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
File "/root/vswitchperf/tools/pkt_gen/trex/trex.py", line 32, in <module>
from trex_stl_lib.api import *
File "/root/vswitchperf/src/trex/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/api.py", line 4, in <module>
from .trex_stl_client import STLClient, LoggerApi
File "/root/vswitchperf/src/trex/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py", line 14, in <module>
from .trex_stl_vlan import VLAN
File "/root/vswitchperf/src/trex/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_vlan.py", line 8, in <module>
from scapy.layers.l2 import Dot1Q, Dot1AD
ImportError: cannot import name Dot1AD
By default it installs Python packages according to file:
vswitchperf# cat requirements.txt
pexpect==3.3
tox==1.8.1
jinja2==2.7.3
xmlrunner==1.7.7
requests==2.8.1
netaddr==0.7.18
scapy-python3==0.18
pyzmq==14.5.0
distro
The Scapy dependency is on python3 Scapy fork called "scapy3k".
As we can see in l2.py this fork doesn't have Dot1AD
implemented.
I manually installed upstream Scapy in vsperfenv with following command:
scl enable python33 "
virtualenv "/root/vsperfenv"
source /root/vsperfenv/bin/activate
cd /root/scapy
python setup.py install
"
However with upstream version script fails with following error:
Traceback (most recent call last):
File "/root/vsperfenv/lib/python3.3/site-packages/scapy/packet.py", line 230, in __getattr__
fld, v = self.getfield_and_val(attr)
TypeError: 'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/vsperfenv/lib/python3.3/site-packages/scapy/packet.py", line 230, in __getattr__
fld, v = self.getfield_and_val(attr)
TypeError: 'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/vsperfenv/lib/python3.3/site-packages/scapy/packet.py", line 230, in __getattr__
fld, v = self.getfield_and_val(attr)
It seems that this script and trex are dependent on very specific version of Scapy but not the one specified in requirements file.
We are Running OVS Function qualification test on broadcom controller .We configured the setup as per the link shown below on RHEL8.0
https://github.com/ctrautma/RHEL_NIC_QUALIFICATION/tree/8.0-Beta
Once setup done and started the tests, below listed test cases are failing , We are assuming it would be a script issue ,
ovs_test_vlan1
ovs_test_vxlan_flow
ovs_test_vm_vlan
ovs_test_vm_multiple_vlans
ovs_test_bond_lacp_active
ovs_test_bond_lacp_passive
ovs_test_bond_balance_slb
ovs_test_bond_balance_tcp
ovs_test_vlan_mode_access
ovs_test_vlan_mode_trunk
ovs_test_vlan_mode_native_tagged
ovs_test_vxlan_flow_ipv6
Could you please check & confirm wheather issue is from script or somewhere else??
Regards,
Raghav
In rh_nic_cert/bin/swcfg_cisco, i see that setup_port_channel creates port_channel, sets trunk mode as below and sets channel-group for switchports.
If the physical switchports are not configured to trunk or allows vlans are different, setting channel-group on switchports can fail with one of the following errors.
command failed: port not compatible [port allowed VLAN list]
command failed: port not compatible [port mode]
So, setup_port_channel/cleanup_port_channel should take care of setting trunk mode/vlans for switchports while configuring bonding.
Setup the Device Under Test (DUT), Open vSwitch -> Add the packages we need
Error: 'rhel-7-fast-datapath-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
=> "rhel-7-fast-datapath-htb-rpms" exist and not "rhel-7-fast-datapath-rpms"
Error: 'rhel-7-server-rhv-4-mgmt-agent-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
=> Cannot find "rhel-7-server-rhv-4-mgmt-agent-rpms" in "yum repolist all"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.