CI fault due to racy test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph RADOS Gateway Charm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Seeing a fault in CI when exercising ceph-radosgw where TLS config fails in a vault-enabled model because Apache is missing a certificate
This seems due to a race between the test and setting up a cert via vault
Details:
The test_005_
We don't have certificates yet. On the ceph-radosgw unit in syslog we can see:
Apr 9 21:48:47 juju-afc113-
Apr 9 21:48:47 juju-afc113-
Apr 9 21:48:47 juju-afc113-
Apr 9 21:48:47 juju-afc113-
Apr 9 21:48:47 juju-afc113-
Apr 9 21:48:47 juju-afc113-
Apr 9 21:48:48 juju-afc113-
Apr 9 21:48:48 juju-afc113-
Apr 9 21:48:48 juju-afc113-
First the test method configures virtual hosting buckets and public hostname:
2024-04-09 21:49:47 INFO juju.worker.
The test fails in ceph/tests.py:1267 with an SSL error:
2024-04-09 21:49:51.854202 | focal-medium | 2024-04-09 21:49:51 [INFO] urllib3.
Only then the vault relation kicks in:
2024-04-09 21:49:52 DEBUG juju.worker.
...
2024-04-09 21:49:55 DEBUG unit.ceph-
And apache succeeds:
Apr 9 21:50:06 juju-afc113-
CI artefacts:
https:/
Fixed in https:/ /github. com/openstack- charmers/ zaza-openstack- tests/pull/ 1197