Commit Graph

33 Commits

Author SHA1 Message Date
Chris MacNaughton
592622935c tidy up and add more debugability 2020-04-15 10:06:41 +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
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
540e0ea4fc tidy up style things, add docstring 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
5fdde89be0 Tidyup docstring and method name 2020-02-04 12:48:00 +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
748915646a First set of updates to set model name explicitly 2019-11-25 10:49:50 +00:00
David Ames
a207fea389 Stop setting external DNS
Use neutron DNS by not setting a DNS server on the subnet.
Also correct TEST_NAME_SERVER for potential future use.
2019-10-21 16:08:35 -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
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
Edin Sarajlic
d2e12abb91 Remove condition: check client series will always be true.
All CI test runners are >= xenial. The condition will always be true.
2019-10-14 10:45:59 +11:00
Edin Sarajlic
5e170cd1ba Make get_series/get_client_series available as public util functions 2019-10-14 10:45:59 +11:00
Edin Sarajlic
18726c341a Fix lint errors found in docstrings 2019-10-14 10:45:59 +11:00
Edin Sarajlic
31c71f4061 Add function that runs/checks a command on all units, expecting exit 0 2019-10-14 10:45:59 +11:00
Edin Sarajlic
2888cb5e92 Add a function that checks port access given a list of units 2019-10-14 10:45:33 +11:00
Edin Sarajlic
27bd15a9e0 Add a function that returns contents of a file from a unit 2019-10-14 10:45:33 +11:00
Edin Sarajlic
9bceee55c8 Add function that returns a map of unit names -> hostnames 2019-10-14 10:45:33 +11:00
Liam Young
9f73b218ac Ensure units are idle before prepare_series_upgrade
Ensure all units are idel before running prepare_series_upgrade.
Closes issue #88
2019-10-11 11:40:10 +00:00
Liam Young
7fd66a7a14 Move dist upgrade earlier so agent is still running 2019-10-10 12:22:18 +00:00
Liam Young
0080d84c33 dist upgrade before series upgrade 2019-10-10 11:21:59 +00:00
Alex Kavanagh
f06b957081 Fix issue that it's a unit rather than app
This matches on an unit, rather than an app, which  was the original
intention.
2019-08-05 09:31:05 +01:00
Alex Kavanagh
14f0f53e49 Add a subordinate blacklist for pausing services
During the series upgrade tests, zaza pauses subordinate services.
However, the cinder-ceph charm has no pause/resume action, and so the
test fails.  This PR adds a blacklist that ensures that the cinder-ceph
subordinate is not paused during series upgrade.
2019-08-04 15:40:38 +01: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