Commit Graph

521 Commits

Author SHA1 Message Date
Chris MacNaughton
dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00
David Ames
46079e650f Merge pull request #222 from ChrisMacNaughton/require-env-vars
Use jinja2's StrinctUndefined to make template variables mandatory
2019-04-22 10:29:49 -07: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
Chris MacNaughton
0587c3a699 Merge pull request #223 from gnuoy/feature/add-upgrade-charm
Add function to upgrade charm
2019-04-16 12:51:59 +02:00
Liam Young
2492dbfd99 Add function to upgrade charm 2019-04-16 10:41:02 +00:00
Liam Young
50decf65bd Merge pull request #221 from fnordahl/detect-unit-errors-while-waiting
Detect units in ``error`` state while awaiting idle model
2019-04-14 16:02:38 +01: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
52ac310495 Merge pull request #218 from openstack-charmers/issue/217
Fix list of release pairs
2019-04-08 12:33:51 +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
53768a9cee Merge pull request #213 from ChrisMacNaughton/stein
Add stein support
2019-04-05 15:13:42 +02:00
Chris MacNaughton
048dacee28 Add stein support
Closes #212
2019-04-05 15:03:59 +02:00
Frode Nordahl
35202f2c98 Merge pull request #211 from openstack-charmers/add-resync-pools
ceph/rbd_mirror: Add use of ``resync-pools`` action to test
2019-04-02 10:05:32 +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
Chris MacNaughton
648d9c16d0 Merge pull request #210 from openstack-charmers/travis-update-dist
travis: Switch to ``xenial`` dist
2019-03-29 13:11:19 +01:00
Frode Nordahl
514482b5ea travis: Switch to `xenial` dist
Update installation sequence to fit the Travis Xenial environment.

This should save us some time on binary deps as we no longer need
to install snapd and kernel packages mandated by spectre/meltdown
in the Travis ``trusty`` image.
2019-03-29 12:31:31 +01:00
Chris MacNaughton
edabe6ab00 Merge pull request #209 from openstack-charmers/fix-luminous
charm_tests/ceph/rbd_mirror: Workaround upstream Ceph Luminous bug
2019-03-29 10:29:13 +01:00
Frode Nordahl
089d284b3e travis: Enable debug logging for juju bootstrap
The functional tests are consistently timing out atm in the juju
bootstrap stage.  Enable debug log so we can se what is going on.
2019-03-29 09:53:27 +01: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
d93c0cd267 Merge pull request #207 from javacruft/increase-wait-timeouts
ceph rgw: increase retry attempts post replication
2019-03-28 19:26:34 +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
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