Commit Graph

59 Commits

Author SHA1 Message Date
Alex Kavanagh
f06b957081 Fix issue that it's a unit rather than app
This matches on an unit, rather than an app, which  was the original
intention.
2019-08-05 09:31:05 +01:00
Alex Kavanagh
14f0f53e49 Add a subordinate blacklist for pausing services
During the series upgrade tests, zaza pauses subordinate services.
However, the cinder-ceph charm has no pause/resume action, and so the
test fails.  This PR adds a blacklist that ensures that the cinder-ceph
subordinate is not paused during series upgrade.
2019-08-04 15:40:38 +01:00
Liam Young
e6bf791d4e Merge pull request #39 from thedac/wait-on-ceilometer
Ceilometer is in a blocked state until action run
2019-08-01 18:23:45 +01:00
David Ames
1de731a70f Ceilometer is in a blocked state until action run
For a full stack deployment ceilometer will be in a blocked state waiting
on the ceilometer-action run.

Add this to the workload exceptions dict.
2019-08-01 10:18:59 -07:00
Liam Young
0f9fc9c49b Only auto-resolve update-status hooks
If a unit is rebooted while executing a hook Juju will mark it as
errored when it comes back. To work around this in tests, units in
an error state are resolved on reboot. However, this could mask a
genuine error. So, to minimise the risk only resolve units that
went into an error state when running update-status as the system
was in a stable state prior to reboot so that should have been the
only hook running.

Charm going into an error state on reboot applies equally to
subordinates so use the same logic for hacluster.

block_until_all_units_idle can return when a subordinate hook is
still queued so check for update-status errors when manually
queuing update-status run via action.
2019-07-30 14:23:31 +00:00
Chris MacNaughton
20402e4f30 Merge pull request #36 from gnuoy/pxc-reboot-error-state
Resolve hook errors after pxc reboot
2019-07-25 09:35:52 -05:00
Liam Young
7c0ee7389f Resolve hook errors after pxc reboot 2019-07-25 13:58:29 +00:00
Frode Nordahl
08530697a9 Merge pull request #35 from gnuoy/improve-masakari-pid-check
Fix small window when qemu pid has not yet appeared
2019-07-22 03:32:15 -07:00
Liam Young
fafa0f7a8e Fix small window when qemu pid has not yet appeared 2019-07-22 10:20:26 +00:00
Liam Young
025e1f4830 Ensure nova-compute is restarted when certs change
This is a temporary fix to work around a bug in nova-compute.
The bug causes nova-compute to cache the placement api endpoint
which causes placement api calls to fail when the endpoint switches
from http to https
2019-07-22 08:09:54 +00:00
Liam Young
171ecb411e Fix bug introduced by zaza reorg 2019-07-22 07:27:41 +00:00
Frode Nordahl
bf23d80a1b octavia: Add setup and test code for DVR 2019-07-19 13:19:23 +02:00
Liam Young
bf2c7bba48 Merge pull request #30 from thedac/percona-zaza-tests
Zaza tests for percona-cluster
2019-07-18 12:35:24 +01:00
David Ames
81604c399b Review requests for Liam 2019-07-17 11:07:52 -07:00
David Ames
05517b566e Review requests for Alex 2019-07-17 08:50:07 -07:00
Frode Nordahl
cbcbb90922 octavia: Fix gathering of payload ips
The existing code lead to intermittent failures as there are a few
Neutron ports tagged with ``device:owner`` ``compute:nova`` that
has nothing to do with our payload instances.

Get IP information by asking Nova to list instances instead.
2019-07-16 11:57:34 +02:00
David Ames
138bd11207 Zaza tests for percona-cluster
Port over amulet tests to zaza for percona-cluster.
Add testing of new feature actions for cold start tests: bootstrap-pxc
and notify-bootstrapped.
2019-07-15 07:51:54 -07:00
Liam Young
cb6df2f689 Allow test to override application name
Allow tests to override the default application name as it may not
match what is in the tests.yaml, particularly in the case of CMR
tests.
2019-07-03 06:49:54 +01:00
Frode Nordahl
00eb43eaf1 Merge pull request #24 from lolwww/master
Add cinder-backup-swift functional tests
2019-06-30 10:12:03 +02:00
lolwww
824a943f42 Add wait for status in cinder-backup-swift test 2019-06-28 21:40:23 +03:00
lolwww
6678a4e5bc Fix indents for pep8 2019-06-28 00:02:52 +03:00
lolwww
514d113365 Add check for volume backup_driver, remove unneeded code 2019-06-27 23:43:17 +03:00
Frode Nordahl
b6eadf243b Fix lint
Also re-enable unit tests for the resident utilities etc.
2019-06-27 11:33:52 +02:00
David Ames
bf93335017 Merge pull request #17 from openstack-charmers/feature/neutron-api
Add new Neutron API Tests
2019-06-26 10:15:12 -07:00
lolwww
6dcc83af87 Fix retry for delete_volume method 2019-06-26 13:26:33 +03:00
Chris MacNaughton
83e4ca7247 Ensure we use pgrep >= bionic-stein 2019-06-26 10:24:07 +02:00
lolwww
6180153bbe Adding delete_volume methods to openstack utilities 2019-06-26 01:03:58 +03:00
lolwww
4f234eb0aa Add cinder-backup-swift tests 2019-06-25 14:15:23 +03:00
Chris MacNaughton
cf9b8f9d0a update for some style points in review 2019-06-21 14:54:38 +02:00
Frode Nordahl
7140e4e064 Add payload test
Create listener, pool, healthmonitor and members.

