Commit Graph

100 Commits

Author SHA1 Message Date
Alex Kavanagh
17bad029a5 Fix network setup for mojo
A recent change introduced a configuration option in the
./tests/test.yaml file (default location) which allows juju wait to be
used rather than waiting on various workload messages.  This,
unfortunately, breaks mojo tests as they don't use a tests.yaml.  This
change refactors that code, and enables a 'use_juju_wait' to be passed
into the relevant functions, and a new command line option (default
true) to disable using juju wait.
2020-09-15 09:55:09 +01:00
David Ames
23b24a5501 Merge pull request #365 from openstack-charmers/ovn-charm
Add OVS to OVN migration tests
2020-09-11 08:48:20 -07:00
Frode Nordahl
5a10779e45 Re-order checks in networking auto-detection
To support OVS to OVN migration checks we want the basic overcloud
configure job to set up N-OVS and/or N-GW when present and the
OVN pre migration configure job will copy the configuration for us.
2020-09-08 16:11:39 +02:00
Frode Nordahl
8f2e3463cc Allow add_interface_to_netplan to find ovn-dedicated-chassis units 2020-09-08 12:38:39 +02:00
Chris MacNaughton
c75f2fcb6d Ensure that zaza-openstack-tests can talk to an IPv6 Keystone
When configuring the address to use to talk to Keystone,
the format_addr helper should be used to ensure that an
IPv4 or IPv6 address can be correctly handled.
2020-09-08 11:11:13 +02:00
Frode Nordahl
4d8c509133 Make the use of juju_wait configurable
For compatibility with existing scenario tests the
`configure_gateway_ext_port` helper currently make use of
`juju_wait` when configuring the deployed cloud.

This does not work well if the model you are testing has
applications with non-standard workload status messaging.

Allow to override the behaviour through config step options.
2020-09-07 10:35:18 +02:00
Alex Kavanagh
59d68e49a5 Ensure that the tests directory exists for the local cacert (#373)
A recent change to allow multiple zazas to run at the same time fixed
the cacert file into a local 'tests/' directory.  Unfortunately, that
doesn't exist for every environment where zaza runs (e.g. mojo) and so
this patch ensures that the path exists prior to trying to download into
it.
2020-07-23 15:07:21 +02:00
Liam Young
59b6c1bd35 Merge pull request #341 from openstack-charmers/lourot/keystone
Minor improvements to keystone tests
2020-07-16 13:26:09 +01:00
Andrew McLeod
a670e274fa add image arch and properties specification 2020-07-15 16:56:06 +02:00
Aurelien Lourot
0287664d92 Fix paramiko.ssh_exception.BadAuthenticationType (#355)
Fix paramiko.ssh_exception.BadAuthenticationType when SSHing to a new Ubuntu instance.

Note that paramiko still has a few issues around authentication:
https://github.com/paramiko/paramiko/pull/1106/files

This paramiko PR also shows that password='' isn't the same as
password=None
2020-07-09 16:35:00 +02:00
Liam Young
a829b372e0 Use model tmpdor for key storage
Use the model specific tmp dir to store the test ssh private key.
This avoids the key being overwritten in CMR tests.

Depends-On: https://github.com/openstack-charmers/zaza/pull/371
2020-07-07 09:56:25 +00:00
Frode Nordahl
520830905b Increase wait time for cloud_init_complete
We often see test runs being killed prematurely due to slow to
complete cloud-init step on a loaded CI cloud.

Related issue #311
2020-07-02 13:03:42 +02:00
Aurelien Lourot
670292c683 Remove more deprecation warnings 2020-07-02 12:11:23 +02:00
Aurelien Lourot
defa4c542c Merge pull request #278 from ajkavanagh/fix-auth-domain
Fix broken dictionary assignment for domain
2020-07-01 16:16:43 +02:00
Frode Nordahl
537473ad3a Store local overcloud CACERT copy in relative path
At present the overcloud CACERT is copied to /tmp and as such it
is not possbile to run multiple tests at once without them
stepping on each other.

Store the copy in a path relative to where the test is executed,
in line with how the SSH keys are stored etc.

Fixes #331
2020-06-19 09:50:28 +02:00
Frode Nordahl
95eb158e7e Support undercloud running TLS (#330)
Consume the `OS_CACERT` environment variable when setting up
undercloud auth.

Fixes #329
2020-06-19 08:28:18 +02:00
Corey Bryant
de893b66b8 Drop OS_ prefix from OS_TEST_HTTP_PROXY
As part of this change also switch to using deployment_env.
2020-06-12 02:35:35 +00:00
Frode Nordahl
8c747390d3 Fail early when no units found for external port creation
Fixes #298
2020-05-28 13:24:14 +02:00
Alex Kavanagh
21655a3741 Fix broken dictionary assignment for domain 2020-05-16 18:52:35 +01:00
Frode Nordahl
78e992ac87 Merge pull request #260 from ajkavanagh/multi-lts-image-for-octavia
The octavia tests require multiple LTS images
2020-05-14 06:24:24 +02:00
Frode Nordahl
8edff98f94 Add OVN charm tests 2020-05-08 12:34:21 +02:00
Alex Kavanagh
c8ea324ccb Add focal template to image list 2020-05-07 20:09:02 +01:00
Aurelien Lourot
59ec82f542 Make ssh_test() more robust 2020-05-07 14:25:47 +02:00
James Page
db0fff6480 triliovault: Check restore completes
Ensure that the oneclick restore process completes as part
of the snapshot test case.

Drop use of api_version in get_domain_id utility.
2020-05-05 12:56:03 +01:00
James Page
eb0cba9efc Add zaza tests for TrilioVault
Add setup and tests for trilio-{data-mover,dm-api,wlm} charms.

Add attach_volume utility to attach cinder volumes to nova servers.
2020-05-04 14:46:48 +01:00
Aurelien Lourot
8e9ecc53e8 Openstack -> OpenStack 2020-04-16 18:59:07 +02:00
Aurelien Lourot
83246a9305 Print stderr when failing to ping new instance 2020-04-14 14:50:31 +02:00
Frode Nordahl
f35da80f27 Unpin flake8, fix lint
Add Python 3.8 env in Travis CI test matrix.

At present the pinning of flake8 disallows running of lint on
Python 3.8 systems.

Update flake8 ignore-list to ignore W504 instead of W503, the PEP
guidance is that either is ok, but there must be local consistency.

There are more occurences of binary operator before line-break
than after in this repository, and we have also chosen to ignore
W504 in most of our other repositories.
2020-04-07 11:14:49 +02:00
Frode Nordahl
1ece576981 radosgw: Pass local CA cert to client when relevant 2020-03-23 10:58:23 +01:00
Aurelien Lourot
0cee4c90bb Fix typo 2020-03-05 12:12:08 +01:00
Adam Dyess
fd12751b01 Merge branch 'master' of github.com:openstack-charmers/zaza-openstack-tests into bug/1828424 2020-02-06 16:23:26 -06:00
Frode Nordahl
1398583e07 ovn: Update bridge configuration code
After power user feedback we want to change how interfaces are
attached to bridges on the OVN charms.

Ref: openstack-charmers/charm-layer-ovn#6
2020-02-05 13:20:55 +01:00
Adam Dyess
d5ee2106d4 port designate amulet tests to zaza 2020-02-04 16:14:35 -06:00
Adam Dyess
b88bccd526 Successful tests 2020-02-04 14:04:42 -06:00
Adam Dyess
9d2369f576 designate-bind zaza tests 2020-02-04 12:58:55 -06:00
Liam Young
51c2ec89b0 Fix spelling 2020-02-04 13:36:44 +00:00
Liam Young
ee21886a8c Fix order in UPGRADE_SERVICES 2020-02-04 13:33:28 +00:00
Liam Young
49a01c8318 Merge pull request #143 from thedac/use-netplan-for-ovn
Use Netplan for OVN
2019-12-11 19:33:03 +00:00
David Ames
407487ca66 Use Netplan for OVN 2019-12-10 16:47:46 -08:00
David Ames
23e0dd5325 Catching StopIteration is not necessary 2019-12-10 10:29:57 -08:00
David Ames
40e9c86df4 Test the condition not the implementation 2019-12-10 08:36:22 -08:00
David Ames
1a4e02e98c Fix bug 2019-12-06 15:02:57 -08:00
David Ames
ad9eecc49e Pick just one machine 2019-12-06 14:35:37 -08:00
David Ames
1314c6af2f Don't use StopIteration 2019-12-06 13:42:09 -08:00
David Ames
4fd543a0fe Hanlde new StopIteration for iterators 2019-12-06 12:01:38 -08:00
Liam Young
bd903fa325 Add docstring entry 2019-11-25 17:41:29 +00:00
Liam Young
9c34bc42da Expose model_name option in get_keystone_session_from_relation 2019-11-25 17:40:03 +00:00
Liam Young
748915646a First set of updates to set model name explicitly 2019-11-25 10:49:50 +00:00
Frode Nordahl
1689a4452e net: Add support for DVR deployments with NGW 2019-11-12 15:33:01 +01:00
Alex Kavanagh
5956b0b163 Merge pull request #117 from openstack-charmers/bug/1851710
Increase number of attempts for ping_response
2019-11-11 09:12:42 +00:00