Bug #39533
closedmgr/dashboard: notify the user about unset 'mon_allow_pool_delete' flag beforehand
Added by Tatjana Dehler about 5 years ago. Updated about 3 years ago.
0%
Files
Screenshot_2019-04-30_12-00-31.png (45.3 KB) Screenshot_2019-04-30_12-00-31.png | pool deletion dialog | Tatjana Dehler, 04/30/2019 10:05 AM |
Updated by Tatjana Dehler about 5 years ago
- File Screenshot_2019-04-30_12-00-31.png Screenshot_2019-04-30_12-00-31.png added
- Subject changed from mgr/dashboard: to mgr/dashboard: notify the user about unset 'mon_allow_pool_delete' flag beforehand
- Category set to 152
- Assignee set to Tatjana Dehler
- Source set to Development
If the 'mon_allow_pool_delete' flag is not set and the user tries to delete a pool, he only gets notified about it, when he checks "Yes, I am sure." and clicks the "Delete Pool" button in the deletion dialog (see attachment). It would be good to let him know he currently can't delete pools beforehand.
There are to possible options:
1. Deactivate the "Delete" button in the menu and show a tooltip containing the reason why it's not possible to delete pools. It's the favored solution (as discussed in the dashboard stand-up) but needs some investigation if it's possible to show a tooltip for deactivated components.
2. If option 1.) is not possible a modal dialog, containing the reason why deleting pools is not possible, should be shown after clicking "Delete" in the menu.
Updated by Sebastian Wagner about 5 years ago
Option 3: Fix mon_allow_pool_delete
: This flag was never meant to introduce Dashboard bugs.
Option 4: Remove mon_allow_pool_delete
altogether and replace it with something more suitable for CLI users.
Relates to https://github.com/ceph/ceph/pull/11665
Updated by Wido den Hollander about 5 years ago
I would be very, very cautious with this. Removing pools should not be very easy for users.
The mon_allow_pool_delete was introduced as users would remove pools by accident. Keep in mind that there are also APIs which do not ask and just do what you want them to do. You can remove a 1PB pool without the API asking twice. We do not want that to happen.
Only if we have a soft-delete or a grace period when removing a pool this might be an option. Otherwise I would always make it very difficult to remove pools.
Updated by Lenz Grimmer about 5 years ago
Wido den Hollander wrote:
I would be very, very cautious with this. Removing pools should not be very easy for users.
The mon_allow_pool_delete was introduced as users would remove pools by accident. Keep in mind that there are also APIs which do not ask and just do what you want them to do. You can remove a 1PB pool without the API asking twice. We do not want that to happen.
Only if we have a soft-delete or a grace period when removing a pool this might be an option. Otherwise I would always make it very difficult to remove pools.
Thanks for your feedback, Wido!
Note that this issue is primarily about making the user aware of the fact that mon_allow_pool_delete
is set to false and that the delete operation will not succeed.
This provides a better user experience than letting the user proceed with the pool deletion workflow and then getting an error from the backend, that the deletion operation failed.
Updated by Tatjana Dehler almost 5 years ago
- Status changed from New to In Progress
Updated by Ricardo Marques almost 5 years ago
- Status changed from In Progress to Fix Under Review
Updated by Tatjana Dehler almost 5 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to nautilus
Updated by Tatjana Dehler almost 5 years ago
- Copied to Backport #40616: nautilus: mgr/dashboard: notify the user about unset 'mon_allow_pool_delete' flag beforehand added
Updated by Tatjana Dehler over 4 years ago
- Status changed from Pending Backport to Resolved
Updated by Patrick Seidensal over 4 years ago
- Related to Tasks #42536: mgr/dashboard: make greyed out `Delete` button for pools more straightforward added
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 152 to UX