Commit Graph

184 Commits

Author SHA1 Message Date
Aurelien Lourot
7fc0aa8bd9 Remove some deprecation warnings 2020-07-03 15:38:44 +02: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
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
Chris MacNaughton
592622935c tidy up and add more debugability 2020-04-15 10:06:41 +02:00
Aurelien Lourot
83246a9305 Print stderr when failing to ping new instance 2020-04-14 14:50:31 +02:00
Chris MacNaughton
1538db58ff Ensure that upgrading non-leader first can handle pause arguments 2020-04-14 12:45:37 +02:00
Chris MacNaughton
6c70ee5171 The units in an application need to be idle before we try to series-upgrade them 2020-04-14 12:42:18 +02:00
Chris MacNaughton
27e5f7d8bc We must have async functions for the before/after callables 2020-04-10 16:51:41 +02:00
Chris MacNaughton
a7df42a9df According to the series upgrade doc, source should update early 2020-04-10 16:27:03 +02:00
Chris MacNaughton
74652f2523 Add unit test coverage for series upgrades
This also includes some tidying
2020-04-10 10:50:43 +02:00
Chris MacNaughton
9cd4b32aa3 Remove leftover development comments, useless function 2020-04-10 10:50:43 +02:00
Chris MacNaughton
392470e946 Cleanup based on feedback
This change removes some redundant checking at setup
time and splits the long parameter lists into one
argument per line lists
2020-04-10 10:50:43 +02:00
Chris MacNaughton
2a98274d67 Add a few more function hooks to the series upgrade process
By including pre and pos-application functions, charm
series upgrades can be handled in a more generic way,
even when they require running additional actions
before a unit is upgraded, or after the whole application
is upgraded.
2020-04-10 10:50:43 +02:00
Chris MacNaughton
186708e883 Change upgrade process to handle each machine fully
Updating each machine in a fully self-contained way makes
it easy to add per-machine and (possibly) per-application
post-upgrade function calls. This still performs the actual
series upgrades fully in parallel but will, for example,
start the do-release-upgrade on one unit while another is
still performing the initial dist-upgrade
2020-04-10 10:50:43 +02:00