Commit Graph

1734 Commits

Author SHA1 Message Date
Aurelien Lourot
20bd5dfb59 Remove obsolete comment
The automatic corosync cleanup on Juju >= 2.8 turned out
not to work and has been removed from charm-hacluster.
The 'update-ring' action is now always needed.
2021-02-25 13:05:30 +01:00
Aurelien Lourot
8c819814fb Don't wait for principle to get back to active 2021-02-19 16:58:32 +01:00
Aurelien Lourot
c00aa18ffb Assert that corosync considers all nodes to be online 2021-02-18 16:56:08 +01:00
Aurelien Lourot
f598eb93c2 Improve comments 2021-02-18 10:38:45 +01:00
Aurelien Lourot
1c4d2e05af Let test_930_scaleback remove 2 units instead of 1 2021-02-18 09:51:00 +01:00
Aurelien Lourot
b245fea27f Merge branch 'master' into hacluster-scaleback 2021-02-10 11:23:45 +01:00
Alex Kavanagh
2ef404be75 Merge pull request #502 from openstack-charmers/lourot/cryptography-rust
Pin cryptography<3.4
2021-02-10 09:47:35 +00:00
Aurelien Lourot
c327e4c3a2 Pin cryptography<3.4
Newer versions require a Rust compiler to build.
2021-02-10 10:22:13 +01:00
Aurelien Lourot
2c9459bf1f Merge branch 'master' into hacluster-scaleback 2021-02-08 15:20:53 +01:00
Frode Nordahl
4cbf70dd5e octavia: Configure SSH key to allow debugging of Amphorae (#495) 2021-02-04 08:56:22 +01:00
Frode Nordahl
2ab9cebbf6 Use per-model tmp-dir to store local copy of CA cert (#493)
The current approach of storing the deployment CA certificate in
the 'test/' relative path does not allow for executing tests for
multiple targets from the same environment.

We have previously moved (7a90110) the local copy of the SSH
private key for similar reasons.

Remove the global constants as we cannot build them without making
function calls, and we'd rather avoid doing that at module import
time. Code using the location of the local CA certificate has
already been changed to use helper functions.
2021-02-04 08:48:17 +01:00
Alex Kavanagh
83975fb580 Merge pull request #497 from Gleland/zaza_utils_rename
Zaza_juju rename
2021-02-03 20:16:29 +00:00
Garrett Thompson
7878523e34 Rename zaza_juju to be consistent with all of repo 2021-02-03 18:01:28 +00:00
Garrett Thompson
6e089feb9c Merge pull request #1 from openstack-charmers/master
merge with upstream
2021-02-03 09:45:02 -08:00
Alex Kavanagh
77583d53fa Merge pull request #496 from Gleland/ceph_deprecation_redirect
Replace get_relation_from_unit for ceph test
2021-02-03 08:16:32 +00:00
Garrett Thompson
33ab875eb2 Replace get_relation_from_unit for ceph test 2021-02-02 09:58:13 -08:00
Alex Kavanagh
9d54eb416e Merge pull request #494 from Gleland/deprecation_warnings_designate
Replace get_relation_from_unit for designate test
2021-02-02 14:56:33 +00:00
Garrett Thompson
ea03e36273 Replace get_relation_from_unit for designate test 2021-02-01 15:50:31 -08:00
Aurelien Lourot
1b15ce22a5 Merge pull request #481 from gnuoy/bug/1706699
Run update-status before manila api test
2021-02-01 14:55:19 +01:00
Aurelien Lourot
5b8c1eccae Merge pull request #491 from gnuoy/bug/1896603
Skip OVN provider octavia test on Victoria
2021-01-30 16:22:45 +01:00
Liam Young
c4691ef1c7 Skip OVN provider octavia test on Victoria
The OVN provider octavia test on Victoria is currently broken due
to Bug #1896603. Until it is fixed skip the test.
2021-01-29 13:51:25 +00:00
Aurelien Lourot
17e8e57163 Merge pull request #489 from openstack-charmers/bug/1852221-premier-encore
Add workaround for OVS-OVN migration on Groovy
2021-01-29 12:04:54 +01:00
Frode Nordahl
dc886f65d5 Add workaround for OVS-OVN migration on Groovy
The root of the issue is in Open vSwitch itself and it is not
easilly workaroundable in the charms.

We'll pursue a upstream/package level fix.
2021-01-28 10:25:52 +01:00
Aurelien Lourot
d967231ad3 Merge branch 'master' into bug/1706699 2021-01-26 09:45:27 +01:00
David Ames
91924c5caf Merge pull request #488 from gnuoy/issues/487
Handle change of CA cert.
2021-01-25 11:45:34 -08:00
Liam Young
93a9aff927 Fix context manager mock 2021-01-25 11:47:42 +00:00
Liam Young
5be8fc3771 Fix docstring and bug 2021-01-25 11:41:39 +00:00
Liam Young
e047150f5b Add unit tests 2021-01-25 09:21:00 +00:00
Liam Young
401829f0a7 Code tidy and docstrings 2021-01-24 17:24:20 +00:00
Liam Young
d637646a9e Fix typo 2021-01-24 16:19:45 +00:00
Liam Young
24fbc068c9 Correct args to block_until_ca_exists 2021-01-24 15:27:06 +00:00
Liam Young
a20733cd14 Refactor ca functions 2021-01-24 14:31:29 +00:00
Aurelien Lourot
42aa08ca40 Merge pull request #485 from gnuoy/bug/1911923
Fix policyd call to _login
2021-01-24 10:11:17 +01:00
Liam Young
a828774c48 Handle change of CA cert.
Closes issue #487
2021-01-23 16:17:54 +00:00
Liam Young
44adc1fb94 Fix policyd call to _login
8681b023 changed the signature of _login but did not update the
policyd test. This was not immediately picked up because the
policyd test is skipped before groovy due to Bug #1880959

Closes-Bug: #1911923
2021-01-19 10:42:20 +00:00
Aurelien Lourot
ca242ae95d Merge pull request #484 from fnordahl/update-nova-security-checklist
nova: Conditional security checklist based on presence of vault
2021-01-18 13:51:11 +01:00
Frode Nordahl
35840a66d6 nova: Conditional security checklist based on presence of vault
The current test expects Nova to never have TLS connections, let's
expect them to be there whenever vault is present.

Remove the 'is-volume-encryption-enabled' assertion as it is not
a property of the Nova security checks. This was previously masked
by the fact that action would always fail due to TLS tests not
being enabled for any bundles.
2021-01-16 22:36:44 +01:00
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
Liam Young
cdba5b64ca Run update-status before manila api test
The manila charm contains a 'band-aid' for Bug #1706699 which relies
on update-status to bring up services if needed. When the tests run
an update-status hook might not have run so services may still be
stopped so force a hook execution.
2021-01-12 13:13:36 +00: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