983 Commits

Author SHA1 Message Date
Federico Ressi
a4ab99ba89 Spliting infrared plugin into roles
Create a set of roles to be composed into a new infrared plugin. The
final goal for these roles is to be used for either downstream and
upstream CI

Change-Id: I48d5f500c2e694c3f94ee497a0df1d92b6c411b3
2020-03-17 11:07:08 +00:00
Zuul
ab6fb78e53 Merge "Skip tests from RebootNodesTest on non TripleO based cloud" 2020-03-17 11:04:42 +00:00
Federico Ressi
94d6543781 Try connecting to undercloud-0 host to verify it exists
Change-Id: I925cca50569cbae4ed6caae21838a85f2c13c093
2020-03-17 06:09:38 +01:00
Zuul
cd76eac859 Merge "Add support for networker nodes to assert_ovn_containers_running" 2020-03-16 12:41:40 +00:00
Zuul
d0b7954c04 Merge "Stop using system SSH config files by default." 2020-03-16 08:29:08 +00:00
Slawek Kaplonski
5895ff4e67 Skip tests from RebootNodesTest on non TripleO based cloud
Those tests are designed to be run on TripleO based cloud as
requires undercloud node and overcloud nodes.
So lets skip them in e.g. devstack based deployments to make
job in overall to be green.

It also renames this test class to be "RebootTripleoNodesTest"
to better express what are those tests doing.

Change-Id: I0a4e710a14648248c53ba357a6a461bf8da2853f
2020-03-15 00:55:47 +01:00
Eduardo Olivares
8f9ab5e4d3 Add support for networker nodes to assert_ovn_containers_running
Changes in some functions where default groups where only compute and
controller - now all overcloud nodes are included

Change-Id: I2259a7beb9c8b16d740317ff633c369735f0361d
2020-03-15 00:19:41 +02:00
Zuul
573da4a718 Merge "Add missing requirement to report environment" 2020-03-13 19:02:33 +00:00
Zuul
466318705b Merge "Get configured nova key file path relative to tobiko.conf file" 2020-03-13 18:40:40 +00:00
Zuul
d65841f7ee Merge "Fix has_ipv6 property in network fixture" 2020-03-13 18:18:36 +00:00
Federico Ressi
c2c5de1254 Stop using system SSH config files by default.
Change-Id: I530aefeae98fabc2f73fe625f384bd5b6592178b
2020-03-13 17:07:29 +01:00
Federico Ressi
930da585be Add missing requirement to report environment
Change-Id: Ie7a87f21735043a2e4eb8fd49be3535314eba3e4
2020-03-13 16:04:55 +00:00
Federico Ressi
faa9ee4065 Get configured nova key file path relative to tobiko.conf file
Change-Id: I5f9af93ec7e0ee8702b4ce296aff9a83b005c995
2020-03-13 16:42:47 +01:00
Slawek Kaplonski
23ea0d95d0 Fix has_ipv6 property in network fixture
By mistake "has_ipv6" propery was based on ipv4 config option.
This patch fixes it.

TrivialFix

Change-Id: I4b118380bba2661d1fbdf6409d12eb4f86b31b28
2020-03-13 16:31:32 +01:00
pinikomarov
3fef57a712 speed up containers sequencial calls with cache
Change-Id: Ic96b210522cd397e9ef9e3b4eb51b63aee3ba3b4
2020-03-13 02:55:35 +02:00
pinikomarov
8c42011634 add object container action support
allows restart and all actions on containers

Change-Id: I8cb5b8fea5d43916f422e35c0b73b311a26bcce9
2020-03-13 00:13:25 +02:00
Zuul
caa89ccf8a Merge "Add support for OSP13 to assert_ovn_containers_running" 2020-03-12 11:42:03 +00:00
Zuul
f0abb26100 Merge "Download IR workspace from a URL before importing it" 2020-03-11 17:11:20 +00:00
Zuul
4a154b5c3a Merge "Import infrared workspace if available" 2020-03-11 17:11:20 +00:00
Zuul
94ee873170 Merge "Remove devstack-ovn jobs" 2020-03-11 13:52:33 +00:00
Eduardo Olivares
532c091567 Add support for OSP13 to assert_ovn_containers_running
Container names differ between OSP13 and OSP16:
ovn-dbs-bundle-podman-<number>
ovn-dbs-bundle-docker-<number>

