2662 Commits

Author SHA1 Message Date
Zuul
ac2b04dceb Merge "Update private key which should be used to sync github mirror" 2022-10-14 10:03:02 +00:00
Slawek Kaplonski
cb85f23589 Update private key which should be used to sync github mirror
Change-Id: I8b65b2ba270f4916ac36a012d670a7b04f278110
2022-10-13 09:57:03 +02:00
Slawek Kaplonski
770162f1cf Optimize get_cmd_pids and list_pids methods
Method get_cmd_pids is retrying calling list_pids if enough
PIDs for specified process aren't found.
In such case there is no need to check every time all PIDs which
were already checked and don't match command filter.
So now it will "remember" about PIDs already checked and will only
check cmdline for new pids found in each iteration.

Change-Id: Icf873812aec80a35a988b32e31d9199e248b201e
2022-10-12 10:30:58 +00:00
Zuul
faf6f6cc7c Merge "Update github's deploy SSH secrets" 2022-10-07 14:24:25 +00:00
Slawek Kaplonski
ae6deb883f Update github's deploy SSH secrets
Change-Id: I65e9e210d84f2aa9d9209a04fcf468841364d3f6
2022-10-06 11:09:41 +02:00
Eduardo Olivares
d31d4729f7 Skip test_z99_crash_controller_non_main_vip unless kexec-tools available
In later OSP releases, kexec-tools package is not installed on overcloud
images - Due to this, controller nodes are not recovered after
a triggering a kernel panic on more then one (in a setup with
three controllers, two of them need to be healthy in order to have quorum)

Change-Id: I32a8cb7d803eefa89695bdde0b04cb22180dde66
2022-10-05 09:24:21 +02:00
Zuul
e2badf777a Merge "Fix the exception raised during assert_containers_running method" 2022-09-26 10:34:04 +00:00
Eduardo Olivares
efed54058e Update latest stable tag to 0.6.2
Change-Id: Id65e405ca9343447d763f82109dff5d19e9ea4b0
2022-09-22 16:33:24 +02:00
Alex Katz
27290ca959 Fix the problem with ss command line output parser
In OSP versions below 16.2 there is no 'Processes' column in the
header of `ss` command line tool output. While processes themselves
exist in the output body it still failed to parse results of the
command execution.

As a solution we may provide expected header as a parameter to the
parser as the output itself is identical for all versions

Change-Id: I2896cdbd2aa47e7bbb4d793b746a8abe0cc019ca
0.6.2
2022-09-21 12:52:29 +00:00
Zuul
e4464c56e2 Merge "Fix pylint errors with pandas 1.5.0" 2022-09-21 12:48:10 +00:00
Slawek Kaplonski
258febb176 Fix pylint errors with pandas 1.5.0
Change-Id: I0e3c7e442aa575e440ac00aae6069b735505cffc
2022-09-20 10:11:55 +02:00
Zuul
697f0b28ca Merge "Adapt main_vip to pacemaker command output in case of IPv6" 2022-09-19 10:07:58 +00:00
Zuul
9878bbf39b Merge "Refactor Ubuntu image stack" 2022-09-19 09:53:53 +00:00
Eduardo Olivares
28cd2ef83a Adapt main_vip to pacemaker command output in case of IPv6
When the main_vip is an IPv6, the pacemaker status command output
replaces ":" by "."
The same replacement needs to be applied in tobiko

Change-Id: I03f90d689f93e5bd9e2df541238f259eea7694e1
2022-09-19 07:14:58 +00:00
Eduardo Olivares
b0f464b8c0 Fix the exception raised during assert_containers_running method
This method calls tobiko.fail when it detects something wrong wrt
containers
tobiko.fail input parameters should be a string and an Exception, but
the code wrongly passes two strings

Change-Id: I8e25276e423e3fbc02b2a486c1f5f15066fd6037
2022-09-15 17:28:45 +02:00
Zuul
04f6f04eaa Merge "Add test that verifies connectivity from computes to OVN DBS" 2022-09-15 15:28:24 +00:00
Zuul
5c30ba6107 Merge "Collect unix socket information using existing ss module" 2022-09-15 15:28:21 +00:00
Eduardo Olivares
15d03004df Skip test_reset_ovndb_master_container when OVN does not use HA
Change-Id: I1aff693e533fc4fbf8bb34a260465904cda63e62
2022-09-15 13:59:39 +02:00
Zuul
85c455e219 Merge "Fix galera grastate faults tests" 2022-09-14 18:34:16 +00:00
Eduardo Olivares
ccfadac498 Fix galera grastate faults tests
The output of the command that enables galera pcs resources has changed
in latest OSP releases

