charm-cinder-ceph/unit_tests
Syed Mohammad Adnan Karim 18cbf7f6e1 Update hook to remove old ceph.conf alternatives
When adding ceph-mon relation to cinder, the charm installs ceph.conf
with the update-alternatives via cinder_utils.resource_map().
However when the relation is removed, the alternative isn't cleaned up.
This can cause issues if installing a cinder-ceph subordinate charm.
The cinder-ceph charm also installs a ceph.conf alternative that will
point to the leftover ceph.conf installed by the ceph-mon charm.

Added remove_alternative() in ceph-relation-broken hook to ensure
that leftover ceph.conf alternatives is removed upon relation removal.

Change-Id: I308e62a626f31eb8ef690a09035fe3908920ccc9
Closes-Bug: 1778084
2018-11-26 19:04:14 +00:00
..
__init__.py Re-license charm as Apache-2.0 2016-07-01 17:22:51 +01:00
test_cinder_contexts.py Enable discard 2018-09-28 10:29:30 +01:00
test_cinder_hooks.py Update hook to remove old ceph.conf alternatives 2018-11-26 19:04:14 +00:00
test_cinder_utils.py Re-license charm as Apache-2.0 2016-07-01 17:22:51 +01:00
test_utils.py Fix lint in unit test 2018-11-01 14:58:01 -05:00