Commit Graph

25 Commits

Author SHA1 Message Date
Bas de Bruijne 9fb488efef Update series upgrade automation (#952)
* update series upgrade test

* bug fixes

* bug fixes
2023-01-23 12:39:10 +00:00
Liam Young a822f6995b Added unit tests 2020-04-01 13:45:47 +00:00
Chris MacNaughton 93fd631b1a Split up and re-organize upgrade helpers 2020-03-25 08:44:41 +01: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
David Ames ea48e8b3d6 Unit test fix 2019-10-21 16:19:42 -07:00
David Ames 13fa5e9851 Only use TEST_ prefix 2019-10-18 11:26:37 -07:00
David Ames f29aac19c4 Handle OSCI environment variables
Move to preferred TEST_* environment variables, while remaining backward
compatible.
2019-10-18 10:14:34 -07:00
David Ames bb1525ddff Merge pull request #60 from exsdev0/rabbitmq-zaza-tests
Rabbitmq zaza tests
2019-10-15 08:40:20 -07:00
Edin Sarajlic 596c347be4 Add unit test for generic util function: check_commands_on_units 2019-10-15 14:03:43 +11:00
Edin Sarajlic 6402d5a021 Add unit test for generic util function: port_knock_units 2019-10-15 14:03:43 +11:00
Edin Sarajlic 009f37ab0b Add unit test for generic util function: get_unit_hostnames 2019-10-15 12:51:39 +11: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 0080d84c33 dist upgrade before series upgrade 2019-10-10 11:21:59 +00:00
David Ames 81604c399b Review requests for Liam 2019-07-17 11:07:52 -07:00
Chris MacNaughton dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00
Nicolas Pochet b3996949b8 Add ceph osd tests (#93)
Create functional tests replacing the Amulet tests that are currently used for testing.
2018-10-10 09:09:06 +02:00
David Ames 58af3438dd Fix completed machines unit tests 2018-10-09 09:09:25 -07:00
David Ames 0b94bef0d7 Set APT to non-interactive on series upgrade
A number of packages were requiring interaction on upgrade even with
do-release-upgrade -f DistUpgradeViewNonInteractive. By setting DPkg
options in apt.conf upgraded packages do the right thing.

Set 'DPkg::options { "--force-confdef"; };' on hosts being upgraded.
2018-09-19 07:34:24 +00:00
David Ames c5fe6ce723 Move upgrade series functions to zaza.model
Moving the upgrade series functions to zaza.model. Once the feature
stabilizes we can add functionality to libjuju and remove the
subprocess calls.
2018-09-12 08:22:09 -07:00
David Ames c4182197d4 Use block_until_unit_wl_status for upgrade timing
Remove all calls to time.sleep and use block_until_unit_wl_status to
manage the timing of the upgrade steps.

Also use run_via_ssh to execute commands while the juju agents are down
during a series upgrade.
2018-09-12 08:20:45 -07:00
David Ames c80f057eb6 Parameterize workarounds 2018-09-12 08:20:45 -07:00
David Ames 30082c2311 Series Upgrade
Utilities for performing series upgrades.
Place holder for future stand alone series upgrade zaza test.
Small change to overlay template to allow stand alone zaza tests.
2018-09-12 08:20:45 -07:00
Nicolas Pochet 193e2657ff Add copyright header everywhere.
Also make flake8 happy in setup.py by adding docstrings.
2018-08-09 11:55:13 +02:00
Liam Young 9d06bb890f Move call to get_juju_model() down to run_in_model
Currently interacting with functions in zaza.model requires the
model to be passed in. This has resulted in multiple calls to
get_juju_model(). It is cleaner to push these calls down into
the model wrapper and make the model_name an optional
argument. In addition, the current model name is now cached
without having to check the os.env each time.

Unfortunately this has resulted in the signature changing on a
great many function so this diff is bigger than would normally
be desirable.
2018-06-14 06:19:26 +01:00
David Ames ab431a58ad Fix misspelling of utilities 2018-05-14 10:49:49 -07:00