Change-Id: Ibfe33962d49cd15122e33e4d6de3f999f81cc6fd
2022-09-14 14:20:23 +02:00
Eduardo Olivares
622bfcc248 Fix test_reboot_host_with_wait - wait after reboot
This test often fails because it tries to connect via ssh immediately
after the reboot command is sent
paramiko gets stuck until it times out after 30 minutes

Change-Id: I8027fd76f8dcb0abdfefff0e3946a5046e97ef78
2022-09-14 12:51:11 +02:00
Zuul
7190822212 Merge "test_check_background_vm_ping: print all unreplied pings" 2022-09-14 09:36:53 +00:00
Alex Katz
11dd1fa650 Add test that verifies connectivity from computes to OVN DBS
Need to check if all processes from controllers and computes
are connected to the SB database

Change-Id: I1f8545c945ac5d0cfe2c10c79cc4c06fd26a1526
2022-09-12 00:48:15 +03:00
Alex Katz
991630f169 Collect unix socket information using existing ss module
Change-Id: I90afc588b42836e930bc594fd1551e3d76218eeb
2022-09-11 13:45:12 +03:00
Eduardo Olivares
b5f09cd70e Remove "heat-admin" harcoded overcloud username from the code
Recently, the default overcloud username value has changed in the
downstream jobs
After that, some tests using the podman API failed because they
configured the podman sockets service using a hardcoded value that
doesn't apply anymore

This patch removes the harcoded value from the podman code and also from
the cloud_disruptions module

The proper overcloud ssh username needs to be configured in the
tobiko.conf file (its default configurable value is still heat-admin)

Change-Id: I38af9de21caf4eb2a8b222bb8f849da0cea5a323
2022-09-09 16:47:04 +02:00
Zuul
28f826a471 Merge "Create module to capture output of ss command" 2022-09-09 06:35:00 +00:00
Zuul
a2fab6e5c2 Merge "Add tobiko-upload-git-mirror job" 2022-09-08 16:44:40 +00:00
Zuul
9fc0cdedb9 Merge "Move OVN DB service model querier to trripleo module" 2022-09-08 14:52:00 +00:00
Eduardo Olivares
655cded86b test_check_background_vm_ping: print all unreplied pings
Before this patch, only <failure_limit> lines were printed

Change-Id: I5d80d067cf8eb4bb98fd2bac24faa92889539c58
2022-09-08 13:57:34 +02:00
Zuul
3a9bcbf08c Merge "Fix sphinx_rtd_theme in doc requirements" 2022-09-07 10:19:56 +00:00
Zuul
9cd13e9d6f Merge "Use unsafe option in the pre-commit's check-yaml hook" 2022-09-07 10:19:53 +00:00
Alex Katz
f773893c69 Create module to capture output of ss command
There are different places where we try to get information from ss
command so it make sense to have a common module to capture info

In current patch there is only tcp_listening handler added. More
functionality in following patches.

Change-Id: I15e8d1fc68946672d599863150da9406908522a4
2022-09-07 12:48:17 +03:00
Slawek Kaplonski
aa7ae679e1 Fix sphinx_rtd_theme in doc requirements
Package sphinx_rtd_theme is constrainted in the global
upper constraints to version 0.5.1 so we need to have at least
the same version in our lower constraints for it.

Change-Id: I1f1b55c614a32ee35388895be240743729db505e
2022-09-07 09:12:40 +00:00
Zuul
458d38238f Merge "Don't skip 'test_ovs_bridges_mac_table_size' test for OSP17.0 and above." 2022-09-07 07:32:02 +00:00
Alex Katz
458bbab794 Move OVN DB service model querier to trripleo module
Change-Id: Id32673e9225ad7f6b4e0a92ef3bcb2504436bf95
2022-09-06 17:00:15 +03:00
Julia Marciano
440c94610c Don't skip 'test_ovs_bridges_mac_table_size' test for OSP17.0 and above.
Change-Id: I7664aba4a9a1baa08d5cb7cf85ce751754e3f3f1
2022-09-06 14:11:06 +03:00
Slawek Kaplonski
d804e704bc Add tobiko-upload-git-mirror job
This job will be run in the post, release and pre-release queues
in zuul and will mirror or opendev.org/x/tobiko repository to the
redhat-openstack/tobiko project on github.