Besides, OVN agents are not listed in OSP13, so the method to
identify whether OVN is configured or not has been changed.

Change-Id: If77fca4ff7ba030a89543ff4b712a26ff037b699
2020-03-11 14:19:17 +01:00
Federico Ressi
f53cf0f1cb Download IR workspace from a URL before importing it
Change-Id: I82aa2c5b779b18291b87ee9dee6ba44179466ef4
2020-03-11 14:16:25 +01:00
Federico Ressi
f8329dbb30 Remove devstack-ovn jobs
Change-Id: I60aa45a6b7052e4feade961cddcba3801a32c536
2020-03-11 11:57:33 +01:00
Federico Ressi
447231ef0a Import infrared workspace if available
Change-Id: I06469d73e4da3005bccc6333becb5a0a69e4c89c
2020-03-11 11:42:14 +01:00
Federico Ressi
df574359c4 Resolve overcloud key file path relative to tobiko.conf file
Change-Id: I36fd159b0e1c3c7f3fdf01880549410291edc175
2020-03-11 11:03:46 +01:00
Andreas Jaeger
abe9f6614e Remove fedora nodeset
It turns out, that the fedora 3node nodeset is not used since
change Ic3493edae66df736ff29e3c3e82774e2649cef9d merged.

Remove it, so that we don't need to update it again in the future.

Change-Id: Ib65affbe84937e2e0bc0a3bec7fb9c21cfeb3636
2020-03-10 10:40:19 +01:00
Andreas Jaeger
01e8a4e645 Switch to Fedora 30
Fedora 29 is EOL, switch to Fedora 30 for nodeset.

Change-Id: I4c42e6a4f25b38c7486adde2b7bd4f7993e49be7
2020-03-09 20:18:31 +01:00
pinikomarov
c01764fe7c add container_runtime_name str var to containers.py it will contain podman/docker as deployed
Change-Id: Iff05741ac89fbf21489d5531bf63db03fadf25b8
2020-03-09 11:55:18 +02:00
pinikomarov
3768b4b168 test_cloud_recovery.health_checks cleanup vm_create method implementation
Change-Id: If3f95dd9e6e4816b4cf783236a6b6f92fa5a2989
2020-03-09 00:39:57 +02:00
Zuul
8b14eba327 Merge "fix for : remove os-faults bug and commented ha checks" 2020-03-08 13:39:19 +00:00
pinikomarov
7f1c6274ea fix for : remove os-faults bug and commented ha checks
Change-Id: Idfbf68b1ed2f3db22884c6e1c5273a03c01f3b56
2020-03-08 13:15:54 +02:00
Eduardo Olivares
5fc9d9bdeb Added OVN container verifications to test_cloud_recovery.py
These verifications will only be executed when OVN networking
plugin is configured

Change-Id: I8bebb4d12dca4bdd66baadf2f11fdddcacd872d7
2020-03-08 12:01:24 +02:00
pinikomarov
e67421603c make use of csv files with container state checks
def assert_equal_containers_state(expected_containers_list=None,
                                  timeout=120, interval=2,
                                  recreate_expected=False):

    """compare all overcloud container states with using two lists:
    one is current , the other some past list
    first time this method runs it creates a file holding overcloud
    containers' states: /home/stack/expected_containers_list_df.csv'
    second time it creates a current containers states list and
    compares them, they must be identical"""

