Commit Graph

29 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
Liam Young
0fe56cbc33 Switch pre_deploy_certs from OS_ to TEST_ vars 2020-07-03 10:48:12 +00:00
Liam Young
3a6002b61f Port aodh server alarm test from mojo
Port over the aodh alarm test from mojo. Mojo source is here: *1

*1: https://github.com/openstack-charmers/openstack-mojo-specs/blob/master/helper/tests/validate_aodh.py
2020-05-30 16:56:25 +00:00
Liam Young
8434827f5c Add methods for creating pre-deploy certs 2020-05-27 10:31:14 +00:00
Alex Kavanagh
215e5accef Add retries to instance pinging
It's a bit too optimistic to expect an instance to respond to the first
ping.  This patch gives the instance up to 8 retries with increasingly
lengthened waits to respond to a ping.  This should help with Juju
storage backed nova instances.

Fixes: #265
2020-05-17 21:19:14 +01:00
Liam Young
52ee23927c Make masakari wait longer for hosts to online
A recent functional test of masakari monitors failed due to a
tenacity retry missing the host coming online by 10s, so wait
longer. FWIW that this affects the post-test cleanup rather than
the test itself.

*1 https://openstack-ci-reports.ubuntu.com/artifacts/test_charm_pipeline_func_full/openstack/charm-masakari-monitors/726808/1/5655/consoleText.test_charm_func_full_8812.txt
`
2020-05-15 13:54:01 +00:00
Liam Young
9df7157989 Masakari testing fixes
* Add method for deleteing pacemaker nodes.
* Due to LP #1874719 use above to delete node1
* During test cleanup the tests re-enable hosts from a masakari pov,
  if that host still has outstanding notifications it will fail so
  retry the enable.
* pacemakerd process name has changed on focal so account for that
  when killing it.
2020-04-25 09:52:53 +00: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
Liam Young
9a3a716f6f Remove rogue single quote 2020-03-12 06:42:14 +00:00
Liam Young
f1168aa36d Fixes for masakari tests
* Deal with hypervisors now using fqdn
* Skip instant restart tests until bug is resolved
2020-03-10 10:21:14 +00:00
David Ames
b5e250513b Fix for NDR testing race condition
Previous attempts to fix LP Bug#1784083 added a workaround (commit
820ed808) which is being removed here.

The root cause seems to be upstream in the dragent. It may never have
been envisioned to run the agent by itself the way the charm does.

So that even if neutron-api completes its amqp relation first,
neutron-dynamic-routing can still see
oslo_messaging.exceptions.MessagingTimeout errors. Some operation
must occur against neutron before dragent is truly ready. i.e. some post
deploy openstack command. So it is outside the purview of the charm.

This change adds a service restart late.

Partial-Bug: #1841459
2020-01-21 10:07:01 -08:00
Chris MacNaughton
a5b618d08b refactor tests a bit 2019-11-07 15:13:06 +08:00
Frode Nordahl
675b109d54 Optionally limit number of units to get port attached
This is useful for validating deployments with OVN where it is not
required to have external networking attached to every chassis.

Any chassis that does not have external networking directly
attached will forward traffic destined for the external network
through a tunnel to a chassis that does.
2019-11-02 17:16:39 +01:00
Frode Nordahl
7d1d04a742 Deduce whether DVR is enabled from neutron-api config
Add helper to detect presence of OVN in deployment
2019-11-01 06:39:17 +01:00
David Ames
addee58dd8 Do set DNS on overcloud subnets
It turns out we do need to set DNS on the overcloud subnet. It should be
the .2 of the CIDR under test and not the _admin_net's .2. There seems
there are security group rules in the way.
2019-10-22 16:12:26 -07:00
David Ames
a207fea389 Stop setting external DNS
Use neutron DNS by not setting a DNS server on the subnet.
Also correct TEST_NAME_SERVER for potential future use.
2019-10-21 16:08:35 -07:00
Frode Nordahl
959d81370a Merge pull request #64 from gnuoy/aodh
Add support for aodh tests
2019-09-26 17:20:17 +02:00
Liam Young
d7e2976f22 Merge pull request #62 from openstack-charmers/add_plumb_dataport
add plumb_dataport_method
2019-09-26 13:25:21 +01:00
Andrew McLeod
028602f365 change terminology from plumb 2019-09-26 13:47:19 +02:00
Liam Young
2a15116868 Add aodh api test 2019-09-25 17:44:14 +00:00
Andrew McLeod
ab89054847 enable guest interface plumbing for bionic-queens and later 2019-09-25 16:08:20 +02:00
Andrew McLeod
19306d6600 WIP - add plumb_dataport_method 2019-09-24 16:25:53 +02:00
Liam Young
022102ab91 Add security actions 2019-09-24 08:19:19 +01:00
Liam Young
8b60351be5 Fix ceilometer action 2019-09-22 07:28:08 +01:00
Liam Young
274b644c95 First cut 2019-09-20 19:09:02 +01:00
Frode Nordahl
b036e5d487 Allow passing userdata when launching instance (#22)
With help from ``cloud-init`` this allows a test author to tailor
guests for use in payload testing.
2019-06-21 09:02:03 +02:00
Ramon Grullon
0c32e1b0d9 added ceph-proxy tests 2019-05-30 14:44:16 +00:00
Chris MacNaughton
dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00