Change-Id: Ie657db33295ca8b70579203a5806889ddbef6237
2022-09-06 12:01:35 +02:00
Slawek Kaplonski
f9fa6c1fc2 Use unsafe option in the pre-commit's check-yaml hook
Pre-commit's check-yaml hook by default loads all yaml files to
check them. This works fine so far but as we want to have zuul
job to mirror Tobiko code to the github.com we will need to use
"secret" with custom tag "!encrypted/pkcs1-oaep". That is causing
failure of the check-yaml hook while loading yaml files.

To avoid that failure, lets use "--unsafe" option in the check-yaml
hook. With this option hook instead of loading the files,
simply parse them for syntax.

Change-Id: I9a27da6c096bae933bc9254fbad5fc5c22269560
2022-09-06 11:57:38 +02:00
Zuul
53322d5460 Merge "skip test_1_dvr_router_without_server during verify-resources" 2022-09-05 08:47:31 +00:00
Slawek Kaplonski
a5f3cbeb83 Remove test_ovs module from the faults tests for neutron
This module contained only one test "test_recreate_physical_bridge"
which was deleting physical bridges from the controller node, creating
those bridges again and ensuring that neutron-ovs-agent did
reconfiguration of that physical bridges properly and connectivity
through the bridges is restored.
Problem with this test is that it is "too much" intrusive. Physical
bridge needs to have some physical interface added to it to have
connectivity to the physical network. When bridge is deleted, such
port from the bridge is gone too. And Tobiko was adding bridge again,
but it wasn't adding interfaces again at all. That caused problems with
connectivity of the FIPs as well as some other stuff, like access to the
rabbitmq for services on that node when the same bridge was used for the
control plane networks.
The problem is that it would be very hard for tobiko to restore all the
configuration of the bridges as it can be some vlan interace (like
vlan50 in many Tripleo based virtual deployments used in CI), some
physical NIC or patch port to other bridge (like to br-infra in the u/s
CI configurations).

Taking all of that into account I think that it's better to simply
remove that test which in fact don't have that much value and make
Tobiko test suite more stable in testing other stuff.

Change-Id: I1f87cd74936809fe391cd8841d29ece46f9c7afe
2022-09-02 14:40:58 +02:00
Eduardo Olivares
8e18794034 skip test_1_dvr_router_without_server during verify-resources
test_1_dvr_router_without_server passes during create-resources but it
fails during verify-resources. The reason is that it cleans up some
resources and tries to create them again, but the fact verify-resources
is called with TOBIKO_PREVENT_CREATE=True prevents their creation

Change-Id: Ided072d74eb2b089d1e23d2823e540ca28b6c234
2022-09-01 12:50:03 +02:00
Eduardo Olivares
72c7716de4 Update latest stable tag to 0.6.1
Change-Id: I583e57b4e58bbf0ae813f776b5ca26a9b2ba28a9
2022-09-01 09:55:52 +02:00
Eduardo Olivares
0fa4a6614e Redirect stderr of pcs resource enable/disable commands
The output of these commands is printed either in stdout or in stderr
depending on the Openstack version - due to this, some faults tests fail
on later versions
This patch redirects stderr output to stdin

Change-Id: Ic14d69e6a96261d2ba61a11d8ff4dcdb40982bbe
0.6.1
2022-08-29 09:53:34 +02:00
Zuul
d0fdf4a4d2 Merge "Update testing nodes to Fedora 36" 2022-08-29 02:33:11 +00:00
Zuul
4316908251 Merge "Enable OVN DB health checks when RAFT is enabled" 2022-08-25 08:30:59 +00:00
Alex Katz
25d0bd9584 Verify RAFT DB inter-cluster communication
Making sure that all cluster nodes are listening on the defined ports

Change-Id: Ie85ac3b4153b37f9da44b3caffa6c77ee9b855f7
2022-08-25 05:39:48 +00:00
Zuul
c20afd420c Merge "Add basic RAFT health checks" 2022-08-24 19:33:51 +00:00
Zuul
4582661d29 Merge "Modify test_ovn_dbs_validations method to work with RAFT part2" 2022-08-24 19:10:54 +00:00
Zuul
3614d4bc2c Merge "Remove subnet tests from test_network" 2022-08-24 18:51:24 +00:00
Alex Katz
754d658a1b Add basic RAFT health checks
Verifying following parameters:
 - Single leader node presents
 - There are connections between leader and followers
 - Connections are faster then election timer

Change-Id: Ibd4264a435b3ac27dee3ab76ee18244d10a2c1f5
2022-08-24 18:46:04 +03:00