Currently microceph daemon API is called to
delete rgw config irrespective of config exists
or not as the daemon call does not return
error if config does not exist in db. However
this causes time delays in running ceph command
for each config given there are almost 15 configs
introduced for rgw.
Add a check to call delete config API call
only when the config exists in db.
Fixes # #91
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Manual testing
Unit testing
Contributor's Checklist
Please check that you have:
[x] self-reviewed the code in this PR.
[x] added code comments, particularly in hard-to-understand areas.
[ ] updated the user documentation with corresponding changes.
[x] added tests to verify effectiveness of this change.
Currently microceph daemon API is called to delete rgw config irrespective of config exists or not as the daemon call does not return error if config does not exist in db. However this causes time delays in running ceph command for each config given there are almost 15 configs introduced for rgw. Add a check to call delete config API call only when the config exists in db.
Fixes # #91
Type of change
How Has This Been Tested?
Manual testing Unit testing
Contributor's Checklist
Please check that you have: