Commit Graph

10 Commits

Author SHA1 Message Date
Felipe Reyes
acaeb62a4d Stop retrying if LB provisioning status reached ERROR (#682)
* Stop retrying if LB provisioning status reached ERROR

The method `wait_for_lb_resource()` retries for 15m while the load
balancer could have reached to ERROR during the provisioning in the
first few minutes, this approach makes the testing take longer for no
reason.

This change makes the ERROR state in provisioning_status final and
abort raising a ValueError() exception.

More details of the provisioning_status possible states can be found at:
https://docs.openstack.org/api-ref/load-balancer/v2/#provisioning-status-codes

* Use LoadBalancerUnexpectedState and LoadBalancerUnrecoverableError.

Drop the (re-)use of AssertionError and ValueError to identify when a
load balancer status is in a state where the test needs to retry or
break and fail respectively.

This change introduces 2 new exceptions to be explicit of what the code
is trying to do.

- LoadBalancerUnexpectedState is raised when the status of the load
  balancer is in a state different from the one requested by the caller,
  but said state can be considered as transitory.
- LoadBalancerUnrecoverableError is raised when the status of the load
  balancer is in ERROR state and said state is final for the
  proviniong_status property, hence retrying only delays the failure.
2022-03-08 13:11:51 +00:00
Alex Kavanagh
21ff72926b Additions for the Octavia Upgrade tests
These are additions to make the Octavia Upgrade tests in the
charmed-openstack-tests repository a little easier to specify.  Also
depends on the zaza change [1].

[1] https://github.com/openstack-charmers/zaza/pull/442
2021-04-29 19:25:34 +01:00
Chris MacNaughton
bdd0bca953 Merge pull request #246 from ajkavanagh/cinder-ceph-additional-tests
Migrate 499 cinder-ceph test to zaza
2020-05-20 09:02:44 +02: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
Alex Kavanagh
3de6251316 Fix broken code and collect errors on ceph commands 2020-05-13 14:30:19 +01:00
Liam Young
5927878a03 Tidyup mojo cert unseal 2020-02-04 10:10:50 +00:00
James Page
c76b62a8a8 Merge pull request #57 from rodrigogansobarbieri/bug/1836408
Add ceph-proxy cinder-ceph setup test
2019-10-03 14:40:58 +01:00
Rodrigo Barbieri
7b0de8d34d Add ceph-proxy cinder-ceph setup test
This change adds a functional test that verifies
ceph-proxy has successfully created a cinder-ceph
restricted ceph pool.

Related-Bug: lp#1836408
2019-10-02 10:48:54 -03:00
Alex Kavanagh
1337531926 Create specific policyd override for keystone 2019-09-25 14:43:10 +01:00
Chris MacNaughton
dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00