Commit Graph

2012 Commits

Author SHA1 Message Date
Luciano Lo Giudice
ed47cb718a Correctly indent docstring 2022-02-17 18:15:46 -03:00
Luciano Lo Giudice
e6d6b9e4b5 Run command on ceph-mon since some versions don't allow ceph-osd for it 2022-02-17 18:12:05 -03:00
Luciano Lo Giudice
e751e4a989 Rearrange functions into separate modules 2022-02-10 14:28:50 -03:00
Luciano Lo Giudice
c8302161a1 Also test that the new number of OSD's is correct. 2022-01-20 20:47:12 -03:00
Luciano Lo Giudice
f6a0b14df4 Fix import of juju utilities 2021-11-29 16:00:26 -03:00
Luciano Lo Giudice
7933615a7e Remove unused import 2021-11-29 12:09:28 -03:00
Luciano Lo Giudice
97f1ea5693 Move functions into juju utilities. 2021-11-29 12:08:28 -03:00
Luciano Lo Giudice
4a52ba1dba Add docstrings. 2021-11-26 18:40:14 -03:00
Luciano Lo Giudice
a7865afb64 Test the enhancements of the 'add-disk' action for ceph-osd
This PR tests that a new device is succesfully added to the OSD
charm, and that it's done so via the 'bcache' mechanism. The
backing storage is provided via a loopback device, whereas the
caching storage is provided by Juju itself.
2021-11-26 18:29:29 -03:00
Liam Young
c16bba2705 Merge pull request #668 from javacruft/rabbitmq-new-configuration
Support new style RMQ conf files
2021-11-23 14:29:57 +00:00
Aurelien Lourot
9040cef609 Merge pull request #600 from zhhuabj/hm-port
Delete hm port on unit removal
2021-11-23 14:17:00 +01:00
Zhang Hua
4cbee5bfd2 Delete hm port on unit removal - part 4 - disabled test 2021-11-23 09:37:31 +08:00
Felipe Reyes
b3194e9c1f Merge pull request #670 from coreycb/v3-endpoint
Authenticate with cinder v3 endpoint by default
2021-11-22 16:46:52 -03:00
Corey Bryant
1eaa2233c1 Authenticate with cinder v3 endpoint by default
The v3 endpoint has been supported by the charms since Pike,
and the V2 endpoint was removed in Xena, therefore it makes
to use the v3 endpoint by default at this point.
2021-11-22 09:56:16 -05:00
Chris MacNaughton
c9834315f9 Merge pull request #669 from freyes/bug/1951650
Use yaml.safe_load()
2021-11-22 14:45:45 +01:00
Felipe Reyes
29b569df13 Use yaml.safe_load()
Pyyaml>=6.0 requires to pass the Loader arg to yaml.load(), switching to
yaml.safe_load() recovers the old and expected behavior.

https://github.com/yaml/pyyaml/pull/561

Closes-Bug: #1951650
2021-11-22 10:37:06 -03:00
James Page
f877ae0a36 Support new style RMQ conf files
The rabbitmq-server charm now uses INI style .conf files for
releases that support the new style of configuration.

Update SSL checks to look for this file first and then fallback
to the older .config filename if not found
2021-11-15 10:57:35 +00:00
Aurelien Lourot
9f2ca38de9 Merge pull request #656 from Barteus/master
Swift proxy remove devices test added
2021-11-10 12:33:02 +01:00
Bartlomiej Poniecki-Klotz
29799dfee3 Unit test comment fix. 2021-11-10 12:18:58 +01:00
Aurelien Lourot
c6467d1da0 Merge pull request #665 from coreycb/skip-failing-ceph
Skip failing ceph test
2021-11-08 16:47:26 +01:00
Chris MacNaughton
33aa182a2f Merge pull request #666 from AurelienLourot/data-port-to-be-set
Support 'to-be-set' value for 'data-port'
2021-11-05 11:34:26 +01:00
Aurelien Lourot
50353b4625 Support 'to-be-set' value for 'data-port'
See https://github.com/openstack-charmers/openstack-bundles/pull/228
2021-11-04 14:59:23 +01:00
Corey Bryant
11f956b81b Skip failing ceph test
Skip test_ceph_pool_creation_with_text_file for releases >= victoria
until the issue is properly fixed.

This works around issue #647
2021-11-03 21:24:45 +00:00
Aurelien Lourot
7f516a1e7b Support OVN charms in automated OpenStack upgrade (#655)
* Support OVN charms in automated OpenStack upgrade

* Add ovn-dedicated-chassis to the list of control plane principal charms

Change-Id: I857513f130091e218a60eaf54eaf63527c00f5e5
2021-11-02 14:54:04 +01:00
Bartlomiej Poniecki-Klotz
873eb80264 Swift proxy remove devices test added.
Functional test for multi zone deployment was added.
The functional test removes the devices in region1 zone3 then uploads a new object. The check is to return object header data.
2021-10-29 15:19:51 +02:00
Bartłomiej Poniecki-Klotz
c5ff8dff5d Merge branch 'openstack-charmers:master' into master 2021-10-28 15:39:35 +02:00
Zhang Hua
eb3b3eb97c Merge branch 'master' into hm-port 2021-10-28 21:16:43 +08:00
Liam Young
14999ca1a1 Add two more auto initialise options (#664) 2021-10-28 11:16:58 +01:00
Aurelien Lourot
757250c30a Merge pull request #663 from gnuoy/add-opportunistic-vault-unlock
Add auto_initialize_opportunistic
2021-10-28 10:56:44 +02:00
Liam Young
5b2ef5df9b Add auto_initialize_opportunistic
Add a method which will init vault if its present and skip if it
is not. This allows much simpler tests.yaml if all test and
config steps are the same for TLS and non-TLS test cases apart
from initialising vault.
2021-10-28 08:08:19 +00:00
Aurelien Lourot
858c85c61f Merge pull request #659 from ajkavanagh/pin-pyparsing-for-aodhclient
Pin pyparsing to work with pinned version of aodhclient
2021-10-25 16:31:16 +02:00
Alex Kavanagh
ae50ed3199 Pin pyparsing to work with pinned version of aodhclient
aodhclient is pinned at 1.4.0 and pyparsing needs to be pinned at <
3.0.0 to work with.  Note zaza also pins pyparsing as many, many modules
use pyparsing and if zaza gets installed first ti might break pip
resolution.
2021-10-25 15:01:25 +01:00
Bartlomiej Poniecki-Klotz
da896ce00e Swift proxy remove devices test added 2021-10-22 12:41:29 +02:00
Aurelien Lourot
cc291b8400 Extend OPENSTACK_CODENAMES up to Yoga (#654)
This dict is used in the OpenStack upgrade tests in
order to automatically determine the next release and
set the openstack-origin accordingly.

Also taking the opportunity to extend neighboring
lists.
2021-10-18 09:18:39 +01:00
Chris MacNaughton
e4bc7c3866 Merge pull request #653 from coreycb/volume-v3
Favor the V3 volume endpoint for tempest config
2021-10-14 16:57:59 +02:00
Corey Bryant
860a9fd76c Favor the V3 volume endpoint for tempest config
If the V3 volume endpoint is available, use it for tempest testing.
The V2 volume endpoint is removed in OpenStack Xena, so this allows
us to use the latest available endpoint.
2021-10-14 14:51:31 +00:00
Zhang Hua
825cc8b266 Delete hm port on unit removal - part 3
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-10-12 19:11:38 +08:00
Billy Olsen
45b6352179 Merge pull request #651 from openstack-charmers/fix-cinder-lvm-test
Fix test for cinder-lvm
2021-10-08 09:28:58 -07:00
coreycb
6c834770ed Add neutron setup for VLAN provider network (#639)
This adds a new setup function that will setup a VLAN provider network.
It can be called by tests.yaml after basic_overcloud_network:
- zaza.openstack.charm_tests.neutron.setup.basic_overcloud_network
- zaza.openstack.charm_tests.neutron.setup.vlan_provider_overcloud_network
2021-10-08 16:05:36 +02:00
Luciano Lo Giudice
2a4ad7f74e Fix test for cinder-lvm
Since the charm is now marked stateful, the 'host' attribute
of a volume is mangled differently. This change makes the test
more robust against future changes as well.
2021-10-07 22:07:00 -03:00
Chris MacNaughton
aa3807dfcc Add a request timeout, and pass in cacert when talking to horizon (#649) 2021-10-05 16:10:46 +01:00
coreycb
fd510cf4b3 Merge pull request #648 from AurelienLourot/bug/1945991
Increase timeout on instance creation
2021-10-05 08:05:07 -04:00
Aurelien Lourot
eeebe68117 Increase timeout on instance creation
See https://bugs.launchpad.net/charm-nova-compute/+bug/1945991

Change-Id: I2e66e22258fce4b0fcd5443b104fad6a5a720b0b
2021-10-04 15:16:14 +02:00
Liam Young
d689fb91fc Add retries when accessing Ceph dashboard (#646) 2021-10-04 12:16:43 +01:00
Chris MacNaughton
c2a32276ff Merge pull request #645 from ajkavanagh/pin-coverage
Pin coverage < 6.0.0 for Py3.5 support
2021-10-04 07:50:30 +02:00
Alex Kavanagh
8e94f4bcd4 Pin coverage < 6.0.0 for Py3.5 support
Coverage dropped py3.5 suppot at 6.0.0 and zaza.openstack.tests
currently support Xenial.
2021-10-03 17:27:18 +01:00
Liam Young
6918f9ebb3 Extend Ceph Dashboards tests to check ceph services are registered (#643) 2021-10-03 16:13:50 +01:00
Chris MacNaughton
d6dcf4fbd4 Remove duplicated code in Dashboard setup (#644) 2021-10-03 15:54:05 +01:00
Billy Olsen
a9d233da46 Merge pull request #626 from openstack-charmers/cinder-lvm-tests
Implement the tests for the cinder-lvm charm
2021-09-29 10:55:30 -07:00
Chris MacNaughton
937e38e0ae Merge pull request #638 from AurelienLourot/typos
Fix various typos
2021-09-27 09:26:18 +02:00