Commit Graph

144 Commits

Author SHA1 Message Date
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
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
Frode Nordahl
a3f6135908 Actually add bionic/ussuri release combination 2020-02-18 12:03:56 +01:00
Frode Nordahl
6aa252ab64 Enable testing of Bionic/Ussuri and Focal 2020-02-18 10:21:31 +01:00
Adam Dyess
fd12751b01 Merge branch 'master' of github.com:openstack-charmers/zaza-openstack-tests into bug/1828424 2020-02-06 16:23:26 -06:00
Frode Nordahl
1398583e07 ovn: Update bridge configuration code
After power user feedback we want to change how interfaces are
attached to bridges on the OVN charms.

Ref: openstack-charmers/charm-layer-ovn#6
2020-02-05 13:20:55 +01:00
Adam Dyess
d5ee2106d4 port designate amulet tests to zaza 2020-02-04 16:14:35 -06:00
Adam Dyess
b88bccd526 Successful tests 2020-02-04 14:04:42 -06:00
Adam Dyess
9d2369f576 designate-bind zaza tests 2020-02-04 12:58:55 -06:00
Liam Young
51c2ec89b0 Fix spelling 2020-02-04 13:36:44 +00:00
Liam Young
ee21886a8c Fix order in UPGRADE_SERVICES 2020-02-04 13:33:28 +00:00
Alex Kavanagh
cc5adbcfed Merge pull request #167 from gnuoy/support-mojo-unseal
Support mojo unseal
2020-02-04 12:52:53 +00:00
Liam Young
5fdde89be0 Tidyup docstring and method name 2020-02-04 12:48:00 +00:00
Alex Kavanagh
7538791b52 Merge pull request #145 from gnuoy/add-openstack-upgrade-lib
Add functions for performing OpenStack upgrades
2020-02-04 11:42:54 +00:00
Liam Young
5927878a03 Tidyup mojo cert unseal 2020-02-04 10:10:50 +00:00
David Ames
b5e250513b Fix for NDR testing race condition
Previous attempts to fix LP Bug#1784083 added a workaround (commit
820ed808) which is being removed here.

The root cause seems to be upstream in the dragent. It may never have
been envisioned to run the agent by itself the way the charm does.

So that even if neutron-api completes its amqp relation first,
neutron-dynamic-routing can still see
oslo_messaging.exceptions.MessagingTimeout errors. Some operation
must occur against neutron before dragent is truly ready. i.e. some post
deploy openstack command. So it is outside the purview of the charm.

This change adds a service restart late.

Partial-Bug: #1841459
2020-01-21 10:07:01 -08:00
Liam Young
2c9e9739d6 Fix name of swift storage-region option 2019-12-17 11:57:23 +00:00
Liam Young
4af37d9556 Add functions for performing OpenStack upgrades 2019-12-12 13:57:55 +00:00
Liam Young
49a01c8318 Merge pull request #143 from thedac/use-netplan-for-ovn
Use Netplan for OVN
2019-12-11 19:33:03 +00:00