Commit Graph

42 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
Luciano Lo Giudice be70ef7529 Make Ceph tests idempotent (#795)
With the upcoming transition to an operator-framework charm, the
Ceph tests need to be idempotent, since we'll be testing the upgrade
path from classical to operator. The tests that need fixing are the
ones that call out to add/remove disks, since they create loopback
devices to back the OSD's but never remove them.
2022-06-27 20:44:24 +02:00
Chris MacNaughton a45db73007 Merge pull request #675 from openstack-charmers/osd-add-disk-test
Osd add disk test
2022-02-22 07:47:52 +00:00
Luciano Lo Giudice e751e4a989 Rearrange functions into separate modules 2022-02-10 14:28:50 -03:00
Alex Kavanagh 0af4c93d52 Switch unit.public_address to unit.get_public_address()
Due to the bug [1] on OpenStack providers, unit.public_address doesn't
actually work reliably.  The fix [2] is only for the async function
unit.get_public_address().  Sadly, zaza relied on unit.public_address
and so it needs this patch for juju 2.9 support on OpenStack providers.

This patch relies on an associated patch in zaza [3]; thus this will
fails its tests until that passes.

[1]: https://github.com/juju/python-libjuju/issues/551
[2]: https://github.com/juju/python-libjuju/pull/600
[3]: https://github.com/openstack-charmers/zaza/pull/468
2022-01-14 15:21:32 +00:00
Zhang Hua d353f3c25b Delete hm port on unit removal
This is Zaza functional test for lp:1915512. Add a unit and then remove a unit,
then query the list of ports to check that the port has been deleted.

Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/787700
2021-07-27 13:42:56 +08:00
Zhang Hua b44aa8823c Delete hm port on unit removal
This is Zaza functional test for lp:1915512. Add a unit and then remove a unit,
then query the list of ports to check that the port has been deleted.

Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/787700
2021-07-19 11:45:43 +08:00
Ionut Balutoiu d728458afa Add multi-backend testing for Keystone SAML Mellon
The new updated tests rely on new testing bundles deployed with
two local IdPs via the Juju charm https://jaas.ai/u/ionutbalutoiu/test-saml-idp.
2021-02-24 20:21:14 +02:00
Aurelien Lourot 670292c683 Remove more deprecation warnings 2020-07-02 12:11:23 +02:00
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