Commit Graph

1296 Commits

Author SHA1 Message Date
Alex Kavanagh
d76105e4db Merge pull request #306 from gnuoy/fix-hacluster-tests
Fix hacluster tests
2020-06-09 09:11:27 +01:00
Liam Young
a6b2a9799d Fix hacluster tests
Tidy up hacluster tests. In the process this fixes the error:

```
UnboundLocalError: local variable 'primary_status' referenced before assignment
```

This was caused by libjuju now returning an empty dict rather than
None when listing a subordinates units.
2020-06-04 12:32:54 +00:00
Alex Kavanagh
7b6b4d52ed Merge pull request #304 from gnuoy/aodh-server-alarm-test
Port aodh server alarm test from mojo
2020-06-04 12:11:44 +01:00
Alex Kavanagh
4bd7dd9e9b Merge pull request #303 from gnuoy/expand-and-shrink-bind
Port designate-bind expand and shrink test
2020-06-03 19:12:31 +01:00
Liam Young
944335a39f Add dnspython dep and wait for add/remove units 2020-06-03 07:19:11 +00:00
Liam Young
3a6002b61f Port aodh server alarm test from mojo
Port over the aodh alarm test from mojo. Mojo source is here: *1

*1: https://github.com/openstack-charmers/openstack-mojo-specs/blob/master/helper/tests/validate_aodh.py
2020-05-30 16:56:25 +00:00
Liam Young
1beef2ddb2 Port designate-bind expand and shrink test
Port designate-bind expand and shrink test (and helpers) from
mojo to zaza. The mojo designate-bind test is here *1

*1 https://github.com/openstack-charmers/openstack-mojo-specs/blob/master/helper/tests/expand_and_shrink_bind.py
2020-05-30 16:44:34 +00:00
coreycb
b54dedef62 Merge pull request #301 from openstack-charmers/issue/298
Fail early when no units found for external port creation
2020-05-28 08:10:44 -04:00
Frode Nordahl
8c747390d3 Fail early when no units found for external port creation
Fixes #298
2020-05-28 13:24:14 +02:00
Alex Kavanagh
6494047be8 Merge pull request #300 from gnuoy/refactor-designate-tests
Refactor Designate tests so API tests can be called
2020-05-28 12:03:52 +01:00
Liam Young
9eefa08ce4 Refactor Designate tests so API tests can be called
Refactor Designate tests so that the api tests can be called
without running pause/resume tests. This is useful in the mojo
replacement functional tests.
2020-05-28 10:57:29 +00:00
Frode Nordahl
0de2faf49c Merge pull request #299 from coreycb/master
Fix get_machines_for_applications for subordinates
2020-05-28 12:47:58 +02:00
Corey Bryant
24306b8880 Fix get_machines_for_applications for subordinates
In the case where we have a subordinate charm, libjuju juju status
on the unit returns an empty dictionary, therefore the existing None
check would fail and the subordinate status would never get set.
The result being subordinates not included in the returned Iterator.
2020-05-28 10:36:37 +00:00
Chris MacNaughton
4865af1295 Merge pull request #297 from gnuoy/get-ssl-ca-from-vault-conf
Retrieve ssl-ca from vault when using vault api
2020-05-28 12:08:21 +02:00
Chris MacNaughton
371e7e8e8b Merge pull request #295 from ajkavanagh/unpin-juju-lt-280
Unpin juju (libjuju) from < 2.8
2020-05-28 11:55:52 +02:00
Liam Young
2f6d6be3ef Update doc strings 2020-05-28 09:35:25 +00:00
Liam Young
362be92006 Retrieve ssl-ca from vault when using vault api
If the ssl-{key,chain,ca} charm config option have been set than
retrieve the ssl-ca from the vault charm and use it when making
called to the vault api.
2020-05-28 09:19:12 +00:00
Alex Kavanagh
d4ce7db15a Merge pull request #296 from gnuoy/add-ssl-gen
Add methods for creating pre-deploy certs
2020-05-27 11:58:40 +01:00
Liam Young
8434827f5c Add methods for creating pre-deploy certs 2020-05-27 10:31:14 +00:00
Alex Kavanagh
9f82ab92b6 Merge pull request #294 from gnuoy/enable-instance-test
Enable guest restart test on ussuri
2020-05-26 15:10:07 +01:00
Alex Kavanagh
924b95b47b Unpin juju (libjuju) from < 2.8
python-libjuju was broken at 2.8 and thus zaza and zaza-openstack-tests
needed to be pinned to < 2.8.  This patch releases that so that the
latest versions of libjuju are used in testing.  This may get pinned
again before the next release window.
2020-05-26 14:23:16 +01:00
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
Alex Kavanagh
c66f1ea62a Merge pull request #288 from dshcherb/2020-05-20-disable-rmq-remove-test
Skip test_921_remove_and_add_unit.
See https://github.com/openstack-charmers/zaza-openstack-tests/issues/290 for more details.
2020-05-20 10:13:22 +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
Alex Kavanagh
d922fc43df Merge pull request #283 from dshcherb/2020-05-18-730709-fix-ci
Add cleanup to the unit removal case
2020-05-19 09:03:27 +01: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
Alex Kavanagh
ac761f026a Merge pull request #281 from gnuoy/doh
Fix ceph rbd mirror test
2020-05-18 20:15:20 +01: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
Alex Kavanagh
08e42db7c3 Merge pull request #280 from gnuoy/switch-ceph-rbd-mirror-image
Switch to cirros image for ceph mirror tests
2020-05-18 13:55:24 +01: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
Liam Young
acda1413da Merge pull request #279 from ajkavanagh/tenacity-for-instance-ping
Add retries to instance pinging
2020-05-17 21:29:35 +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
Frode Nordahl
e24e4c0fd4 Merge pull request #276 from gnuoy/remove-node1
Remove node1
2020-05-16 10:33:35 +02:00
Liam Young
1a0210b0a5 Remove node1
Due to LP #1874719 delete node1 as its not used.
2020-05-16 08:29:12 +00:00
Frode Nordahl
1d8a5afe68 Merge pull request #274 from gnuoy/increase-masakari-host-online-wait
Make masakari wait longer for hosts to online
2020-05-15 16:04:54 +02: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