Project

General

Profile

Actions

Bug #70945

open

mgr/vol: volume create cmd deletes user-created pool if one of the pool passed is absent

Added by Rishabh Dave 11 months ago. Updated 8 months ago.

Status:
Pending Backport
Priority:
Urgent
Assignee:
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
other
Backport:
tentacle,squid,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v20.3.0-130-g43cf7f9adb
Released In:
Upkeep Timestamp:
2025-07-14T20:45:26+00:00

Description

If ceph fs volume create command is run with --data-pool and --meta-pool
options and if one of the pool names passed to these options is a non-existing
pool, then the command fails with ENOENT (which is fine) and also deletes the
other pool which is present (this behaviour is a bug).

Example -

$ ceph osd pool create cephfs.b.data
pool 'cephfs.b.data' created
$ ceph osd pool create cephfs.b.meta
pool 'cephfs.b.meta' created
$ ceph osd pool ls
cephfs.b.data
cephfs.b.meta

# note that metadata pool name below has a typo
$ ceph fs volume create b --data-pool cephfs.b.data --meta-pool cephfs.b.metaa
Error ENOENT: pool 'cephfs.b.metaa' does not exist

# note that "cephfs.b.data" isn't listed by below command which implies that it was deleted
$ ceph osd pool ls
cephfs.b.meta

IOW, pools should be deleted by this command only if it was also created by this command.


Related issues 4 (3 open1 closed)

Related to CephFS - Feature #69878: mgr/vol: allow passing pool names to "fs volume create" cmdPending BackportRishabh Dave

Actions
Copied to CephFS - Backport #71148: tentacle: mgr/vol: volume create cmd deletes user-created pool if one of the pool passed is absentResolvedRishabh DaveActions
Copied to CephFS - Backport #71149: reef: mgr/vol: volume create cmd deletes user-created pool if one of the pool passed is absentIn ProgressRishabh DaveActions
Copied to CephFS - Backport #71150: squid: mgr/vol: volume create cmd deletes user-created pool if one of the pool passed is absentQA TestingRishabh DaveActions
Actions #1

Updated by Rishabh Dave 11 months ago

  • Subject changed from mgr/vol: volume create command shouldn't delete user created pool if one of the pool passed is absent to mgr/vol: volume create cmd deletes user created pool if one of the pool passed is absent
Actions #2

Updated by Rishabh Dave 11 months ago

  • Subject changed from mgr/vol: volume create cmd deletes user created pool if one of the pool passed is absent to mgr/vol: volume create cmd deletes user-created pool if one of the pool passed is absent
Actions #3

Updated by Rishabh Dave 11 months ago

  • Priority changed from Normal to Urgent
Actions #4

Updated by Rishabh Dave 11 months ago

  • Description updated (diff)
Actions #5

Updated by Rishabh Dave 11 months ago

  • Description updated (diff)
Actions #6

Updated by Rishabh Dave 11 months ago

  • Component(FS) mgr/volumes added
Actions #7

Updated by Rishabh Dave 11 months ago

  • Backport set to squid,reef
Actions #8

Updated by Rishabh Dave 11 months ago

  • Related to Feature #69878: mgr/vol: allow passing pool names to "fs volume create" cmd added
Actions #9

Updated by Rishabh Dave 11 months ago

  • Pull request ID set to 62843
Actions #10

Updated by Rishabh Dave 11 months ago

  • Status changed from In Progress to Fix Under Review
Actions #11

Updated by Venky Shankar 11 months ago

  • Category set to Correctness/Safety
  • Target version set to v20.0.0
  • Source set to other
Actions #12

Updated by Rishabh Dave 11 months ago

  • Backport changed from squid,reef to tentacle,squid,reef
Actions #13

Updated by Rishabh Dave 11 months ago

  • Status changed from Fix Under Review to Pending Backport
Actions #14

Updated by Rishabh Dave 11 months ago

  • Copied to Backport #71148: tentacle: mgr/vol: volume create cmd deletes user-created pool if one of the pool passed is absent added
Actions #15

Updated by Rishabh Dave 11 months ago

  • Copied to Backport #71149: reef: mgr/vol: volume create cmd deletes user-created pool if one of the pool passed is absent added
Actions #16

Updated by Rishabh Dave 11 months ago

  • Copied to Backport #71150: squid: mgr/vol: volume create cmd deletes user-created pool if one of the pool passed is absent added
Actions #17

Updated by Rishabh Dave 11 months ago

  • Tags (freeform) set to backport_processed
Actions #18

Updated by Upkeep Bot 9 months ago

  • Merge Commit set to 43cf7f9adbda2fd7b7cdca66269366a956256d49
  • Fixed In set to v20.3.0-130-g43cf7f9adbd
  • Upkeep Timestamp set to 2025-07-08T14:46:41+00:00
Actions #19

Updated by Upkeep Bot 8 months ago

  • Fixed In changed from v20.3.0-130-g43cf7f9adbd to v20.3.0-130-g43cf7f9adbda
  • Upkeep Timestamp changed from 2025-07-08T14:46:41+00:00 to 2025-07-14T15:20:52+00:00
Actions #20

Updated by Upkeep Bot 8 months ago

  • Fixed In changed from v20.3.0-130-g43cf7f9adbda to v20.3.0-130-g43cf7f9adb
  • Upkeep Timestamp changed from 2025-07-14T15:20:52+00:00 to 2025-07-14T20:45:26+00:00
Actions

Also available in: Atom PDF