Project

General

Profile

Bug #45662

pybind/mgr/volumes: volume deletion should check mon_allow_pool_delete

Added by Patrick Donnelly 6 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
High
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
octopus,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature:

Description

[ceph: root@li822-21 /]# ceph fs volume rm a
Error EPERM: WARNING: this will *PERMANENTLY DESTROY* all data stored in the filesystem 'a'. If you are *ABSOLUTELY CERTAIN* that is what you want, re-issue the command followed by --yes-i-really-mean-it.
[ceph: root@li822-21 /]# ceph fs volume rm a --yes-i-really-mean-it
Error EPERM: pool deletion is disabled; you must first set the mon_allow_pool_delete config option to true before you can destroy a pool
[ceph: root@li822-21 /]# ceph config set mon mon_allow_pool_delete true
[ceph: root@li822-21 /]# ceph fs volume rm a --yes-i-really-mean-it
Error ENOENT: Filesystem not found for volume 'a'
[ceph: root@li822-21 /]# ceph osd pool ls
device_health_metrics
cephfs.a.meta
cephfs.a.data

Either the plugin should check this config before proceeding with any destructive action or somehow override mon_allow_pool_delete.


Related issues

Copied to CephFS - Backport #46477: octopus: pybind/mgr/volumes: volume deletion should check mon_allow_pool_delete Resolved
Copied to CephFS - Backport #46478: nautilus: pybind/mgr/volumes: volume deletion should check mon_allow_pool_delete Resolved

History

#1 Updated by Kotresh Hiremath Ravishankar 6 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 35361

#2 Updated by Patrick Donnelly 5 months ago

  • Status changed from Fix Under Review to Pending Backport
  • Source set to Development

#3 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #46477: octopus: pybind/mgr/volumes: volume deletion should check mon_allow_pool_delete added

#4 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #46478: nautilus: pybind/mgr/volumes: volume deletion should check mon_allow_pool_delete added

#5 Updated by Nathan Cutler 4 months ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF