Commit Graph

257 Commits

Author SHA1 Message Date
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
Frode Nordahl
3b6a2de1ca octavia: Conditionally use DVR specific flags
The current test code for octavia requires DVR extensions to be
present on the Neutron API server.

We need to conditionally enable this based on enabled extensions to
allow the test to operate on multiple deployment configurations.
2020-01-17 16:07:00 +01:00
David Ames
7a5bbac746 Merge pull request #149 from arif-ali/add_neutronopenvswitvh
Add Neutron OpenvSwitch Functional Tests
2020-01-15 16:20:07 -08:00
0d47a4028a Add Neutron OpenvSwitch Functional Tests 2020-01-14 21:29:24 +00:00
Chris MacNaughton
c48801d202 Allow us to retry the Manila client connection
It is possible that Manila looks ready before it is,
so we should retry a bit to ensure that the APi service
is really down before giving up
2020-01-13 15:26:04 +01:00
Chris MacNaughton
ccec8f0c68 Add a short exponential retry to the mount setup bits 2020-01-10 11:55:32 +01:00
Liam Young
7995199136 Run complete-cluster-series-upgrade
After perfomring a series upgrade on rabbitmq run
complete-cluster-series-upgrade
2020-01-09 20:17:19 +00:00
David Ames
9016526c4d Merge pull request #148 from xiywang/port_hacluster
Port Hacluster tests from Amulet to Zaza
2019-12-19 15:17:34 -08:00
Xiyue Wang
574531aaa9 Port hacluster tests from Amulet to Zaza
Signed-off-by: Xiyue Wang <celia.wang@canonical.com>
2019-12-19 23:06:31 +00:00
David Ames
14d1c47ce4 Merge pull request #147 from cjohnston1158/bug/1710208
Add Zaza tests for HAProxy expose functionality.
2019-12-18 10:44:57 -08:00
Chris Johnston
50f59911dd Add docstring 2019-12-18 00:37:07 +00:00
Chris Johnston
7a2c0fb651 Additional tweak 2019-12-17 22:19:01 +00:00
Chris Johnston
9fc0602c64 Updates per review 2019-12-17 21:19:12 +00:00
Chris Johnston
2f88a94f97 Add Zaza tests for HAProxy expose functionality.
Partial-Bug: #1710208
2019-12-17 16:56:24 +00:00
Jose Guedez
55fc718f98 Move tests (400/401) from neutron-gateway to neutron-api 2019-12-11 15:05:12 +11:00
Jose Guedez
f79f2fb54c NeutronGatewayTest: refactor test 401 to use tenacity 2019-12-11 14:05:37 +11:00
Jose Guedez
79bb61243f Use a single security test class for neutron-api and neutron-gateway 2019-12-11 12:52:13 +11:00
Jose Guedez
99eed41697 Ported neutron-gateway tests to zaza (920) 2019-12-10 16:19:40 +11:00
Jose Guedez
a3cf1bf7e7 Ported neutron-gateway tests to zaza (400/401) 2019-12-10 16:19:20 +11:00
Jose Guedez
2704fe654c Ported neutron-gateway tests to zaza (500) 2019-12-09 17:33:25 +11:00
Jose Guedez
7d23285ce0 Ported neutron-gateway tests to zaza (900/910) 2019-12-05 16:22:29 +11:00
Alex Kavanagh
5b99a8a1ae Merge pull request #137 from gnuoy/swift-gr
Add Swift Global Replication Tests
2019-12-04 12:05:36 +00:00
Alex Kavanagh
4255835c48 Merge pull request #140 from openstack-charmers/feature/manila-tests
Fix mis-named variable
2019-12-04 10:53:45 +00:00
Chris MacNaughton
bb675982b6 Fix mis-named variable 2019-12-04 11:32:17 +01:00
Liam Young
f1092b0811 Doc string fixes 2019-12-04 10:24:04 +00:00
Alex Kavanagh
d4cc35bd94 Merge pull request #125 from openstack-charmers/feature/manila-tests
Add manila API test
2019-12-04 09:48:29 +00:00
Chris MacNaughton
a6bde71683 remove unnecessary class variables 2019-12-04 10:19:53 +01:00
Chris MacNaughton
8b40d28ad1 address tinwood's comments 2019-12-03 17:18:22 +01:00
Frode Nordahl
2961196333 neutron: Retry operation after change of config
There is a race between `neutron-api` charm readiness and actual
API readiness.