Check that we can get payload through the load balancer.
2019-06-21 14:41:40 +02:00
Frode Nordahl
e395d1baf2 Add setup function for payload test instance
The instance will listen on TCP port 80 and serve up a Apache
welcome page.  This can be put behind a load balancer to validate
operation.
2019-06-21 14:41:27 +02:00
Frode Nordahl
eafa0036f7 Allow passing custom security group rules 2019-06-21 14:41:16 +02:00
Frode Nordahl
b036e5d487 Allow passing userdata when launching instance (#22)
With help from ``cloud-init`` this allows a test author to tailor
guests for use in payload testing.
2019-06-21 09:02:03 +02:00
Chris MacNaughton
39fda633b0 add new neutron netwokring test 2019-06-20 15:53:45 +02:00
Frode Nordahl
a73cede82a Fix erroneous use of generator return 2019-06-20 12:35:06 +02:00
Frode Nordahl
cb68bdb490 Add missing docstring, use new raise_on_failure param
The Zaza run_action functions ought to have a raise exception
option, openstack-charmers/zaza#251
2019-06-20 07:59:17 +02:00
Frode Nordahl
9104c82b91 octavia/diskimage-retrofit: Add charm setup and tests
Setup can be used standalone by other charms consuming the
``octavia-diskimage-retrofit`` charm for their testing purposes.

Tests the charms actions.

Full end to end test will be done by consuming this charm in the
``octavia`` charm tests.
2019-06-19 15:28:32 +02:00
Chris MacNaughton
704869d977 Add new Neutron API Tests 2019-06-18 09:18:18 +02:00
Liam Young
11b55d5b4c Support initializing vault with no clients
Currently when vault auto_inititialize [sic] is called a validation
step is run at the end to check that clients connected to vault
have the correct setup. However in sometimes there are no clients
to run validation with (as with cross model relation testing). To
facilitate this expose a new method 'auto_initialize_no_validation'
which skip the client validation.

Also correct the spelling of auto_inititialize but add a partial
to support tests that are already using the old spelling.
2019-06-11 15:27:03 +00:00
Chris MacNaughton
045c50637b Add a new SSH function
It is likely that there are other commands that we
would like to run in our tests, so this is a new SSH
command runner that the existing SSH check has been
updated to use.
2019-06-06 13:46:06 +02:00
Liam Young
eec43340eb Extend Nova compute tests. (#14)
Extend the nova compute tests to cover some that were missed from
the amulet tests.
2019-06-05 10:32:02 +02:00
coreycb
1bbe859a60 Merge pull request #5 from cloud-padawan/ceph-proxy-tests
added ceph-proxy tests
2019-05-30 12:19:59 -04:00
Ramon Grullon
0c32e1b0d9 added ceph-proxy tests 2019-05-30 14:44:16 +00:00
Liam Young
ce9db8434b Extend cinder testing (#13)
* Extend cinder testing

* Run sec checklist on all units of application
2019-05-23 14:48:39 +02:00
Liam Young
748d1ba6e1 Remove erroneous print message (#12) 2019-05-23 12:01:41 +02:00
Liam Young
648ac9262b Expose resource_removeds retry options (#11)
resource_removed is used in many places to monitor removal of
different kinds of OpenStack resource. It is reasonable to expect a
flavor to be removed in a few seconds where as an image based instance
may take minutes to be removed. With that in mind this change
exposes the retry options used by tenacity allowing the caller to
set reasonable expectations for the resource removal.
2019-05-23 11:16:03 +02:00
David Ames
dc3ca2edef Bug fix for HA SAML tests 2019-05-21 20:36:27 +00:00
coreycb
d91d4c5549 Merge pull request #7 from thedac/saml
Fixes for SAML testing
2019-05-20 11:23:25 -04:00
David Ames
9c64258650 Merge pull request #9 from gnuoy/feature/cinder
Add cinder tests
2019-05-20 07:53:34 -07:00
Liam Young
1646073f02 Add cinder tests 2019-05-20 11:46:56 +00:00