Commit Graph

494 Commits

Author SHA1 Message Date
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
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
Pete Vander Giessen 4c0cc86b34 Merge pull request #204 from ChrisMacNaughton/keystone-permissions
Latest charmhelpers audit update fixes keystone permissions
2019-03-22 10:09:59 -04: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
Chris MacNaughton 0a27a7e4fb Merge pull request #202 from gnuoy/generalise-pacemaker-remote
Move crm query function
2019-03-21 14:44:55 +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
Liam Young e499c157c1 Add basic tests for pacemker-remote. (#201)
Add a basic check to ensure all nodes, including remotes, in
hacluster are online.
2019-03-20 07:08:58 +01:00
Chris MacNaughton 6284672668 We should pass token hashing check (#200) 2019-03-19 16:46:36 +01:00
Chris MacNaughton 41952b1f74 Add ceph-osd test (#193) 2019-03-15 15:21:25 +01:00
Frode Nordahl 7f09c33b44 Merge pull request #199 from thedac/auto-vault
Enable TLS Certificates Testing
2019-03-14 20:51:01 +01:00
David Ames c6d1d99f7b Pin PyYAML to match libjuju 2019-03-14 12:11:07 -07:00
David Ames 02180fb178 Unit tests 2019-03-14 08:55:26 -07:00
David Ames 5e51c93401 Reorganize 2019-03-14 14:28:46 +00:00
David Ames 1d256a94af lint fixes 2019-03-14 14:28:46 +00:00
David Ames 25bdb0ef44 Enable all keystone tests for HA 2019-03-14 14:28:46 +00:00
David Ames cb3ef6ef13 Move tls relation check 2019-03-14 14:28:46 +00:00
David Ames a4011def70 Don't use unittests 2019-03-14 14:28:46 +00:00
David Ames 099f22ab13 Use separate tmp dirs for each unit
When running the file ready function each unit would download into the
same tmp directory. For files with restrictive permissions this would
lead to a permission denied and false negative on the second unit. i.e.
file is 444 and the subsequent scp fails due to the inability to
overwrite the first file.

Use a separate tmp dir for each unit to avoid this problem.
2019-03-14 14:28:46 +00:00
David Ames fe61149915 Use sane certificate lifetimes 2019-03-14 14:28:46 +00:00
David Ames 6877038f4c lint fixes 2019-03-14 14:28:46 +00:00
David Ames 3280b0653a Check for the vault certificates relation for auth
Centralize the check if the cerfiticates relation to vault exists. If
it does, update authentication information to include the CA
certificate and https as the protocol.
2019-03-14 14:28:46 +00:00
David Ames c5512defa3 Allow keystone auth tests to run from subordinate
Allow a subordinate charm to keystone to run the keystone auth tests.
2019-03-14 14:28:46 +00:00
David Ames 2dce38f2f5 Auto initialize target for setup 2019-03-14 14:28:46 +00:00
Chris MacNaughton 5a5fa1b681 Merge pull request #198 from ChrisMacNaughton/bug/1819134
Validate Keystone sets check-max-request-body-size
2019-03-12 09:08:22 +01:00
Chris MacNaughton 80fb835bbd Validate Keystone sets check-max-request-body-size
Related-Bug: #1819134
2019-03-08 11:04:06 +01:00
David Ames 593f04ce4a Merge pull request #197 from gnuoy/feature/allow-metadata-to-be-set-on-guest-create
Support setting metadata when creating guests
2019-03-07 10:55:08 -08:00
Liam Young 34ef72b244 Support setting metadata when creating guests 2019-03-07 18:11:03 +00:00
Liam Young 5708cf529b Merge pull request #196 from gnuoy/feature/add-masakari-instance-monitor-test
Enable masakari instance monitor tests
2019-03-07 16:53:34 +00:00
Liam Young ac51ffdb7d Fix call to simulate_guest_crash 2019-03-07 16:34:18 +00:00
Liam Young 5339ea9217 Add rtype info to docstrings 2019-03-07 16:31:35 +00:00
Liam Young e9c7690af4 Enable masakari instance monitor tests
Add helpers and a test to test a guest dying and being resurrected
by masakari instance monitor.
2019-03-07 16:03:42 +00:00
Chris MacNaughton ac52b0c14b Merge pull request #194 from gnuoy/feature/add-masakari-test
Add masakari tests
2019-03-06 11:59:46 +01:00
Liam Young d7bd1df421 Add masakari tests 2019-03-06 10:41:30 +00:00
Liam Young 8b08f71a22 Merge pull request #187 from openstack-charmers/keystone-security-audit
Keystone security audit
2019-03-06 09:12:38 +00:00
Chris MacNaughton 4c1f40a6eb Merge branch 'master' into keystone-security-audit 2019-03-06 09:49:16 +01:00
Liam Young 712183c334 Merge pull request #192 from gnuoy/feature/add-guest-migration-support
Misc methods to support vm migration tests
2019-03-06 08:42:44 +00:00
Chris MacNaughton 401d99d14f Add comment describing upcoming fixes to failures 2019-03-06 08:25:56 +01:00
Liam Young b50df27816 Fix typo in log message 2019-03-05 19:34:54 +00:00
Liam Young 3118f122b4 Misc methods to support vm migration tests
Misc methods to support vm migration tests.
2019-03-05 19:30:57 +00:00
Chris MacNaughton cbefa6a5ac Merge branch 'master' into keystone-security-audit 2019-03-05 15:58:04 +01:00
Liam Young 933cb5518d Merge pull request #191 from gnuoy/bug/fix-missing-masakari-init
Add missing __init__.py from zaza.charm_tests.masakari
2019-03-05 14:24:12 +00:00
Liam Young 9908019fe0 Add missing __init__.py from zaza.charm_tests.masakari 2019-03-05 14:06:47 +00:00
Chris MacNaughton d0e154f37b Merge branch 'master' into keystone-security-audit 2019-03-05 14:27:21 +01:00
Liam Young da6b7f4099 Merge pull request #190 from gnuoy/feature/maskari-support
Add masakari test support
2019-03-05 13:26:21 +00:00
Chris MacNaughton 309427e146 Merge branch 'master' into keystone-security-audit 2019-03-05 14:22:04 +01:00
Liam Young 3efdbe4995 Add masakari test support
Add support for testing masakari.
2019-03-05 12:55:49 +00:00
Frode Nordahl d10ef061a9 Merge pull request #189 from gnuoy/feature/make-guest-boot-more-configurable
Feature/make guest boot more configurable
2019-03-04 17:30:27 +01:00
Liam Young cd93b2f374 Fix typos 2019-03-04 16:09:56 +00:00