Commit Graph

192 Commits (2544c180c85d3eefb5fe271caa7b5bde336c205d)

Author SHA1 Message Date
Federico Ressi 630f4ad730 Remove six from project dependencies
Change-Id: I07ef144ce7af6d14004530f88318824e1545c4b9
2 years ago
Federico Ressi 630b53eee4 Increase timeout for assert_is_reachable method up to 10 minutes.
This is intended to increase tollerance to slow VM booting times.

Change-Id: Ib5018f57b184b7155dd2f9a6bf12fac105bc39ab
2 years ago
Federico Ressi f353024967 Update curl.execute_curl function
Change-Id: If43ee5fbdd34a366f9b8ab907e469b0a8d17ae9b
2 years ago
Federico Ressi f2ad0a4994 Wait for iperf3 server to be active before testing BW
Change-Id: I08f75d0884485a33edfd374f596cf2e6cff1bda7
2 years ago
Federico Ressi 4a275f1625 Use Ubuntu server with a working trunk VLAN subport
- It adds default vlan_id neutron config option
- Add a VLAN device to customized Ubuntu image configured
  to use DHCP
- Make Ubuntu server to use a working trunk VLAN subport
  connected to a new special network
- It pings such VLAN server port from a special CirrOS server connected
  to the new special network
- It fixes existing trunk test by providing a proven working
  vlan connection.

Change-Id: I07053dd264f26e7b3959f4ab1c7a6e054a702e77
2 years ago
Federico Ressi f5982e8bed Allow to specify device name when listing host IP addresses
Change-Id: Ia3f8a5ed8d5d27973e0294c14f979931a959da5e
2 years ago
Federico Ressi 81f1ae18f7 Update typing for ip module
Change-Id: I6ddcc4bd459ca241e2b6134aeaefc2abc78da5c4
2 years ago
Federico Ressi c7a6cb71ae Add list_systemd_units function
Change-Id: I4fd0759919d0a3cdaea00fca590193d12fef30be
2 years ago
Federico Ressi 507e0f5a2b Skip re-downloading files if maching file size
Change-Id: I0face95b88de153bb1f7e484a1f174dec134b78a
2 years ago
Federico Ressi c7fd1903b9 Create make_remote_dirs function
Change-Id: Iba66a2b9be4daefedbe23eebb616659edef6c98b
2 years ago
Federico Ressi b661b8f91e Add function to check file size
Change-Id: I6ef32b1fc34fcf9fd8df87e6212e858a07733c3f
2 years ago
Federico Ressi 94cd681041 Add function to create a temporary directory
Change-Id: I9c468e86ca66d10e43f258fc7e276f8cbf5e1181
2 years ago
Federico Ressi 073e161df9 Add download_file and get_file_size functions
Change-Id: Id89c67032f5dc596a24eb6ec448149550727ad29
2 years ago
Federico Ressi a3fe423a01 Add get_url_header function to curl package
Change-Id: I42977626780aedd58823658b18addc8465cfe479
2 years ago
Federico Ressi 23ab04f54e Create curl package
Change-Id: I30e018e3211b91a0c77dd6c82f359a8179457ccf
2 years ago
Federico Ressi 13afe23060 Disable stdout decoding to stream when reading Tcpdump file
Change-Id: Ib9ed0bb6f4c8a2b50daa2a7c05652f55f1f3517e
2 years ago
Federico Ressi 148a225311 Use kill command to kill local processes when sudo is required
Change-Id: I6cdbe70f1f08dc6f31916ee06213de85e6e1e232
2 years ago
Federico Ressi 1027cd96df Add kill method to PsProcess
Change-Id: Id9a10672086dac8bc23b54ed496161aa6989e4d2
2 years ago
Eduardo Olivares 1d8a0b18e6 Add tcpdump support and verify DSCP marking in QoS tests
tcpdump can be executed as a background process. A capture file,
a filter and an interface can be defined
Once the process is launched, traffic can be sent
After that, the process can be stopped and the capture file can be read
and verified if any packets have been captured

For the specific DSCP scenario, a filter is defined based on the DSCP
marking value configured for the QoS policy

Change-Id: I68a6529284aee27f162e7c27a322b83b767e2504
2 years ago
Federico Ressi ecddd6c438 Refactor QoS test case
- iperf3 is installed on the Ubuntu image used by the QoS tests
- iperf3 server is started as a systemctl service at VM boot and will manage any
- connections initiated from iperf3 clients

Co-Author: Eduardo Olivares <eolivares@redhat.com>
Change-Id: I1bff4953c2fdb47583174781c2578bcc8848f0a2
2 years ago
Zuul 6b3281bd6f Merge "Mantain read line ordering" 2 years ago
Federico Ressi 0f607b95c9 Mantain read line ordering
Change-Id: I6c03549753ca86ed3c0ef1ac1b0a5c0f01a8a31c
2 years ago
Roman Safronov 01d3a08f15 Fix test_ovs_objects_are_absent_on_node test
There were found 2 issues that cause the test to return wrong
results:
1. Ip list_interfaces command had a typo and was returning only one
interface rather than a list.
2. Some ovs-specific interfaces were not checked.

