charm-glance/unit_tests
Ionut Balutoiu 7a69693752 Fix race condition with the object-store relation
The `CONFIGS.write(GLANCE_SWIFT_CONF)` is missing in the object-store
hook. This config file is used when the `swift` backend is enabled.

This bug is only encountered on some deployments, because there are multiple
places where `CONFIGS.write_all()` is called.

If the `object-store` relation is established, and another hook calls
`CONFIGS.write_all()`, this problem wouldn't reproduce. However, if
`object-store` relation is executed last, this issue will pop up.

Closes-Bug: #1915300
Change-Id: Ie52b18fc4dc637dbeec5ecfb8d5930a24c5f72cf
2021-03-19 22:58:47 +00:00
..
__init__.py Update to run under Python 3 2018-08-01 14:11:56 +02:00
test_actions_openstack_upgrade.py Unpin flake8, fix lint 2020-08-28 16:11:18 +02:00
test_actions.py Enable Bionic as a gate test 2018-05-11 14:29:27 -07:00
test_glance_contexts.py Add multi backend support 2020-09-14 22:19:22 +00:00
test_glance_relations.py Fix race condition with the object-store relation 2021-03-19 22:58:47 +00:00
test_glance_utils.py Waiting state if broker request is incomplete 2020-10-15 14:34:57 +00:00
test_utils.py Fix lint in unit test 2018-11-01 14:55:23 -05:00