Fixes #138
2019-11-29 16:39:50 +01:00
Liam Young
d2904e228d Add Swift Global Replication Tests 2019-11-29 11:47:43 +00:00
Chris MacNaughton
5a65e05c37 Merge pull request #136 from gnuoy/make-OpenStackBaseTest-multimodel-friendly
Make OpenStackBaseTest model_alias aware
2019-11-29 12:30:34 +01:00
Liam Young
e63fb86df2 Make OpenStackBaseTest model_alias aware 2019-11-29 11:04:53 +00:00
Andrew McLeod
d004a4152d rename cinder backup swift to cinder backup swift proxy (#134) 2019-11-28 16:45:44 +01:00
Liam Young
5e9440dd97 Define run_resource_cleanup in OpenStackBaseTest so all sub-classes inherit it 2019-11-28 15:17:32 +00:00
Liam Young
b6c649c00b Guard against run_resource_cleanup being unset
A test may not call the base class setup so may be missing
run_resource_cleanup in which case teardown will fail. Guard against
that and default to False.
2019-11-28 14:59:46 +00:00
Liam Young
e839a19321 Flip default for cleanup to False 2019-11-27 10:29:06 +00:00
Liam Young
39cb8ea0cc Add support for tests defining resource_cleanup
Add support for tests having a resource_cleanup method. Whether this
is run or not is dictated by the class variable
'run_resource_cleanup'. By default this will be True but any test
can switch it to False so that resources created by the tests are
preserved. Helpful for debugging failures.

FWIW future work might include automatically disabling resource
cleanup if a test fail is detected.
2019-11-27 09:05:01 +00:00
Frode Nordahl
b871907e84 neutron: Do not run tear down on test failure
Fixes #120
2019-11-27 08:58:03 +01:00
Frode Nordahl
3f7a9cff44 Merge pull request #128 from sahid/pause-resume
vault: add pause/resume test case
2019-11-25 17:38:18 +01:00
Sahid Orentino Ferdjaoui
70282da7c1 vault: add pause/resume test case
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-11-21 16:38:29 +00:00
Alex Kavanagh
d5f8f762e8 Fix up octavia test to work with refactored _rule after openstack-dashboard test merge 2019-11-21 14:55:28 +00:00
Alex Kavanagh
b00e570e57 Add octavia policyd tests
Providing a policy.d test for Octavia is a bit more complicated as the
obvious policy is just to prevent listing of load balancers;
unfortunately it doesn't work in the upstream, as the code doesn't check
the policy in octavia.  However, "showing" an load balancer does involve
a policy check and so the test is more complicated than 'normal' policy
tests in that a resource is created, then the policy override is checked
and then the resource is deleted.
2019-11-21 14:50:57 +00:00
Alex Kavanagh
4ac88e92bb Fix nit re: copy/paste comment 2019-11-21 13:04:14 +00:00
Alex Kavanagh
1b5613ac00 Fix pep8 issue 2019-11-21 09:22:57 +00:00
Alex Kavanagh
28db85e06c Fix more policyd tests so that they can work o-s dashboard
The difference in how openstack-dashboard and every other service uses
policies continues to create special cases.  This set of fixes deals
with some more of those differences.
2019-11-20 17:23:26 +00:00
Alex Kavanagh
c0db2def3b Modified policyd tests to support openstack-dashboard
* Addition of the (incomplete) openstack-dashboard test.
* Modification of other charm policyd override tests to support
  multi-file policy overrides resource ZIP.
2019-11-20 17:23:26 +00:00
Alex Kavanagh
8f09ed84d5 Merge pull request #127 from thedac/reboot-cluster-from-complete-outage
Reboot cluster from complete outage tests
2019-11-19 20:27:48 +00:00
David Ames
af64a75fd7 Use model.run_action_on_leader
Address reveiw requests
Use model.run_action_on_leader
Log action.data on action failure
2019-11-19 11:51:04 -08:00
David Ames
9c75b89273 Reboot cluster from complete outage tests
Testing for cold start scenario for MySQL InnoDB Cluster.
2019-11-18 16:46:08 -08:00
Chris MacNaughton
f0be9b5136 Add manila API test 2019-11-15 15:59:39 +01:00