Commit Graph

195 Commits

Author SHA1 Message Date
Liam Young a3433a1276 Add Ceph test CheckPoolTypes
Add a ceph test to check that the type of pools requested by
clients matches the pools that were created.
2020-08-10 12:32:49 +00:00
Alex Kavanagh 59d68e49a5 Ensure that the tests directory exists for the local cacert (#373)
A recent change to allow multiple zazas to run at the same time fixed
the cacert file into a local 'tests/' directory.  Unfortunately, that
doesn't exist for every environment where zaza runs (e.g. mojo) and so
this patch ensures that the path exists prior to trying to download into
it.
2020-07-23 15:07:21 +02:00
Liam Young 59b6c1bd35 Merge pull request #341 from openstack-charmers/lourot/keystone
Minor improvements to keystone tests
2020-07-16 13:26:09 +01:00
Andrew McLeod a670e274fa add image arch and properties specification 2020-07-15 16:56:06 +02:00
Liam Young e729c64956 Fixed existing codename errors spotted by coreycb 2020-07-14 12:53:07 +00:00
Liam Young 2d3eaa6e84 Fix typo 2020-07-14 12:42:29 +00:00
Liam Young e409b68639 Add Groovy Victoria support 2020-07-14 12:39:58 +00:00
Aurelien Lourot 0287664d92 Fix paramiko.ssh_exception.BadAuthenticationType (#355)
Fix paramiko.ssh_exception.BadAuthenticationType when SSHing to a new Ubuntu instance.

Note that paramiko still has a few issues around authentication:
https://github.com/paramiko/paramiko/pull/1106/files

This paramiko PR also shows that password='' isn't the same as
password=None
2020-07-09 16:35:00 +02:00
Liam Young 9b706b8eaa Remove swap files 2020-07-07 12:24:32 +00:00
Liam Young 76fdb61e0f Fix up unit tests 2020-07-07 12:18:01 +00:00
Liam Young a829b372e0 Use model tmpdor for key storage
Use the model specific tmp dir to store the test ssh private key.
This avoids the key being overwritten in CMR tests.

Depends-On: https://github.com/openstack-charmers/zaza/pull/371
2020-07-07 09:56:25 +00:00
Frode Nordahl 520830905b Increase wait time for cloud_init_complete
We often see test runs being killed prematurely due to slow to
complete cloud-init step on a loaded CI cloud.

Related issue #311
2020-07-02 13:03:42 +02:00
Aurelien Lourot 670292c683 Remove more deprecation warnings 2020-07-02 12:11:23 +02:00
Aurelien Lourot defa4c542c Merge pull request #278 from ajkavanagh/fix-auth-domain
Fix broken dictionary assignment for domain
2020-07-01 16:16:43 +02:00
Liam Young 58182b86b8 Deprecate zaza.openstack.utilities.juju (#340)
This is the 3rd change in the effort to deprecate
zaza.openstack.utilities.juju in favour of zaza.utilities.juju.
All functions now just wrap their equivalents in
zaza.utilities.juju and a decorator has been added which logs a
warning if the function is used.
2020-07-01 14:38:19 +02:00
Frode Nordahl 537473ad3a Store local overcloud CACERT copy in relative path
At present the overcloud CACERT is copied to /tmp and as such it
is not possbile to run multiple tests at once without them
stepping on each other.

Store the copy in a path relative to where the test is executed,
in line with how the SSH keys are stored etc.

Fixes #331
2020-06-19 09:50:28 +02:00
Frode Nordahl 95eb158e7e Support undercloud running TLS (#330)
Consume the `OS_CACERT` environment variable when setting up
undercloud auth.

Fixes #329
2020-06-19 08:28:18 +02:00
Corey Bryant de893b66b8 Drop OS_ prefix from OS_TEST_HTTP_PROXY
As part of this change also switch to using deployment_env.
2020-06-12 02:35:35 +00:00
Aurelien Lourot 5a94e4a52d Merge pull request #316 from gnuoy/charm-upgrade
Add test to perform charm upgrade.
2020-06-11 15:32:30 +02:00
Liam Young 8336b75c40 Add test to perform charm upgrade.
Add test to perform charm upgrade and a few small tweaks to the
upgrade utils.
2020-06-11 10:33:39 +00:00
David Ames 3f008fc42d Merge pull request #302 from coreycb/add-tempest-support-corey
Add tempest support
2020-06-10 08:33:18 -07:00
Corey Bryant 5401be3a97 Fix variable name 2020-06-05 20:04:51 +00:00
Corey Bryant 7d0dfadc80 Fix incorrect reference to model 2020-06-05 20:02:45 +00:00
Corey Bryant 46d9887b45 Move get_application_ip to zaza/openstack/utilities/juju.py 2020-06-05 14:35:29 +00:00
Frode Nordahl 8c747390d3 Fail early when no units found for external port creation
Fixes #298
2020-05-28 13:24:14 +02: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 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 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
Alex Kavanagh 21655a3741 Fix broken dictionary assignment for domain 2020-05-16 18:52:35 +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 3de6251316 Fix broken code and collect errors on ceph commands 2020-05-13 14:30:19 +01:00
Chris MacNaughton 19fd66a178 Fix new lint errors 2020-05-12 14:22:16 +02:00
Chris MacNaughton 695fbd85da Ensure the secondary-first function takes the same arguments 2020-05-12 14:12:35 +02:00
Liam Young 185b7907d7 Merge pull request #227 from ChrisMacNaughton/bug/non-leader-upgrade-fail
Ensure that upgrading non-leader first can handle pause arguments
2020-05-12 09:14:18 +01:00
Alex Kavanagh d1fd2ae610 Merge pull request #263 from openstack-charmers/ovn-charm
Add OVN charm tests
2020-05-11 16:46:45 +01:00
Chris MacNaughton a8a25b2134 Handle leader prepare step before non-leaders 2020-05-11 10:03:36 +02:00
Frode Nordahl 8edff98f94 Add OVN charm tests 2020-05-08 12:34:21 +02:00
Alex Kavanagh c8ea324ccb Add focal template to image list 2020-05-07 20:09:02 +01:00
Aurelien Lourot 59ec82f542 Make ssh_test() more robust 2020-05-07 14:25:47 +02:00
James Page db0fff6480 triliovault: Check restore completes
Ensure that the oneclick restore process completes as part
of the snapshot test case.

Drop use of api_version in get_domain_id utility.
2020-05-05 12:56:03 +01:00
James Page eb0cba9efc Add zaza tests for TrilioVault
Add setup and tests for trilio-{data-mover,dm-api,wlm} charms.

Add attach_volume utility to attach cinder volumes to nova servers.
2020-05-04 14:46:48 +01:00
Chris MacNaughton 9cec2efabe Actually pass to and from series into upgrade 2020-04-20 11:47:12 +02:00
Chris MacNaughton 28e1ce2d3f Add check to include subordinates for idleness
Depends-On: https://github.com/openstack-charmers/zaza/pull/346
2020-04-17 16:50:57 +02:00
Chris MacNaughton f49259e426 Set some apt config to accept package defaults
Because the OpenStack charms re-render their config
whenever things are incorrect, we can accept any new
package defaults as a part of the upgrade and
resolve incorrect config after the upgrade
2020-04-17 13:45:47 +02:00
Aurelien Lourot 8e9ecc53e8 Openstack -> OpenStack 2020-04-16 18:59:07 +02:00
Liam Young 3245a6646f Merge pull request #224 from ChrisMacNaughton/feature/parallel-series-upgrade-refactor
Series upgrade can be done in massively parallel batches
2020-04-16 12:31:10 +01:00
Chris MacNaughton de028d7eb2 fix copy-pasta error 2020-04-16 11:58:54 +02:00
Chris MacNaughton 2bc2234cad Update to migrate bits out to Zaza 2020-04-16 11:53:35 +02:00
Chris MacNaughton fa4587f366 Ensure that origin is set only after the first machine is rebooting 2020-04-15 16:38:42 +02:00