Commit Graph

381 Commits

Author SHA1 Message Date
Andrew McLeod 5ad18dfc2f fix context mgr 2019-09-26 14:19:37 +02:00
Andrew McLeod 1af831399a add context manager for netplan_file 2019-09-26 14:16:19 +02:00
Andrew McLeod 6f903b73a6 fix interface and mac address matching 2019-09-26 13:59:59 +02:00
Andrew McLeod 028602f365 change terminology from plumb 2019-09-26 13:47:19 +02:00
Andrew McLeod 48a410151e fix typo 2019-09-25 16:19:12 +02:00
Andrew McLeod 36e9e45f0b add dvr_mode to docstring 2019-09-25 16:17:08 +02:00
Andrew McLeod 889053a3df fix docstring 2019-09-25 16:14:37 +02:00
Andrew McLeod ab89054847 enable guest interface plumbing for bionic-queens and later 2019-09-25 16:08:20 +02:00
Andrew McLeod 19306d6600 WIP - add plumb_dataport_method 2019-09-24 16:25:53 +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
Chris MacNaughton cf3d00edd5 Remove test that is being migrated upstream to zaza
https://github.com/openstack-charmers/zaza/pull/238
2019-05-20 08:30:51 +02:00
David Ames 40e3148133 Fixes for SAML testing
Move SAML testing to zaza.openstack tests
Bug fixes
2019-05-17 22:13:47 +00:00
Liam Young 9721fe5d42 Fix restart_on_changed helper (#6)
The restart_on_changed helper was moved to use the config_change
context manager but the code that checks that the config file is
correctly reverted at the end of the test was accidently left within
the context.
2019-05-17 15:08:58 +02:00
Liam Young 6dad655b5d Avoid adding duplicate handler (#4)
If a logging handler has already been added don't add it again.
2019-05-14 15:31:55 +02:00
Liam Young 5c68401d96 Add swift tests (#2) 2019-05-13 13:36:48 +02:00
Liam Young 6b2c1d26eb Add function for getting keystone auth from relation 2019-05-13 09:06:40 +00:00
Chris MacNaughton 0c2f36fb4e modify base zaza poackage into zaza.openstack package 2019-05-08 13:38:33 +02:00
coreycb ebf9aa085e Merge pull request #230 from thedac/saml
Keystone SAML Mellon functional testing
2019-05-01 06:59:11 +02:00
Liam Young 278107e391 Merge pull request #229 from ChrisMacNaughton/bug/1826542
ensure we have a secret KV backend
2019-04-30 11:28:26 +02:00
Chris MacNaughton dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00
David Ames ac4f68e560 Merge branch 'master' into require-env-vars 2019-04-22 10:21:15 -07:00
Chris MacNaughton 4954e44c51 Use jinja2's StrinctUndefined to make template variables mandatory 2019-04-21 16:33:03 +02:00
Liam Young 2492dbfd99 Add function to upgrade charm 2019-04-16 10:41:02 +00:00
Frode Nordahl a0ed15a68c Detect units in `error` state while awaiting idle model
At present Zaza will wait until it hits a timeout if one of the
units enters a error state while it awaits a idle model.

Add check for errored units to ``block_until_all_units_idle()``
and ``wait_for_application_states()``

Fixes #100
2019-04-14 00:39:46 +02:00
Frode Nordahl 82de377586 Fix list of release pairs
Fixes #217
2019-04-08 12:22:09 +02:00
James Page 80803f8d1c stein: Add swift 2.21.0 (#216)
Add the latest swift release to the list of versions for stein.
2019-04-08 09:26:17 +01:00
Chris MacNaughton 048dacee28 Add stein support
Closes #212
2019-04-05 15:03:59 +02:00
Frode Nordahl f38da846da ceph/rbd_mirror: Encapsulate call to status action in try except
The call to status action in ``wait_for_mirror_state`` helper is
susceptible to Ceph bug LP: #1820976.

Encapsulate in try except clause to work around it.
2019-04-02 08:29:53 +02:00
Frode Nordahl ee06037050 Add missing `=` 2019-04-01 17:01:13 +02:00
Frode Nordahl b7807fc512 ceph/rbd_mirror: Optionally require presence of images in wait-helper
When you tell Ceph to resync mirrored RBD images it will in
practice remove and re-create the image.

At present the image state wait helper will happilly accept no
images in a pool as a positive outcome.

Add optional ``require_images_in`` parameter that allows the wait
helper to block even when no images are available in the pool (yet)
2019-04-01 16:44:41 +02:00
Frode Nordahl 22763491b3 ceph/rbd_mirror: Add use of `resync-pools` action to test 2019-04-01 12:26:02 +02:00
Frode Nordahl b03a97a14d charm_tests/ceph/rbd_mirror: Use sorted list of pool names
At present the test uses a dict which includes the internal
numeric ID each pool has.  This may be different on each side
depending on which order the pools were created in.

Use pool name in a sorted list for comparison instead.
2019-03-29 09:09:54 +01:00
Frode Nordahl 7b7dc7ec55 charm_tests/ceph/rbd_mirror: Workaround upstream Ceph Luminous bug
Fixes #208
2019-03-29 09:09:54 +01:00
Frode Nordahl 0e6de20e5c Merge branch 'master' into increase-wait-timeouts 2019-03-28 16:02:28 +01:00
Frode Nordahl 204d7c3c3e Add ceph rbd mirror (#195)
* utilities/ceph: Add model_name parameter to set model scope

* utilities/ceph: Add ``get_rbd_hash`` helper

* Add ``remove_application``

* ceph_rbd_mirror: Add tests
2019-03-28 14:56:17 +00:00
James Page 5efd021ced ceph rgw: increase retry attempts post replication
Sometimes the slave RGW takes a little time to re-sync periods
and data from the new master RGW after a promotion.

Increase the number of attempts to retrieve the data written
to the master RGW from the slave RGW units.
2019-03-28 14:50:18 +00:00
Liam Young d90da772d2 Expose resource_reaches_status' retry options (#206)
* Expose resource_reaches_status' retry options

resource_reaches_status is used in many places to monitor many
different kinds of OpenStack resource. It is reasonable to expect a
flavor to be created in a few seconds where as an image based instance
may take minutes to become active. With that in mind this change
exposes the retry options used by tenacity allowing the caller to
set reasonable expectations for the resource state change.

In addition the image based instance creation call is updated
to retry for longer as this has been timing out.

* Remove swap files
2019-03-27 13:02:47 +01:00
James Page a799d22cad Add support for Ceph RGW multisite testing (#205)
Adapt existing CephRGW test case to deal with multisite
deployment testing.

Validate services across both standard ceph-radosgw and
slave-ceph-radosgw applications if discovered.

Upload test data to source site, validate replication and
delete on target site.
2019-03-26 09:33:46 +00:00
Chris MacNaughton c4a57d10dd Latest charmhelpers audit update fixes keystone permissions 2019-03-22 08:30:05 +01:00
Liam Young e6522bb5a6 Switch masakari tests to use pacemaker-remote (#203)
Switch masakari tests to use pacemaker-remote. For this the method
of simulating a host failure has to change to sending the process a
sigterm as shuting down pacemaker-remote any other way is seen as an
orderly shutdown and does not trigger things like stonith.

Also add check to ensure all nodes appear to be online from a
crm pov before starting failover test.
2019-03-21 15:24:02 +01:00
Liam Young 63d892b428 Move crm query function
Move crm query function into a shared area to allow other tests
to reuse it.
2019-03-21 13:20:40 +00:00