Commit Graph

1686 Commits

Author SHA1 Message Date
Alex Kavanagh
d3f2a7d402 Merge pull request #483 from fnordahl/add-maas-helpers
Support configuring networknig charms on MAAS
2021-01-14 10:20:17 +00:00
Aurelien Lourot
2b715da7e4 Make HaclusterScalebackTest more robust (#482)
Note that this test will be superseded by #369 in the future.
2021-01-14 10:15:34 +01:00
Frode Nordahl
ec63732974 Support configuring networknig charms on MAAS
When on MAAS support doing charm based configuration of OVS by
retrieving MAC address of ports attached to external network
from MAAS.

Note that we should extend the MAAS support to also work with
deployments where MAAS does the OVS configuration for us.
2021-01-13 18:47:08 +01:00
Frode Nordahl
ee0dd80cec Split configure_gateway_ext_port function
The function does three separate things today, and two of its
tasks are useful for other provider types such as MAAS.

Also fix create_additional_port_for_machines idempotency.

We previously added a run time assertion to fail early when
attempting to configure networking for an invalid bundle. The
check had the side effect of prohibiting subsequent runs on
already configured models.
2021-01-13 18:47:05 +01:00
Frode Nordahl
9961c9468b Sync pertinent tox.ini settings from release-tools
The new PIP resolver wreaks havoc for this repository.

Long term we should split unit test requirements into a separate
file and whip unit tests into shape wrt. mocking out everything as
opposed to relying on having random modules installed in the test
environment.
2021-01-13 18:47:00 +01:00
Aurelien Lourot
a12a4a20e3 Merge pull request #446 from openstack-charmers/bug/1896729
octavia: Disable check for member operational status
2021-01-13 15:16:01 +01:00
Aurelien Lourot
bf4f412135 Merge pull request #456 from gnuoy/support-multiple-iscsi-gws
Stop assuming there are two iscsi gateways
2021-01-08 09:44:47 +01:00
Liam Young
d3ffac511b Merge pull request #479 from ChrisMacNaughton/bug/missing-application
Make the get_os_release default match get_current_os_release_pair
2021-01-06 17:19:23 +00:00
Chris MacNaughton
ebc51b490e Make the get_os_release default match get_current_os_release_pair 2021-01-06 17:19:56 +01:00
Alex Kavanagh
282b8be577 Update openstack upgrade tests for focal (#476)
This patch modifies the existing openstack upgrade tests so that they
work with focal (by explicitly supporting mysql-innodb-cluster), and are
also interruptable and resumable (at a charm level).  It also makes them
work with the udpated 'get_upgrade_groups()' that ultimately gets a List
of Tuples rather than a dictionary.
2021-01-06 14:09:41 +01:00
Aurelien Lourot
b309199405 Merge pull request #478 from gnuoy/use-cephmon-for-release-pair
Use ceph-mon to check ceph version not keystone
2021-01-06 13:27:23 +01:00
Liam Young
ddd9c74028 Use keystone in the first instance 2021-01-06 12:12:42 +00:00
Liam Young
ed3b2737d1 Use ceph-mon to check ceph version not keystone
The test class BlueStoreCompressionCharmOperation gates tests on
whether the ceph release is mimic or newer but it uses the
keystone application to calculate the currently deployed version.
This PR switches the test class to ceck the version of ceph-mon
instead which makes more sense and the keystone application may
not always present in a ceph deployment.
2021-01-06 11:38:41 +00:00
Liam Young
a35ba0917e Allow an app to be set when calling get_os_release (#477)
Ceph deployments may not contain a keystone service which causes
calls to get_os_release to fail as it calls get_current_os_release_pair
without sepecifying an application (keystone is the default).
2021-01-06 12:26:01 +01:00
David Ames
cc26746762 Merge pull request #472 from mullumaus/bug/1907409
Add NovaComputeActionTest test class for virsh_audit action
2020-12-16 14:31:03 -08:00
Aurelien Lourot
9dac613f0f Merge pull request #473 from mkalcok/ceph-osd-start-stop
Adjust tests after rework of the 'service' action
2020-12-15 13:37:09 +01:00
Martin Kalcok
96592c6a85 Rename parameter disks to osds 2020-12-11 16:16:15 +01:00
Martin Kalcok
cfdabe273a Adjust tests after rework of the 'service' action into start and stop actions 2020-12-11 09:49:33 +01:00
Linda Guo
10756f7a66 Add NovaComputeActionTest test class for virsh_audit action 2020-12-11 10:13:41 +11:00
Alex Kavanagh
7ced54b382 Concurrent series upgrade updates (#466)
* Updates to concurrent series upgrade

Updates to make it run more in parallel and spend less time waiting on
the whole model when updating machines.

* Make the concurrent series upgrade tests work

This is a number of changes to get the concurrent (here called
'parallel' historically) series upgrade tests to work.  A number of
changes were required which included limiting the number of concurrent
async co-routines (futures) that could be run as with large models it
hits the limits of the Py3 runtime.

* Fix the tests and change pause order in maybe_pause_things

Due to an additional model helper call, an additional model AsyncMock is
required.  Also the pause order had changed, and this is restored to
ensure the original design is retained (for pause order).

Clean up some commented out code and sort out a few PEP8 errors.

* Update comment to reflect code (3 -> 4)

* Fix tests that fail on bionic but pass on focal

Essentially, asyncio.gather has different behaviour on bionic that
focal.  Although this doesn't affect testing, it does affect the unit
tests.  These changes are simply to normalise the behaviour of unit
tests on focal and bionic.
2020-12-02 11:22:00 +01:00
coreycb
7f45d461e7 Log stderr when manila-ganesha verify() fails (#461) 2020-11-30 16:42:35 +01:00
Aurelien Lourot
83721ee8dd Merge pull request #438 from arif-ali/ldap-groups-membership-tests
Add ldap group/membership tests
2020-11-27 11:45:34 +01:00
Aurelien Lourot
a8ca4720a3 Fix BlueStoreCompressionCharmOperation on Victoria (#468)
Before this fix, the test tried to determine the OpenStack
release based on the ceph-mon charm. Unfortunately Ceph has
the same version on Ussuri and Victoria. As a consequence
the test would wrongly conclude that it's testing against
"groovy_ussuri", which isn't a valid Ubuntu/OpenStack pair.

With this fix, the test now determines the OpenStack
release based on the keystone charm, with which we are able
to tell Ussuri and Victoria apart. This test class is being
run against the following charm functional tests at the
moment, which all have a keystone charm in their test
bundles: nova-compute, cinder-ceph, glance, ceph-fs,
ceph-radosgw and gnocchi.
2020-11-27 09:53:12 +01:00
Alex Kavanagh
2792eb3dcb Merge pull request #469 from mkalcok/ceph-osd-skip-service-test-on-trusty
Skip 'service' action tests on systems without systemd
2020-11-26 14:38:40 +00:00
Martin Kalcok
d6f719e331 Skip 'service' action tests on systems without systemd 2020-11-26 14:42:12 +01:00
90aca8be5e Add ldap group/membership tests
Adds a test to check for groups that are coming from LDAP.

Adds a test to ensure that openstack is able to check the membership
of a user in the group.

Signed-off-by: Arif Ali <arif.ali@canonical.com>
2020-11-25 17:04:06 +00:00
Aurelien Lourot
44e62803e5 Merge pull request #458 from rodrigogansobarbieri/improve_keystone_ldap
Update Keystone LDAP tests
2020-11-23 23:20:15 +01:00
Rodrigo Barbieri
7404b0cb9b Update Keystone LDAP tests
- Reversed ldap-config-flags vs charm configs precedence
  for https://review.opendev.org/748364
- Added new functional test to validate the precedence
- Added zaza helper function to assist handling charm configs
  that do not accept "" (like booleans and ints), and reverting
  to unset values through config_change()
- Fixed zaza reset helper function that apparently never
  worked ({}.keys() returns dict_keys which is not a sequence)
2020-11-23 12:33:32 -03:00
Frode Nordahl
38767da01d Merge pull request #464 from openstack-charmers/lourot/ovn-codename-major-minor
Support 'major.minor' when determining OS release of OVN packages
2020-11-19 12:46:51 +01:00
David Ames
910516c3bd Merge pull request #465 from ajkavanagh/bug/460
Add placement-common versions for train->ussuri upgrade
2020-11-18 14:13:15 -08:00
Alex Kavanagh
f94f2be31d Merge pull request #462 from gnuoy/nova-client-version
Support nova client micro versions
2020-11-18 16:00:05 +00:00
Alex Kavanagh
b07afac21a Add placement-common versions for train->ussuri upgrade 2020-11-18 14:33:37 +00:00
Liam Young
817473675d Numbers are imutable so safe to have as default argument 2020-11-18 14:12:13 +00:00
Aurelien Lourot
ed6ab051bd Merge pull request #463 from gnuoy/resource-wait-attr
Extend resource_reaches_status
2020-11-18 15:03:28 +01:00
Aurelien Lourot
c5c11194a1 Support 'major.minor' when determining OS release of OVN packages 2020-11-18 14:49:12 +01:00
Liam Young
dfecc58f5a Extend resource_reaches_status
The resource_reaches_status assumes that the attribute to be checked
is called 'status' but this can vary between resource types so allow
the name of the attribute to specified.
2020-11-18 12:13:59 +00:00
Alex Kavanagh
56e41c5c89 Merge pull request #444 from mkalcok/ceph-osd-service-tests
Add func-tests for ceph-osd 'service' action
2020-11-18 11:13:42 +00:00
Liam Young
b23d9e285b Support nova client micro versions
Support micro versions when requesting a nova client.
2020-11-18 09:36:44 +00:00
Frode Nordahl
36e247e96b Merge pull request #434 from openstack-charmers/lourot/bug/1877076
Add some tenacity around cinder backup creation
2020-11-13 10:57:27 +01:00
Aurelien Lourot
20137d0992 Merge pull request #459 from gnuoy/zaza-magpie-tests
Add magpie tests
2020-11-13 10:44:23 +01:00
Liam Young
e8e16a353c Add magpie tests 2020-11-13 08:40:48 +00:00
Aurelien Lourot
64fd802697 Fix call to cinder_client.backups.create() 2020-11-11 15:24:12 +01:00
Aurelien Lourot
ca40adc078 Fix comment 2020-11-11 08:44:51 +01:00
Aurelien Lourot
82c1a5321b Fix volume and backup name 2020-11-10 22:09:22 +01:00
Aurelien Lourot
c91ebb5ec4 Remove unused security tests (#441) 2020-11-09 10:38:23 +01:00
Liam Young
a91ae76975 Stop assuming there are two iscsi gateways
The tests assume there are two iscsi gateways which is not a
safe assumption.
2020-11-06 14:12:59 +00:00
Alex Kavanagh
cd2157f607 Merge pull request #403 from hemanthnakkina/lpbug/1832765
Add new keystone-ldap charm options in LDAP tests
2020-11-06 08:43:23 +00:00
Aurelien Lourot
d1dbefa6ec Merge branch 'master' into lourot/bug/1877076 2020-11-05 11:31:52 +01:00
David Ames
5aa1759c07 Merge pull request #455 from ajkavanagh/bug/1724174
bionic-train -> ussuri needs to upgrade placement
2020-11-03 13:57:49 -08:00
Martin Kalcok
991d7ea7a4 Removed typing usage 2020-11-03 15:47:18 +01:00