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
27e5f7d8bc
We must have async functions for the before/after callables
2020-04-10 16:51:41 +02:00
Chris MacNaughton
208439cdf1
Add unit tests for pre and post-app upgrade functions
2020-04-10 11:42:21 +02:00
Chris MacNaughton
183b3c012f
Add unit tests for new rabbit and mysql helpers
2020-04-10 11:02:38 +02:00
Chris MacNaughton
e2d6a5c081
Add test coverage for follower-first upgrades
2020-04-10 10:50:43 +02:00
Chris MacNaughton
7649bcb10e
Skip the async unit tests on py35
2020-04-10 10:50:43 +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
cf1ea4c71b
First pass at batched parallel series upgrade
2020-04-10 10:50:43 +02:00
Liam Young
a822f6995b
Added unit tests
2020-04-01 13:45:47 +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
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
0a94b97cf4
update for style bits
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
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
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
721f3bc905
Fix unit test
2019-12-17 12:21:39 +00:00
Liam Young
4af37d9556
Add functions for performing OpenStack upgrades
2019-12-12 13:57:55 +00:00
Alex Kavanagh
1503751d5c
Merge pull request #141 from thedac/iteration-handling
...
py3.7+ StopIteration handling
2019-12-11 16:50:50 +00:00
Liam Young
f3ebe916f2
Add get_subordinate_units
...
Add zaza.openstack.utilities.juju.get_subordinate_units to get a list
of all subordinate units associated with units in unit_list.
Subordinate can be filtered by using 'charm_name' which will only
return subordinate units which have 'charm_name' in the name of the
charm.
2019-12-11 12:12:25 +00:00
David Ames
40e9c86df4
Test the condition not the implementation
2019-12-10 08:36:22 -08:00
David Ames
c109abbe25
Fix unit test
2019-12-09 09:22:01 -08:00
Liam Young
d2904e228d
Add Swift Global Replication Tests
2019-11-29 11:47:43 +00:00
Liam Young
9c34bc42da
Expose model_name option in get_keystone_session_from_relation
2019-11-25 17:40:03 +00:00
Liam Young
748915646a
First set of updates to set model name explicitly
2019-11-25 10:49:50 +00:00
Frode Nordahl
8e8544bab7
Fix ovn_present for ovn-dedicated-chassis
...
Add missing unit test.
2019-11-02 10:31:30 +01:00
Frode Nordahl
7d1d04a742
Deduce whether DVR is enabled from neutron-api config
...
Add helper to detect presence of OVN in deployment
2019-11-01 06:39:17 +01:00
Frode Nordahl
85927e20c6
Add helper to get uuids of machines w/OVN chassis
...
Refactor get_machines_for_application as generator function instead
of building and passing on static List.
2019-11-01 06:39:07 +01: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
045c50637b
Add a new SSH function
...
It is likely that there are other commands that we
would like to run in our tests, so this is a new SSH
command runner that the existing SSH check has been
updated to use.
2019-06-06 13:46:06 +02:00
Liam Young
648ac9262b
Expose resource_removeds retry options ( #11 )
...
resource_removed is used in many places to monitor removal of
different kinds of OpenStack resource. It is reasonable to expect a
flavor to be removed in a few seconds where as an image based instance
may take minutes to be removed. With that in mind this change
exposes the retry options used by tenacity allowing the caller to
set reasonable expectations for the resource removal.
2019-05-23 11:16:03 +02:00
Liam Young
6dad655b5d
Avoid adding duplicate handler ( #4 )
...
If a logging handler has already been added don't add it again.
2019-05-14 15:31:55 +02:00
Liam Young
6b2c1d26eb
Add function for getting keystone auth from relation
2019-05-13 09:06:40 +00:00
Chris MacNaughton
0c2f36fb4e
modify base zaza poackage into zaza.openstack package
2019-05-08 13:38:33 +02:00
coreycb
ebf9aa085e
Merge pull request #230 from thedac/saml
...
Keystone SAML Mellon functional testing
2019-05-01 06:59:11 +02:00
Chris MacNaughton
dd434e281e
Add zaza namespacing, starting with openstack
2019-04-25 17:46:03 +02:00
David Ames
ac4f68e560
Merge branch 'master' into require-env-vars
2019-04-22 10:21:15 -07:00
Chris MacNaughton
4954e44c51
Use jinja2's StrinctUndefined to make template variables mandatory
2019-04-21 16:33:03 +02:00
Liam Young
2492dbfd99
Add function to upgrade charm
2019-04-16 10:41:02 +00:00