Bug 1775266

Summary: mgr/volumes: extend the `fs volume rm` protection to include MDS tear down
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Jos Collin <jcollin>
Component: CephFSAssignee: Jos Collin <jcollin>
Status: CLOSED ERRATA QA Contact: subhash <vpoliset>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0CC: ceph-eng-bugs, ceph-qe-bugs, hyelloji, kdreyer, pdonnell, sweil, tserlin
Target Milestone: rcFlags: hyelloji: needinfo-
Target Release: 4.1   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: ceph-14.2.8-3.el8, ceph-14.2.8-3.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-19 17:31:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jos Collin 2019-11-21 16:04:27 UTC
Description of problem:
The `fs volume rm` command (delete volume) includes MDS tear down and filesystem removal. The protection --yes-i-really-mean-it was implemented only for the filesystem removal. So extend it to include the MDS tear down too. This avoids a partial state of deleting a volume. 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. ./bin/ceph fs volume rm

Actual results:
Without protection: Tears Down MDS but doesn't delete the filesystem.

Expected results:
Without protection: Prevent both Tear Down the MDS and delete the filesystem. 

Additional info:

Comment 6 errata-xmlrpc 2020-05-19 17:31:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:2231