Merge lp://qastaging/~cbjchen/charm-helpers/delete-ceph-keyring into lp://qastaging/charm-helpers
Proposed by
Liang Chen
Status: | Merged |
---|---|
Merged at revision: | 284 |
Proposed branch: | lp://qastaging/~cbjchen/charm-helpers/delete-ceph-keyring |
Merge into: | lp://qastaging/charm-helpers |
Diff against target: |
50 lines (+29/-0) 2 files modified
charmhelpers/contrib/storage/linux/ceph.py (+11/-0) tests/contrib/storage/test_linux_ceph.py (+18/-0) |
To merge this branch: | bzr merge lp://qastaging/~cbjchen/charm-helpers/delete-ceph-keyring |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Liam Young (community) | Approve | ||
Edward Hope-Morley | Approve | ||
OpenStack Charmers | Pending | ||
Review via email: mp+242283@code.qastaging.launchpad.net |
Description of the change
Need a way to clean up the keyring after ceph service is destroyed and re-created like below,
1. break relation
2. destroy service
3. deploy new ceph service
4. add relation back
If old key exists, ensure_ceph_keyring will not store the newly retrieved key from ceph.
This will be part of the fix for bug/1359220.
To post a comment you must log in.
Liang, it might be simpler to add a 'force' parameter to create_keyring() so that an existing keyring may be overwitten.
If we want to trash all trace of ceph when the ceph client relation is broken we could just delete /etc/ceph once ceph packages are uninstalled.