Commit Graph

24 Commits

Author SHA1 Message Date
Chris MacNaughton c492ecdcac Add functional test that covers Ubuntu Lite in Parallel 2020-04-15 15:54:44 +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
Chris MacNaughton 33fa6e02de Fix typo 2020-04-06 16:13:56 +02:00
Chris MacNaughton d3974c84a3 Fix iterating over applications 2020-04-06 16:12:00 +02:00
Chris MacNaughton 6bf6dcd8e8 fix lint 2020-03-25 15:36:22 +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 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
Liam Young 19fb4c0782 Upgrade complete action for percona.
The Percona charm requires that an action is run once all the units
have performed their series upgrade. Longer term
test_200_run_series_upgrade needs refactoring but this is a
tactical fix in the meantime.
2020-02-10 10:24:10 +00:00
Liam Young 00af513cf4 Skip series upgrade of easyrsa (Bug #1850124) 2020-02-04 12:55:19 +00:00
Liam Young 5927878a03 Tidyup mojo cert unseal 2020-02-04 10:10:50 +00:00
Liam Young 83982a7aec Add unseal function for mojo use.
* Add an unseal function for mojo to use.
* Switch mojo to use new function after series upgrade reboot.
* Add fallback if vip client is unavailable (the case if all
  hacluster units are paused for series upgrade).
2020-02-03 13:39:17 +00:00
Liam Young b79900405b Easyrsa does not support series upgrade so skip it
Easyrsa does not currently support series upgrade so skip it in
the openstack tests until Bug #1850121 is resolved.
2020-02-02 18:38:08 +00:00
Liam Young 7995199136 Run complete-cluster-series-upgrade
After perfomring a series upgrade on rabbitmq run
complete-cluster-series-upgrade
2020-01-09 20:17:19 +00:00
Liam Young 6c15605222 Series upgrade tests run funcs after upgrade.
Execute a list of functions after series upgrade if one is
supplied. This change is driven by the upgrade testing of vault.
Vault needs to be unsealed after it is rebooted.
2019-10-14 10:39:11 +00:00
Liam Young 34a8cc14b8 No origin for designate-bind series upgrade 2019-10-13 09:50:21 +00:00
Liam Young f0d2853aec No origin for designate-bind series upgrade 2019-10-12 07:31:06 +00:00
Chris MacNaughton dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00