Change-Id: Ib750bc6f512afddb6067d3dbaac4820bb43a6ed7
2020-03-07 03:30:32 +02:00
Zuul
3e8d7c7549 Merge "Fix ovn_resource_healthy function" 2020-03-06 12:31:07 +00:00
Eduardo Olivares
b647aef7d9 Check containers after VM creation
If sample of running containers is taken before creating a VM, some
sidecars containers would not exist. To avoid this, container checkings
are performed after VM creation

Change-Id: Ie24f8ad1b08391f65d1b3b199af3a40e49ed2ac5
2020-03-06 09:52:12 +01:00
Eduardo Olivares
395e5da29e Fix ovn_resource_healthy function
If the ovn resource is not present, skip the test

Change-Id: Ieb84d60cc7006591672ace4120b5f9752a67a9d9
2020-03-06 08:55:09 +01:00
pinikomarov
8781f5281f make reboot computes tests more robust and logging clearer
Change-Id: Ie9d6f2d2007443dacdb2ce30cedd1b8ded4b2361
2020-03-05 12:16:16 +02:00
Zuul
d6c94d9c22 Merge "start all nova instances if any, to not break containers before after test also make container state before after retryable" 2020-03-04 04:09:46 +00:00
Zuul
0bf3a16c15 Merge "Revert "Split command lines using shlex module"" 2020-03-04 02:50:09 +00:00
pinikomarov
12a4f881ba start all nova instances if any, to not break containers before after test
also make container state before after retryable

Change-Id: I2a0566e2bb185c172a095caea6a699b9e2b181ba
2020-03-04 03:38:58 +02:00
Pini Komarov
1f4f65b8a3 Revert "Split command lines using shlex module"
Since this causes a regression and breaks podman integration.
causing an infinite loop in the tobiko pomdan client

This reverts commit 05615d6487100372565f950c9a63a61ab16d211d.

Change-Id: Id82d02718ebbe5abee408c18858204f1c49229c1
2020-03-03 23:39:27 +00:00
Federico Ressi
1d90b2e3b3 Switch from CentOS 7 image to version 8
Change-Id: I56ebdef36b09cc576404cf8efde160d79ae246f3
2020-03-02 13:11:36 +01:00
Federico Ressi
253efa1019 Add APIs to manage cloud-init on Nova servers
Change-Id: Id705e465e44f18d4155cff8d46f26b94cd651801
2020-03-02 13:09:38 +01:00
Federico Ressi
05615d6487 Split command lines using shlex module
This also enable SSH compression by default

Change-Id: Ifc9449b7724f3e8bd7e15eab6e6a0f77d7be1840
2020-03-02 13:06:11 +01:00
Federico Ressi
7ae874af48 Add default nameservers to IPv4 subnet
This allows VMs to reach the internet to install packages

Change-Id: I42e74eaac06f91ba0eeba648a286e69a4e477f2e
2020-03-02 13:03:10 +01:00
Slawek Kaplonski
6319ca9fbd Add Neutron dhcp agent faults test cases
This new test case checks if dnsmasq process spawned for network
works fine when neutron-dhcp-agent is stopped and than started again.
Dnsmasq process should be running fine for all this time and should
not change its PID.

Change-Id: Iad7317761830d6dc07a84bce07a0437ca7e9d602
2020-02-27 05:28:50 +01:00
pinikomarov
f54c14b4b4 fix false : AssertionError: nova agents are unhealthy and
: OvercloudProcessesException: not all overcloud processes are
in running state, process nova-scheduler is not running

Change-Id: I58f18127f08f04e74da3563b22a8c36ab576014d
2020-02-27 02:14:24 +02:00
pinikomarov
9bd7bf521e Fix stack creation bug
Change-Id: I6994cb564238397128165d4575bedb7975168de1
2020-02-25 16:16:53 +02:00
pinikomarov
ec640e4334 fix =<osp13 container /name->name
Change-Id: I48a1baacaf847a0a9599af4e68d314ec8ff81df5
2020-02-22 23:34:02 +02:00
Zuul
260ef2edf4 Merge "add ability to fail tests, to pacemaker resources health check" 2020-02-22 02:00:12 +00:00