Liam Young
c34f2b2a54
Enable guest restart test on ussuri
...
As documented in the 20.05 release note the guest restart function
of masakari is currently supported on ussuri+ so enable the test
for bionic-ussuri+
2020-05-26 07:45:54 +00:00
coreycb
754a709083
Merge pull request #291 from thedac/reboot-from-outage-fixes
...
Handle reboot_from_complete_outage for mysql-innodb-cluster
2020-05-21 18:31:51 -04:00
David Ames
d45e1a655c
Merge pull request #272 from mfmsilva/add_mysqldump_to_common
...
Add mysqldump test to MySqlCommonTests
2020-05-21 15:21:35 -07:00
David Ames
4802e632bd
lint fix
2020-05-20 15:05:37 -07:00
David Ames
e347f0cb7a
Handle reboot_from_complete_outage for mysql
...
Test updates to re-enable reboot_from_complete_outage testing on
mysql-innodb-cluster.
2020-05-20 11:56:55 -07:00
Marco Silva
28924d2909
Move mysqldump from MySQLInnoDBClusterTests to MySQLCommonTests
...
Moved mysqldump function. Added check for percona-cluster application
on the function, to avoid breaking checks on non-percona applications.
2020-05-20 13:05:43 +01:00
Dmitrii Shcherbakov
51bce56f9e
Skip test_921_remove_and_add_unit
...
Due to test stability issues we need to skip it and work on it after
release.
2020-05-20 10:26:48 +03:00
Chris MacNaughton
bdd0bca953
Merge pull request #246 from ajkavanagh/cinder-ceph-additional-tests
...
Migrate 499 cinder-ceph test to zaza
2020-05-20 09:02:44 +02:00
Alex Kavanagh
ec40306f7b
Improve detection of removing and adding relation
2020-05-19 20:08:33 +01:00
David Ames
c06cb8d625
MySQL 8 Scale-in and Scale-out tests ( #275 )
...
* MySQL 8 Scale-in and Scale-out tests
Depends-On: https://github.com/openstack-charmers/zaza/pull/353
* Review requests
* Typo
2020-05-19 09:47:55 -05:00
Aurelien Lourot
0dad4aca14
Minor improvements to RmqTests.test_913_list_unconsumed_queues
2020-05-18 23:36:27 +03:00
Dmitrii Shcherbakov
dfc6235362
Add cleanup to the unit removal case
...
For some reason test cases are sometimes executed out of order and so
test_921_remove_unit is sometimes run before the pause_and_resume test
case which results in an error.
While the root cause for it must be found it would also be good to avoid
side-effects in individual test cases and return the environment back to
its original state.
There is no 'start' hook implementation for charm-rabbitmq-server,
however, changes that close to the 20.05 release are discouraged so this
change uses an upgrade-charm event simulation to re-trigger the addition
of a unit (which was previously removed) to the cluster.
NOTE: after an execution of hooks/upgrade-charm finishes, the charm will
stay in the waiting state with the following status until the next
update-status event: 'Unit has peers, but RabbitMQ not clustered'
Related-Bug: #1730709
2020-05-18 23:36:27 +03:00
Liam Young
0ec2e43041
Fix ceph rbd mirror test
...
I recently broke the ceph rbd mirror test due to get_images_by_name
returning a list of images not a single image.
2020-05-18 18:25:09 +00:00
Liam Young
7834eda00e
Switch to cirros image for ceph mirror tests
...
The image used for the tests is just treated as a blob, no guests
are booted using it so to speed up the tests when using slow
storage by switching to using cirros image. The cirros image is ~20
times smaller than the bionic one.
2020-05-18 12:48:05 +00:00
Alex Kavanagh
5e5c8e488b
Add retries to teardown as it seems to be sensitive to network glitches.
2020-05-18 12:52:19 +01:00
Alex Kavanagh
215e5accef
Add retries to instance pinging
...
It's a bit too optimistic to expect an instance to respond to the first
ping. This patch gives the instance up to 8 retries with increasingly
lengthened waits to respond to a ping. This should help with Juju
storage backed nova instances.
Fixes : #265
2020-05-17 21:19:14 +01:00
Liam Young
1a0210b0a5
Remove node1
...
Due to LP #1874719 delete node1 as its not used.
2020-05-16 08:29:12 +00:00
Liam Young
52ee23927c
Make masakari wait longer for hosts to online
...
A recent functional test of masakari monitors failed due to a
tenacity retry missing the host coming online by 10s, so wait
longer. FWIW that this affects the post-test cleanup rather than
the test itself.
*1 https://openstack-ci-reports.ubuntu.com/artifacts/test_charm_pipeline_func_full/openstack/charm-masakari-monitors/726808/1/5655/consoleText.test_charm_func_full_8812.txt
`
2020-05-15 13:54:01 +00:00
Alex Kavanagh
5d05eb70cc
Ensure model starts executing before the wait
...
There was a race before a block_until_all_units_idle() where it
could blast through the check before it started removing the relation.
This ensures that it waits until something happens and then waits for it
to finish.
2020-05-14 19:39:50 +01:00
Marco Silva
a56fa1fd74
Add mysqldump test to MySqlCommonTests
...
Copy function from MySQLInnoDBClusterTests to test mysqldump
as standard on mysql applications.
DocImpact
Closes-Bug: #0000000
Implements: MySQL dump test
2020-05-14 09:34:44 +01:00
Frode Nordahl
78e992ac87
Merge pull request #260 from ajkavanagh/multi-lts-image-for-octavia
...
The octavia tests require multiple LTS images
2020-05-14 06:24:24 +02:00
Alex Kavanagh
4c2f723332
Fix missing brace
2020-05-13 14:34:13 +01:00
Alex Kavanagh
8e826f6f8b
Add debug to 105 test
2020-05-13 14:30:19 +01:00
Alex Kavanagh
a7df335cc8
Fix missing comma
2020-05-13 14:30:19 +01:00
Alex Kavanagh
935af95dd2
Add in missing 500 test from amulet test
...
This is the missing 500 test from the previous amulet tests that were
missed on the first pass.
2020-05-13 14:30:19 +01:00
Alex Kavanagh
3de6251316
Fix broken code and collect errors on ceph commands
2020-05-13 14:30:19 +01:00
Alex Kavanagh
294fd83e49
Fix up cinder tests to work when cinder isn't the application under test
...
The cinder tests were written with the assumption that cinder was the
charm that was under test. This modifies the test so that the cinder
tests work in a model with cinder where cinder isn't the application
that is being explicitly tested.
2020-05-13 14:30:19 +01:00
Alex Kavanagh
c6f0472681
Fix the broken bits in the tests copied from amulet
2020-05-13 14:30:19 +01:00
Alex Kavanagh
fd3f0bb093
Migrate 499 cinder-ceph test to zaza
...
This takes the 499 test from basic_deployment.py (Amulet) test and
ports it over to zaza.
2020-05-13 14:30:19 +01:00
Chris MacNaughton
19fd66a178
Fix new lint errors
2020-05-12 14:22:16 +02:00
Chris MacNaughton
695fbd85da
Ensure the secondary-first function takes the same arguments
2020-05-12 14:12:35 +02:00
Liam Young
185b7907d7
Merge pull request #227 from ChrisMacNaughton/bug/non-leader-upgrade-fail
...
Ensure that upgrading non-leader first can handle pause arguments
2020-05-12 09:14:18 +01:00
Frode Nordahl
a025c21ba6
Merge pull request #267 from AurelienLourot/master
...
Fix "'NeutronGatewayTest' object has no attribute 'neutron_client'"
2020-05-12 09:18:59 +02:00
Alex Kavanagh
d1fd2ae610
Merge pull request #263 from openstack-charmers/ovn-charm
...
Add OVN charm tests
2020-05-11 16:46:45 +01:00
Aurelien Lourot
9ae0d464b3
Fix "'NeutronGatewayTest' object has no attribute 'neutron_client'"
...
in test_401_enable_qos
2020-05-11 16:52:39 +02:00
Alex Kavanagh
eb41fe499c
Merge pull request #266 from ChrisMacNaughton/bug/series-upgrade/prepare-leader-first
...
Handle leader prepare step before non-leaders
2020-05-11 09:24:31 +01:00
Chris MacNaughton
a8a25b2134
Handle leader prepare step before non-leaders
2020-05-11 10:03:36 +02:00
David Ames
37297aff8f
Reduce the number of permutations of msg checks
...
Reduce the number of checks by 30%.
Remove duplicate test 410.
Use logging.info to get output.
2020-05-10 00:51:54 +00:00
Frode Nordahl
8edff98f94
Add OVN charm tests
2020-05-08 12:34:21 +02:00
David Ames
7783e38f66
Handle race in policyd tests
2020-05-07 22:17:31 +00:00
Alex Kavanagh
c8ea324ccb
Add focal template to image list
2020-05-07 20:09:02 +01:00
Aurelien Lourot
59ec82f542
Make ssh_test() more robust
2020-05-07 14:25:47 +02:00
Alex Kavanagh
c04e632ae0
The octavia tests require multiple LTS images
...
This patch ensures that bionic and focal images are available for
the LTS octavia tests.
2020-05-06 14:59:32 +01:00
Aurelien Lourot
bef8979e64
Merge remote-tracking branch 'origin/master'
2020-05-06 11:26:07 +02:00
Alex Kavanagh
08177ef36d
Merge pull request #257 from dshcherb/2020-05-04-fix-issue-256
...
Pass arguments BaseCharmTest.setUpClass
2020-05-05 17:18:26 +01:00
Aurelien Lourot
c35b4e0fcf
Disable test_101_neutron_sriov_config on Trusty
...
https://bugs.launchpad.net/charm-neutron-openvswitch/+bug/1876888
2020-05-05 16:22:52 +02:00
James Page
db0fff6480
triliovault: Check restore completes
...
Ensure that the oneclick restore process completes as part
of the snapshot test case.
Drop use of api_version in get_domain_id utility.
2020-05-05 12:56:03 +01:00
Dmitrii Shcherbakov
4ab3681a8c
Merge pull request #252 from javacruft/triliovault-testing
...
Add zaza tests for TrilioVault
2020-05-05 13:58:41 +03:00
Dmitrii Shcherbakov
740bc2060f
Pass arguments BaseCharmTest.setUpClass
...
Not doing so triggers an incorrect behavior leading to functional test
failures as the application name is not set correctly.
https://github.com/openstack-charmers/zaza-openstack-tests/issues/256
https://review.opendev.org/#/c/712980/1
2020-05-04 20:45:55 +03:00
James Page
eb0cba9efc
Add zaza tests for TrilioVault
...
Add setup and tests for trilio-{data-mover,dm-api,wlm} charms.
Add attach_volume utility to attach cinder volumes to nova servers.
2020-05-04 14:46:48 +01:00