Ensure that the CA cert for the deployment is passed to
requests when retrieving stream data from swift.
Refresh the product catalog entry on each attempt to retrieve
stream data as the URL will update once data was been written
to the swift endpoint in the deployment.
Retry on KeyError and drop number of retry attempts
Add a log message to detail URL being used for product-stream data
Log return data from streams endpoint
Fixup endpoint resolution
Since commit c98aa001f9, there are some
missing changes.
This stops the API check on Ocata when gnocchi is in play. Gnocchi must
be in play for Ocata but heretofore has not been.
charm-cinder supports units with a limited number of services running
(api/scheduler on a unit, volume service on another one). Functional
tests wait for all services to be restarted when a subset of them should
be observed.
Partial-Bug: #1779310
During some runs of functional testing, swift global replication would
only have 2 copies rather than 3 of the object that was just written.
This patch attempts to resolve the race condition and also adds ordering
to more recently added tests.
Closes-Bug: #1882247
Use action to complete initial image sync for the gss charm.
This avoids races where the images end up in the wrong locations
and allows the tests to actually know when images should be
discoverable.
Update tests to wait for at least four images (20.04 is synced
by default).
* Wait until a share status reaches 'available'
It appears to be that the test_manila_share test case does not wait
until a share becomes available which results in failures like this:
manilaclient.common.apiclient.exceptions.BadRequest: New access rules
cannot be applied while the share or any of its replicas or migration
copies lacks a valid host or is in an invalid state. (HTTP 400)
(Request-ID: req-8d609e13-9a80-428b-953b-17ab8d0e0cae)
Fixes: #309
Tidy up hacluster tests. In the process this fixes the error:
```
UnboundLocalError: local variable 'primary_status' referenced before assignment
```
This was caused by libjuju now returning an empty dict rather than
None when listing a subordinates units.