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
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
Chris MacNaughton
cf1ea4c71b
First pass at batched parallel series upgrade
2020-04-10 10:50:43 +02:00
Liam Young
cf2b0f21b9
Merge pull request #222 from openstack-charmers/issue/221
...
octavia: tear down resources created during LBaasV2 test
2020-04-08 07:34:41 +01:00
Frode Nordahl
f35da80f27
Unpin flake8, fix lint
...
Add Python 3.8 env in Travis CI test matrix.
At present the pinning of flake8 disallows running of lint on
Python 3.8 systems.
Update flake8 ignore-list to ignore W504 instead of W503, the PEP
guidance is that either is ok, but there must be local consistency.
There are more occurences of binary operator before line-break
than after in this repository, and we have also chosen to ignore
W504 in most of our other repositories.
2020-04-07 11:14:49 +02:00
Liam Young
c65cbceb19
Add support for fqdns to get_unit_hostnames
2020-04-01 13:22:50 +00:00
Alex Kavanagh
4fe9706a53
Merge pull request #212 from gnuoy/add-custom-assertions
...
Add custom assertions
2020-04-01 14:06:53 +01:00
Liam Young
be8889e581
Move new methods out of test class
...
The new methods assertActionRanOK & assertRemoteRunOK are useful in
setup as well as tests so it makes sense to move them out of the
test class.
2020-04-01 10:18:30 +00:00
Chris MacNaughton
42b0f5fcb1
Secondary first upgrades should also support the origin argument
...
Closes #210
2020-04-01 09:31:03 +02:00
Chris MacNaughton
d7f7134e58
tidy up some waiting
2020-03-26 14:34:14 +01:00
Chris MacNaughton
71b9d5a6fb
lint fixes
2020-03-25 15:26:08 +01:00
Chris MacNaughton
a1e5649d12
Refactor if-statement into upgrade config generator
2020-03-25 08:44:41 +01:00
Chris MacNaughton
540e0ea4fc
tidy up style things, add docstring
2020-03-25 08:44:41 +01:00
Chris MacNaughton
f73b4c1d6d
fix up unit tests and assumptions
2020-03-25 08:44:41 +01:00
Chris MacNaughton
d4ee838d4b
some refactoring and updates from review
2020-03-25 08:44:41 +01:00
Chris MacNaughton
0a94b97cf4
update for style bits
2020-03-25 08:44:41 +01:00
Chris MacNaughton
0b92a15da7
raise exceptions in the upgrade process
2020-03-25 08:44:41 +01:00
Chris MacNaughton
8450216f72
Create parallel (async) series upgrade
2020-03-25 08:44:41 +01:00
Chris MacNaughton
93fd631b1a
Split up and re-organize upgrade helpers
2020-03-25 08:44:41 +01:00
Frode Nordahl
1ece576981
radosgw: Pass local CA cert to client when relevant
2020-03-23 10:58:23 +01:00
Chris MacNaughton
7e9cc9998f
Merge pull request #190 from gnuoy/masakari-fixes
...
Fixes for masakari tests
2020-03-10 15:22:05 +01:00
Liam Young
f1168aa36d
Fixes for masakari tests
...
* Deal with hypervisors now using fqdn
* Skip instant restart tests until bug is resolved
2020-03-10 10:21:14 +00:00
Liam Young
4854de51b3
Merge pull request #186 from openstack-charmers/lxd_support
...
add lxd container support to get_machine_status
2020-03-06 08:53:11 +00:00
Andrew McLeod
3f1ec453da
add lxd container support to get_machine_status
2020-03-06 09:40:32 +01:00
Aurelien Lourot
0cee4c90bb
Fix typo
2020-03-05 12:12:08 +01:00