From: Ondrej Lichtner <olichtne(a)redhat.com>
Sending the v2 patchset for archiving purposes and pushing the patches
to the upstream next branch.
Thanks jtluka and jurbanov for the review!
-Ondrej
v2 changes:
lnst.Tests reimplement IcmpPing as Ping:
fixed missing if not match
lnst.Devices.Device add ips_filter method:
fixed exception handling - "match" should be set to False
lnst.Common.Parameters add new types and modify...
Hostname checked by regex instead of getaddrinfo. Thanks jurbanov!
add lnst.RecipeCommon.PerfResult:
fixed class names and removed a debug print
lnst.Recipes.ENRT add BaseEnrtRecipe:
define test wide (de)configuration methods to raise NotImplementedError
Original cover letter:
Hi all,
apologies for the long patch set... it contains my work from the past
couple of months on porting our first ENRT recipe. I went through
numerous iterations of the ported recipe and refactored it several times
which is why it took so long. At the same time I expect more refactoring
as we port more recipes and this is very likely not the final version of
the recipe. Overall though I'm very happy with the abstraction and the
overall organization of the recipe which is why I've decided to send the
patchset for some upstream review.
While porting the recipe I also modified the base LNST code which made
the patchset a bit longer, these contain bug fixes, refactoring some
code and some changes to the tester facing API.
I've also added ResultLevels that can be used to filter results and
print the result summary based on importance of a job.
Ondrej Lichtner (25):
lnst.Slave.Job: kill should target full process group
lnst.Slave.Job: set Job result if SIGKILLed
lnst.*: pass Namespace objects instead of names
lnst.Controller.RecipeResults: add ResultLevel enum
lnst.Controller.Job: add level attribute
lnst.Controller.Namespace: expose api to set job level
lnst.Controller.RecipeResults: expose result levels in Result clas
lnst.Controller.RunSummaryFormatter: filter results by result level
lnst.Tests: add Iperf test module
lnst.Tests: reimplement IcmpPing as Ping
lnst.Devices.Device: add ips_filter method
lnst.Controller.Namespace: devices property lists only mapped devices,
add device_database
setup.py: fix version call
lnst.Controller.Namespace: remove __str__ method
lnst.Common.Parameters: add new types and modify some old
add lnst.Recipes module
add lnst.Recipes.ENRT module
remove recipes/regression_tests/*
add lnst.RecipeCommon.PerfResult
lnst.RecipeCommon: add Perf and Ping
lnst.RecipeCommon: add IperfMeasurementTool
lnst.Recipes.ENRT: add BaseEnrtRecipe
lnst.Recipes.ENRT: add SimplePerfRecipe
TODO updated
lnst.Common.IpAddress: remove Device case from ipaddress factory
TODO | 87 ++--
lnst/Common/IpAddress.py | 8 -
lnst/Common/Parameters.py | 54 +-
lnst/Controller/Job.py | 15 +-
lnst/Controller/Machine.py | 10 +-
lnst/Controller/Namespace.py | 25 +-
lnst/Controller/RecipeResults.py | 24 +-
lnst/Controller/RunSummaryFormatter.py | 10 +-
lnst/Devices/Device.py | 15 +
lnst/Devices/RemoteDevice.py | 6 +-
lnst/RecipeCommon/IperfMeasurementTool.py | 83 ++++
lnst/RecipeCommon/Perf.py | 114 +++++
lnst/RecipeCommon/PerfResult.py | 151 ++++++
lnst/RecipeCommon/Ping.py | 45 ++
lnst/Recipes/ENRT/BaseEnrtRecipe.py | 218 ++++++++
lnst/Recipes/ENRT/SimplePerfRecipe.py | 75 +++
lnst/Recipes/ENRT/__init__.py | 0
lnst/Recipes/__init__.py | 0
lnst/Slave/Job.py | 18 +-
lnst/Tests/IcmpPing.py | 63 ---
lnst/Tests/Iperf.py | 147 ++++++
lnst/Tests/Ping.py | 97 ++++
lnst/Tests/__init__.py | 3 +-
.../regression_tests/phase1/3_vlans.README | 75 ---
recipes/regression_tests/phase1/3_vlans.py | 332 -------------
recipes/regression_tests/phase1/3_vlans.xml | 107 ----
.../3_vlans_over_active_backup_bond.README | 84 ----
.../3_vlans_over_active_backup_bond.xml | 121 -----
.../phase1/3_vlans_over_bond.py | 332 -------------
.../3_vlans_over_round_robin_bond.README | 84 ----
.../phase1/3_vlans_over_round_robin_bond.xml | 114 -----
.../phase1/active_backup_bond.README | 81 ---
.../phase1/active_backup_bond.xml | 50 --
.../phase1/active_backup_double_bond.README | 81 ---
.../phase1/active_backup_double_bond.xml | 60 ---
.../regression_tests/phase1/bonding_test.py | 305 ------------
.../regression_tests/phase1/ping_flood.README | 38 --
.../regression_tests/phase1/ping_flood.xml | 30 --
.../phase1/round_robin_bond.README | 81 ---
.../phase1/round_robin_bond.xml | 50 --
.../phase1/round_robin_double_bond.README | 81 ---
.../phase1/round_robin_double_bond.xml | 58 ---
.../phase1/simple_netperf.README | 72 ---
.../regression_tests/phase1/simple_netperf.py | 277 -----------
.../phase1/simple_netperf.xml | 39 --
.../regression_tests/phase1/simple_ping.py | 43 --
...dge_2_vlans_over_active_backup_bond.README | 106 ----
...bridge_2_vlans_over_active_backup_bond.xml | 174 -------
.../virtual_bridge_2_vlans_over_bond.py | 402 ---------------
.../virtual_bridge_vlan_in_guest.README | 82 ---
.../phase1/virtual_bridge_vlan_in_guest.py | 331 ------------
.../phase1/virtual_bridge_vlan_in_guest.xml | 80 ---
.../phase1/virtual_bridge_vlan_in_host.README | 82 ---
.../phase1/virtual_bridge_vlan_in_host.py | 331 ------------
.../phase1/virtual_bridge_vlan_in_host.xml | 80 ---
.../3_vlans_over_active_backup_team.README | 84 ----
.../3_vlans_over_active_backup_team.xml | 125 -----
.../3_vlans_over_round_robin_team.README | 84 ----
.../phase2/3_vlans_over_round_robin_team.xml | 118 -----
.../phase2/3_vlans_over_team.py | 332 -------------
.../phase2/active_backup_double_team.README | 81 ---
.../phase2/active_backup_double_team.xml | 68 ---
.../phase2/active_backup_team.README | 81 ---
.../phase2/active_backup_team.xml | 54 --
...e_backup_team_vs_active_backup_bond.README | 81 ---
...tive_backup_team_vs_active_backup_bond.xml | 64 ---
...ive_backup_team_vs_round_robin_bond.README | 81 ---
...active_backup_team_vs_round_robin_bond.xml | 64 ---
.../phase2/round_robin_double_team.README | 81 ---
.../phase2/round_robin_double_team.xml | 68 ---
.../phase2/round_robin_team.README | 81 ---
.../phase2/round_robin_team.xml | 52 --
...nd_robin_team_vs_active_backup_bond.README | 81 ---
...round_robin_team_vs_active_backup_bond.xml | 64 ---
...ound_robin_team_vs_round_robin_bond.README | 81 ---
.../round_robin_team_vs_round_robin_bond.xml | 64 ---
recipes/regression_tests/phase2/team_test.py | 470 ------------------
...dge_2_vlans_over_active_backup_bond.README | 77 ---
..._bridge_2_vlans_over_active_backup_bond.py | 381 --------------
...bridge_2_vlans_over_active_backup_bond.xml | 135 -----
.../virtual_ovs_bridge_vlan_in_guest.README | 55 --
.../virtual_ovs_bridge_vlan_in_guest.py | 319 ------------
.../virtual_ovs_bridge_vlan_in_guest.xml | 76 ---
.../virtual_ovs_bridge_vlan_in_host.README | 58 ---
.../phase2/virtual_ovs_bridge_vlan_in_host.py | 319 ------------
.../virtual_ovs_bridge_vlan_in_host.xml | 74 ---
.../phase3/2_virt_ovs_vxlan.README | 129 -----
.../phase3/2_virt_ovs_vxlan.py | 279 -----------
.../phase3/2_virt_ovs_vxlan.xml | 145 ------
.../phase3/novirt_ovs_vxlan.README | 93 ----
.../phase3/novirt_ovs_vxlan.py | 216 --------
.../phase3/novirt_ovs_vxlan.xml | 87 ----
.../phase3/vxlan_multicast.README | 118 -----
.../phase3/vxlan_multicast.py | 249 ----------
.../phase3/vxlan_multicast.xml | 99 ----
.../phase3/vxlan_remote.README | 86 ----
.../regression_tests/phase3/vxlan_remote.py | 215 --------
.../regression_tests/phase3/vxlan_remote.xml | 65 ---
setup.py | 6 +-
99 files changed, 1125 insertions(+), 10046 deletions(-)
create mode 100644 lnst/RecipeCommon/IperfMeasurementTool.py
create mode 100644 lnst/RecipeCommon/Perf.py
create mode 100644 lnst/RecipeCommon/PerfResult.py
create mode 100644 lnst/RecipeCommon/Ping.py
create mode 100644 lnst/Recipes/ENRT/BaseEnrtRecipe.py
create mode 100644 lnst/Recipes/ENRT/SimplePerfRecipe.py
create mode 100644 lnst/Recipes/ENRT/__init__.py
create mode 100644 lnst/Recipes/__init__.py
delete mode 100644 lnst/Tests/IcmpPing.py
create mode 100644 lnst/Tests/Iperf.py
create mode 100644 lnst/Tests/Ping.py
delete mode 100644 recipes/regression_tests/phase1/3_vlans.README
delete mode 100644 recipes/regression_tests/phase1/3_vlans.py
delete mode 100644 recipes/regression_tests/phase1/3_vlans.xml
delete mode 100644
recipes/regression_tests/phase1/3_vlans_over_active_backup_bond.README
delete mode 100644 recipes/regression_tests/phase1/3_vlans_over_active_backup_bond.xml
delete mode 100644 recipes/regression_tests/phase1/3_vlans_over_bond.py
delete mode 100644 recipes/regression_tests/phase1/3_vlans_over_round_robin_bond.README
delete mode 100644 recipes/regression_tests/phase1/3_vlans_over_round_robin_bond.xml
delete mode 100644 recipes/regression_tests/phase1/active_backup_bond.README
delete mode 100644 recipes/regression_tests/phase1/active_backup_bond.xml
delete mode 100644 recipes/regression_tests/phase1/active_backup_double_bond.README
delete mode 100644 recipes/regression_tests/phase1/active_backup_double_bond.xml
delete mode 100644 recipes/regression_tests/phase1/bonding_test.py
delete mode 100644 recipes/regression_tests/phase1/ping_flood.README
delete mode 100644 recipes/regression_tests/phase1/ping_flood.xml
delete mode 100644 recipes/regression_tests/phase1/round_robin_bond.README
delete mode 100644 recipes/regression_tests/phase1/round_robin_bond.xml
delete mode 100644 recipes/regression_tests/phase1/round_robin_double_bond.README
delete mode 100644 recipes/regression_tests/phase1/round_robin_double_bond.xml
delete mode 100644 recipes/regression_tests/phase1/simple_netperf.README
delete mode 100644 recipes/regression_tests/phase1/simple_netperf.py
delete mode 100644 recipes/regression_tests/phase1/simple_netperf.xml
delete mode 100644 recipes/regression_tests/phase1/simple_ping.py
delete mode 100644
recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_active_backup_bond.README
delete mode 100644
recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_active_backup_bond.xml
delete mode 100644 recipes/regression_tests/phase1/virtual_bridge_2_vlans_over_bond.py
delete mode 100644 recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.README
delete mode 100644 recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.py
delete mode 100644 recipes/regression_tests/phase1/virtual_bridge_vlan_in_guest.xml
delete mode 100644 recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.README
delete mode 100644 recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.py
delete mode 100644 recipes/regression_tests/phase1/virtual_bridge_vlan_in_host.xml
delete mode 100644
recipes/regression_tests/phase2/3_vlans_over_active_backup_team.README
delete mode 100644 recipes/regression_tests/phase2/3_vlans_over_active_backup_team.xml
delete mode 100644 recipes/regression_tests/phase2/3_vlans_over_round_robin_team.README
delete mode 100644 recipes/regression_tests/phase2/3_vlans_over_round_robin_team.xml
delete mode 100644 recipes/regression_tests/phase2/3_vlans_over_team.py
delete mode 100644 recipes/regression_tests/phase2/active_backup_double_team.README
delete mode 100644 recipes/regression_tests/phase2/active_backup_double_team.xml
delete mode 100644 recipes/regression_tests/phase2/active_backup_team.README
delete mode 100644 recipes/regression_tests/phase2/active_backup_team.xml
delete mode 100644
recipes/regression_tests/phase2/active_backup_team_vs_active_backup_bond.README
delete mode 100644
recipes/regression_tests/phase2/active_backup_team_vs_active_backup_bond.xml
delete mode 100644
recipes/regression_tests/phase2/active_backup_team_vs_round_robin_bond.README
delete mode 100644
recipes/regression_tests/phase2/active_backup_team_vs_round_robin_bond.xml
delete mode 100644 recipes/regression_tests/phase2/round_robin_double_team.README
delete mode 100644 recipes/regression_tests/phase2/round_robin_double_team.xml
delete mode 100644 recipes/regression_tests/phase2/round_robin_team.README
delete mode 100644 recipes/regression_tests/phase2/round_robin_team.xml
delete mode 100644
recipes/regression_tests/phase2/round_robin_team_vs_active_backup_bond.README
delete mode 100644
recipes/regression_tests/phase2/round_robin_team_vs_active_backup_bond.xml
delete mode 100644
recipes/regression_tests/phase2/round_robin_team_vs_round_robin_bond.README
delete mode 100644
recipes/regression_tests/phase2/round_robin_team_vs_round_robin_bond.xml
delete mode 100644 recipes/regression_tests/phase2/team_test.py
delete mode 100644
recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.README
delete mode 100644
recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.py
delete mode 100644
recipes/regression_tests/phase2/virtual_ovs_bridge_2_vlans_over_active_backup_bond.xml
delete mode 100644
recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.README
delete mode 100644 recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.py
delete mode 100644 recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_guest.xml
delete mode 100644
recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.README
delete mode 100644 recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.py
delete mode 100644 recipes/regression_tests/phase2/virtual_ovs_bridge_vlan_in_host.xml
delete mode 100644 recipes/regression_tests/phase3/2_virt_ovs_vxlan.README
delete mode 100644 recipes/regression_tests/phase3/2_virt_ovs_vxlan.py
delete mode 100644 recipes/regression_tests/phase3/2_virt_ovs_vxlan.xml
delete mode 100644 recipes/regression_tests/phase3/novirt_ovs_vxlan.README
delete mode 100644 recipes/regression_tests/phase3/novirt_ovs_vxlan.py
delete mode 100644 recipes/regression_tests/phase3/novirt_ovs_vxlan.xml
delete mode 100644 recipes/regression_tests/phase3/vxlan_multicast.README
delete mode 100644 recipes/regression_tests/phase3/vxlan_multicast.py
delete mode 100644 recipes/regression_tests/phase3/vxlan_multicast.xml
delete mode 100644 recipes/regression_tests/phase3/vxlan_remote.README
delete mode 100644 recipes/regression_tests/phase3/vxlan_remote.py
delete mode 100644 recipes/regression_tests/phase3/vxlan_remote.xml
--
2.17.0
Show replies by date