Change-Id: I4852d936c01b9cef50ce724dcf2047cdc1695dd1
2 years ago
Federico Ressi 0ab38a8318 Fix ShellReadable.read method when resulting chunk is None
Change-Id: Iaac28fe7ab9e89898798977cbca2ed4813489d7c
2 years ago
Federico Ressi c6aa9b7b06 Add caching mechanism to get_hostname function
Change-Id: I5c810740d030acd1141b4904cd478eb03df975e7
2 years ago
Federico Ressi ebe62cc404 Add support for ~ shell special character
Change-Id: If8a2de3987d261697a8d31f6761d109dc7de7e66
2 years ago
Federico Ressi 5f29553583 Fix assert_reachable_host function
When pinging a list of hosts temporary failures could
happend. This will retry pinging hosts that have vailed
for some more time (IE 5 minutes) before giving up.

This is required to handle situations where the reachability
of a remote host is expected to reach expected status at
some time in the near future (for example because
IPv6 address assignation is taking some time than IPv4 one)

Change-Id: I79f874ea439b4a1d7908ae0a04d002d8a81cba6b
2 years ago
Federico Ressi f526f4eae7 Load key files manually before making SSH connections
Change-Id: I63828b940d9bedcfff854f6732a78c09828666af
2 years ago
Zuul 2ba00d529c Merge "Update shell command join and quote methods" 2 years ago
Federico Ressi 3e3761e7c2 Update shell command join and quote methods
Change-Id: I57f913f5230e82909d59ce4412e04b1bff101e44
2 years ago
Federico Ressi 2bf4173432 Fix problem when making SSH connection to IPv6 IP address
Change-Id: I270e663794c07596d0451e7eea23289f13713d0a
2 years ago
Federico Ressi 2b79313978 Fix get_hostname function
Change-Id: Ifa8cb018e6ee35db17ea222466e7713106fd834e
2 years ago
Zuul 79dc4e3fe5 Merge "Add initial post OVN migration test" 2 years ago
Federico Ressi 46cba5ab1f Update type hints for ps tool integration
Change-Id: I61abfcd4602d0a17f8bef05070f404bbe0779b02
2 years ago
Zuul 8346887588 Merge "Use UTF-8 encoding when reading SSH config files" 2 years ago
Federico Ressi 4afd3d99d5 Add type hint to ShellProcessFixture.execute method
Change-Id: Ib82940c07d3afa331e787cdbf8a805830694bba9
2 years ago
Federico Ressi 4b6d86e6a6 Use UTF-8 encoding when reading SSH config files
This prevents configuration errors with Python 3.6

Change-Id: Ife61beb1d8bd5378f39ab58c1ee3956cc26316da
2 years ago
Zuul 770f3dab17 Merge "Update shell command tool" 2 years ago
Zuul d048486959 Merge "Add tool to connect to a remote unix socket" 2 years ago
Federico Ressi e6dc88201b Update shell command tool
Improve typing hints for shell command tool
Add unit test for ShellCommand class

Change-Id: Ibe3d2cfeddd13fb96831c6343c1a7585fc39536e
2 years ago
Federico Ressi 7bebd145ba Add tool to connect to a remote unix socket
Change-Id: I9492d4e9dfaaf32e8db955fbe7c323f5281e7390
2 years ago
Federico Ressi 739a4e3c55 Fix default shell for command execution
Change-Id: Id783ef736b82615458d918de46d0e2e5ab82f706
2 years ago
Federico Ressi eeacdedee0 Use NGIX HTTP server for testing curl integration
Change-Id: I629b4444ee8d70aaee9e4c4f92fc3a50f5db973b
2 years ago
Federico Ressi 2cde963248 Update tobiko shell package
Change-Id: I18d87d1763d5b501bd3694f79940d2b1ee441dd9
2 years ago
Roman Safronov 010c6de34e Add initial post OVN migration test
The test validates that openstack nodes do not have any ML2/OVS
specific namespaces and interfaces.

Change-Id: Ia1722f049deab37283bb1e937da4b02515e89f05
2 years ago
Federico Ressi ed84b3fcd6 Use Ubuntu minimal image to run Iperf3 server
- install ipref3 using virt-customize
- enables QoS server test on DevStack based setups
- remove iperf3 installation from iperf3 shell APIs
- raise default QoS BW limit from 1Kbps to 1 Mbps
- increase QoS bandwith limit tollerance range (90%-110%)

Depends-On: https://review.opendev.org/c/x/devstack-plugin-tobiko/+/788899
Change-Id: Idc7d98b34ce59d14408b15edb6061a36f796a8fc
2 years ago
Federico Ressi b298c8843c Update cloud-init integration
Add method for waiting for cloud init is done before considering
a server fixture ready to use

Change-Id: I34c546d92e883aba998c480edede3352ca7153cb
2 years ago
Slawek Kaplonski 9a58a5f875 Revert "Test quorum number of controller nodes hard shutdown"
This reverts commit 919f5d3eaa.

Reason for revert: This new test brings (almost) no new values and is causing some problems. So let's get rid of it. We have another test which is powering down nodes using Ironic API.

Change-Id: I0e8c6b76d6acaba264ca234fb071d304b3ba8b7c
2 years ago
Slawek Kaplonski 919f5d3eaa Test quorum number of controller nodes hard shutdown
Test cloud recovery after two controller nodes has been
hard power off using sysrq.

This patch should verify BugZilla n. 1942094 [1]

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1942094

Change-Id: I5d8cb0711e9658982786ceb8a33c8fffecdf952d
2 years ago
Eduardo Olivares e91a08df90 Create bw limit qos test
iperf is used to measure bw from a CentOS VM instance

Change-Id: I4e474bd9fbaefae9e7d356eda2bf9c458ed3356b
2 years ago