Commit Graph

1865 Commits

Author SHA1 Message Date
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
Chris MacNaughton
06427d9f4a Merge pull request #586 from openstack-charmers/gss-log-ks-catalog
gss: Log Keystone service catalog on failure
2021-06-03 09:20:10 +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
David Ames
fe29ae528f Merge pull request #585 from openstack-charmers/issue/584
policyd: Add keystoneauth1 403 to accepted exceptions
2021-06-02 08:17:46 -07: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
Chris MacNaughton
ced4da0b96 Merge pull request #581 from openstack-charmers/issue/580
glance_simplestreams_sync/setup: Add tenacity
2021-05-27 14:42:57 +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
Aurelien Lourot
1b2b6b818b Merge pull request #576 from gnuoy/s3-tests-for-trilio-wlm
Add classes to collect NFS and S3 Trilio tests
2021-05-26 10:52:11 +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
Aurelien Lourot
65e698fe89 Merge pull request #573 from gnuoy/add-ovn-codename
Add ovn codename wallaby (20.12)
2021-05-17 16:10:03 +02: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
David Ames
3c0b47aeb7 Merge pull request #571 from openstack-charmers/lourot/traces-downloading-imgs
Add more logging around downloading/caching test images
2021-05-10 08:47:27 -07:00
Aurelien Lourot
03ddaf0079 Add more logging around downloading/caching test images 2021-05-10 13:57:26 +02:00
Aurelien Lourot
632218d098 Merge pull request #570 from openstack-charmers/bug/octavia-always-added
Restrict adding Octavia config
2021-05-06 14:26:26 +02:00
Chris MacNaughton
779137f60f Restrict adding Octavia config
Only add Octavia's config when Octavia is in the enabled services
2021-05-06 14:12:33 +02:00
Liam Young
8e998c2d02 More seperation 2021-05-06 08:22:10 +00:00
Liam Young
cd2df7534c Seperate TrilioGhostNFSShareTest from TrilioDataMoverTest as its not needed for s3 2021-05-05 11:39:53 +00:00
Chris MacNaughton
e631b93541 Add proper support for Octavia's tempest tests (#498)
* Update tempest config for Octavia
* ensure the test_server is executable
* remove reference to accounts.yaml
2021-05-04 11:46:27 +02:00
David Ames
5d533fba6a Restart blocked mysql routers (#565)
LP Bug #1918953 [0] was resolved on the mysql-innodb-cluster side using coordinated delayed action. Since then we have seen a similar issue in CI [1] after the pause and resume test. Mysql-router hangs with:
2021-04-21 20:42:05 metadata_cache WARNING [7f3f968d5700] Instance '192.168.254.18:3306' [72b4ac2c-a2dd-11eb-82a5-fa163e5a4b7e] of replicaset 'default' is unreachable. Increasing metadata cache refresh frequency.

This cannot be fixed from the cluster side. I will be looking into solutions on the mysql-rotuer side. But in the meantime, to unblock the mysql-innodb-cluster gate this change restarts blocked MySQL routers.

[0] https://bugs.launchpad.net/charm-mysql-router/+bug/1918953
[1] https://openstack-ci-reports.ubuntu.com/artifacts/test_charm_pipeline_func_full/openstack/charm-mysql-innodb-cluster/786514/3/8479/consoleText.test_charm_func_full_11494.txt
2021-04-23 17:26:52 +01:00
Billy Olsen
a05263f111 Update nova tests (#563)
Add test for the new nova_cc charm action syncing AZs

The new action is meant to sync the availability zones from the
underlying Juju provider with the OpenStack availability zones.

It is useful within MAAS environments to map the MAAZ AZs to
OpenStack AZs.

Also fix output check logic for sync az test.
The validation logic for the sync az test checks the specific output of
the command text, but this is dependent on ordering. The code also
validates that the hypervisors are added to the appropriate host
aggregates, so this changes the test to verify the action was successful
and has some output.

Also use the availability-zone based on the configured settings.
In the attempt to sync the az test, the availability zone is assumed
to be the JUJU_AVAILABILITY_ZONE environment setting. In various
scenarios, this is not what is used for the availability zone of a
compute node.
This change mimics the logic that's contained within the nova-compute
charm to determine which availability zone should be used for the
compute node.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Co-authored-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2021-04-22 13:13:40 +02:00
David Ames
25ee5dc924 Merge pull request #561 from coreycb/master
Get OpenStack codename from /etc/openstack-release
2021-04-20 15:54:54 -07:00
Corey Bryant
d70ff79b1e Change log to debug to create less noise 2021-04-20 13:05:18 -04:00
Corey Bryant
9a48757d5e Fix version fallback path when /etc/openstack-release doesn't exist 2021-04-20 12:32:07 -04:00
Corey Bryant
0b401de17f Get OpenStack codename from /etc/openstack-release
In newer versions of Ubuntu and the Cloud Archive (currently Hirsute,
Wallaby, and above), there is an openstack-release package that, if
installed, specifies the current OpenStack release in
/etc/openstack-release.

Also adds wallaby definitions to non-version definitions in
os_versions.py.

Fixes #560
2021-04-20 10:31:04 -04:00
Aurelien Lourot
ff7a30d940 Merge pull request #559 from thedac/mysql-partition-tests
MySQL Partition Test class
2021-04-19 18:09:35 +02:00
David Ames
49929ef018 Fix typo 2021-04-19 09:05:45 -07:00
David Ames
1c15672b61 MySQL Partition Test class
Currently the new partition test_110 is breaking on master due to the
test landing before the charm PR which implemented the change [0] has
landed.

Move the partition test to its own class which can be added as a target
in the charm's tests.yaml. This will not affect master and can be
trivially updated in [0].

[0] https://review.opendev.org/c/openstack/charm-mysql-innodb-cluster/+/779427
2021-04-19 08:58:11 -07:00
David Ames
668b3233fb Merge pull request #556 from gnuoy/ovn-central-deferred-restart-test
Add deferred restart test for ovn central
2021-04-13 10:02:27 -07:00
Liam Young
669b57574b Add deferred restart test for ovn central 2021-04-13 10:24:15 +00:00
Aurelien Lourot
4b461a7bb8 Merge pull request #554 from gnuoy/issue/553
Fix Neutron Gateway deferred restart test
2021-04-12 11:39:20 +02:00
Liam Young
d89a1651d2 Fix Neutron Gateway deferred restart test
Do not run the deferred hooks action for neutron gateway as it is
not needed and will end in an action error.

Tested locally here: https://paste.ubuntu.com/p/cSmgxmrTr4/

This closes issue #553
2021-04-12 09:28:31 +00:00
Aurelien Lourot
6e1ef38b06 Merge pull request #551 from gnuoy/fix-deferred-restart-race
Fix race exposed by rabbit charm.
2021-04-09 22:12:12 +02:00
Liam Young
8a04739912 Fix race exposed by rabbit charm.
If there are multiple charms of a given application then a hook
like leader-settings-changed can trigger a deferred hook. So a
race can occur where the deferred hooks of unit1 are cleared
then in the process of clearing unit2 a deferred hook is
triggerred in unit1. To fix this do not block on the wl status
message after the hook test completes.

Also, make sure that an action failure is fatal to surface any
issues.
2021-04-09 20:02:27 +00:00
Billy Olsen
c8a62b686f Merge pull request #549 from gnuoy/fix-ovn-dedicateed-chassis-deferred
Fix bug caused by disable-mlockall being unset
2021-04-09 12:21:58 -07:00
Liam Young
7d02173914 Fix bug caused by disable-mlockall being unseet 2021-04-09 17:10:09 +00:00