Commit Graph

1110 Commits

Author SHA1 Message Date
Luciano Lo Giudice
fef55ec318 PEP8 style fixes 2021-08-25 20:32:50 -03:00
Luciano Lo Giudice
f3a38c0c90 Implement the tests for the cinder-lvm charm
The cinder-lvm charm is a subordinate of the cinder charm. The spec
can be found here:
https://github.com/openstack/charm-specs/blob/master/specs/xena/backlog/cinder-lvm.rst
2021-08-25 20:11:10 -03:00
Aurelien Lourot
6a4f3d4abf Merge pull request #457 from freyes/bug/1902923
designate: test new configuration options
2021-08-04 11:27:24 +02:00
Liam Young
caa8303cc7 Bump trilio snapshot create timeout
A recent testrun failed when using an S3 backend because the
snapshot creation timed out. The time out is set to 900s but it
took 959s.
2021-08-03 12:24:49 +00:00
Aurelien Lourot
3371fe9c2a Wait between actions on OpenStack upgrade (#607)
We're more likely to time out while waiting for the
action's result if we launch an action while the
model is still executing. Thus it's safer to wait
for the model to settle between actions.
2021-07-29 12:15:53 +01:00
Gabriel Angelo Sgarbi Cocenza
ea341f1eb4 Check blocked ovn-chassis units with bad config (#605)
* Check blocked ovn-chassis units with bad config

LP bug#1919481 [0] needs to have a func-test to check if units can
handle bad bridge-interface-mappings configuration and set units
workload to block state and return to active state with good config.

[0] https://bugs.launchpad.net/charm-ovn-chassis/+bug/1919481

* Changing test_wrong_bridge_config to use config_change

Instead of using block_until_unit_wl_status, change the test_config
to be able to check blocked state for ovn-chassis units

Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-07-29 11:09:33 +02:00
Aurelien Lourot
40e1573277 Add Impish/Xena/Yoga bits
Change-Id: I61ef8120fb487dc4a1a12a51d14c75825099bcbb
2021-07-20 10:52:35 +02:00
Aurelien Lourot
797e505f84 Add connection timeout to CirrOS image download (#604)
Without this timeout it has been observed that Zaza
may hang forever on open(). It is better to fail
faster and save time and resources.
2021-07-20 09:37:51 +01:00
Aurelien Lourot
67685b242b Merge pull request #569 from ajkavanagh/octavia-scenario-mods
Additions for the Octavia Upgrade tests
2021-07-19 15:41:40 +02:00
Aurelien Lourot
65d9d78420 Merge branch 'master' into retry-with-tenacity
Change-Id: Ifac26ffb6d53d75b9dbd314693252ad8b3364c5d
2021-07-16 11:54:08 +02:00
Felipe Reyes
bcff352f9c designate: test new configuration options
New configuration options:

- default-ttl
- default-soa-minimum
- default-soa-refresh-min
- default-soa-refresh-max
- default-soa-retry

Related-Bug: #1902922
2021-07-13 17:11:22 -04:00
Frode Nordahl
ecf5bca268 ovn: Add prefer-chassis-as-gw test 2021-07-07 11:47:52 +02:00
Aurelien Lourot
16963c44ab Merge pull request #592 from openstack-charmers/octavia-wallaby
octavia: Grant role to ensure access to LBAASv2 API
2021-07-06 10:15:22 +02:00
Frode Nordahl
13eb800682 octavia: Add version fence for adding the LBAAS role 2021-07-05 11:43:59 +02:00
Aurelien Lourot
acd1793741 Fix neutron-api-plugin-ovn's num-expected-units
After zaza#451 Zaza's application readiness detection
has been improved, which now exposes issues from the
past that were hidden. In other words, we were relying
on a bug on Zaza's side and need to get this straight.
2021-07-05 11:41:45 +02:00
Aurelien Lourot
6288f67f7e Merge pull request #567 from ChrisMacNaughton/bug/1889287
Add support for restarting and then retesting manila share services
2021-07-02 17:20:11 +02:00
Chris MacNaughton
698d8f04e3 Add support for restarting and then retesting manila share services
In this change, a charm test that subclasses the ManilaBaseTest
class can also opt-in to re-validating a share after restarting
the share services by overriding the _restart_share_instance
method.
2021-07-02 12:39:19 +02:00
Liam Young
ba1914eb83 Fix lint 2021-06-29 12:45:11 +00:00
Liam Young
1009b70a87 Ensure application name is passed in scenario tests
When running Trilio tests in a scenario test there is no 'charm_name'
so the application name needs to be explicitly set when calling
the setup class otherwise some config, such as lead_unit, is
missing.
2021-06-29 12:38:43 +00:00
Aurelien Lourot
ba9fefbec2 Merge pull request #595 from gnuoy/add-ceph-dashboard-tests
Add very basic ceph dashboard tests.
2021-06-24 14:00:52 +02:00
Liam Young
7cec6a27b5 Fix doc string 2021-06-24 11:57:21 +00:00
Liam Young
dc78fb6616 Add missing __init__ 2021-06-24 09:51:06 +00:00
Liam Young
110df7f2c7 Add very basic ceph dashboard tests. 2021-06-24 09:19:34 +00:00
Frode Nordahl
8a78f9e4c4 policyd: Grant role to ensure access to LBAASv2 API
Starting with OpenStack Wallaby the LBAASv2 API will require
authentication with system scoped token unless the user has
the 'load-balancer_admin' role.

Grant role on test setup, and remove it again on clean-up.
2021-06-18 13:07:52 +02:00
Frode Nordahl
858487e207 octavia: Grant role to ensure access to LBAASv2 API
Starting with OpenStack Wallaby the LBAASv2 API will require
authentication with system scoped token unless the user has
the 'load-balancer_admin' role.

Grant role on test setup, and remove it again on clean-up.
2021-06-18 13:07:47 +02:00
Rodrigo Barbieri
8ba1134787 Add pci-alias test for nova-compute (#587)
Moved test that was previously existing for
nova-cloud-controller to a common class to
be run for nova-compute as well.
2021-06-17 19:18:29 +01:00
Liam Young
b7e542636f Extend trilio snapshot timeout (#594)
Extend trilio snapshot timeout, closes issue #595.
2021-06-16 09:14:29 +01:00
David Ames
e9cb5aea5a Retry request on test csr for Vault 2021-06-14 20:49:22 +00:00
Nobuto Murata
dee6032fc3 Skip test_vault_reload with enabling/disabling mlock in LXD
When Vault is running in a LXD container, test_vault_reload is expected
to fail because mlock cannot be enabled in LXD containers. Skip it when
running in containers is detected. It's useful for local development
environments with Juju's localhost/LXD provider. The test won't be
skipped in the OpenStack Charm CI since the Vault units will be run in
KVM, not in LXD containers.
2021-06-13 16:57:02 +09:00
Aurelien Lourot
f0273d59f7 Merge pull request #574 from nobuto-m/glance-s3
Functional testing for glance external S3 backend
2021-06-09 15:26:59 +02:00
David Ames
6645c60e93 Handle Vault running tests twice (#588)
Vault's runs its tests twice. In some circumstances the removal of the
vault key from the test_config dictionary can throw a KeyError. Do not
fail when this happens.
2021-06-09 11:20:53 +01:00
Chris MacNaughton
962e75a054 Merge pull request #445 from xavpaice/bug/1750486
Add tests for NRPE checks in aodh
2021-06-08 08:13:27 +02:00
Frode Nordahl
38581b70e5 gss: Log Keystone service catalog on failure
The simplestreams service relies on the Keystone Service catalog.
To help debug any issues occurring during test execution, log the
contents of the Keystone service catalog in the event of failure.

Related-Bug: #1930654
2021-06-03 08:11:54 +02:00
Frode Nordahl
7e46cde193 policyd: Add keystoneauth1 403 to accepted exceptions
Fixes #584
2021-06-02 15:17:45 +02:00
Aurelien Lourot
2dd5b96ed4 Merge pull request #582 from hernandanielg/test-image-conversion-config
added glance functional test for image-conversion config
2021-06-01 22:18:20 +02:00
Hernan Garcia
e67b0ea1e1 added glance functional test for image-conversion config 2021-05-31 03:45:45 -05:00
Nobuto Murata
2e7d52b9cd fix typo 2021-05-28 22:14:34 +09:00
Aurelien Lourot
4072f05a3f Merge branch 'master' into glance-s3 2021-05-28 10:04:13 +02:00
Frode Nordahl
a07f379ea2 Merge pull request #579 from openstack-charmers/lourot/policyd
Re-enable test_003_test_override_is_observed
2021-05-28 09:53:26 +02:00
Frode Nordahl
7ba3141cdb glance_simplestreams_sync/setup: Add tenacity
The very nature of the action ran by the configure step will cause
it to fail frequently unless it is retried.

Fixes #580
2021-05-27 13:28:24 +02:00
Aurelien Lourot
8558473394 Re-enable test_003_test_override_is_observed
This test was disabled for releases older than
groovy-victoria because of
https://bugs.launchpad.net/ubuntu/+source/python-oslo.policy/+bug/1880959

This bug has now been fixed and released for
xenial-queens and newer.

Also made it more robust in GlanceTests // fixes #578
2021-05-26 15:18:54 +02:00
Liam Young
6a688d29bb Add classes to collect NFS and S3 Trilio tests 2021-05-25 13:19:25 +00:00
Nobuto Murata
be1706cb76 Functional testing for glance external S3 backend
Set up Ceph-Radosgw in the same model as an external S3 backend for
Glance:
- create an S3 user in Radosgw
- create an S3 bucket for Glance
- inject those parameters into Glance charm configurations as an
  external S3 backend
- upload an image to the S3 backend via Glance, and check the size of
  the image in the S3 bucket directly

Co-authored-by: Connor Chamberlain <connor.chamberlain@canonical.com>
2021-05-24 03:30:49 +09:00
Billy Olsen
90a61f621b Merge pull request #516 from gnuoy/trilio-s3
Add setup code for s3 back Trilio
2021-05-21 15:58:49 -07:00
Liam Young
a4297cb720 Merge pull request #572 from fnordahl/octavia-reenable-victoria
Revert "Skip OVN provider octavia test on Victoria"
2021-05-20 13:07:38 +01:00
Frode Nordahl
d51a28dc04 Re-order change of expected workload status
After recent changes to zaza workload status code the present
ordering does no longer work.
2021-05-18 11:55:55 +02:00
Liam Young
620a098e8d Add debugging 2021-05-18 07:56:34 +00:00
Liam Young
1c4a117c3a Add ovn codename wallaby (20.12) 2021-05-17 11:12:13 +00:00
mkalcok
3aacd5c89c Functional tests for instance-count action on nova-compute charm. (#535)
Launchpad: #1911011
Gerrit review: https://review.opendev.org/c/openstack/charm-nova-compute/+/783371

* Functional tests for `instance-count` action on nova-compute charm.

Test for `remove_from_cloud_actions` waits at the end until
the nova-compute service is available again. However there's a few
seconds lag until that host shows up also in `hypervisor-list` which
can cause race conditions with other tests.
2021-05-13 11:48:06 +01:00
Frode Nordahl
7dd96c8fb1 Revert "Skip OVN provider octavia test on Victoria"
This reverts commit c4691ef1c7.
2021-05-11 10:51:18 +02:00