Skip to content

squid: mgr/vol: don't delete user-created pool in "volume create" command - #63068

Merged
batrick merged 7 commits into
ceph:squidfrom
rishabh-d-dave:wip-71150-squid
Jun 2, 2026
Merged

batrick merged 7 commits into
ceph:squidfrom
rishabh-d-dave:wip-71150-squid

Conversation

@rishabh-d-dave

Copy link
Copy Markdown
Contributor

Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit 058769c)
Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit 3ae1930)
Command "ceph fs volume create" accepts 2 new options to allow users to
pass data and metadata pool name. Update docs to include mention of both
the options.

Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit 3044bf7)
in args.

Add a release note that "ceph fs volume create" command allows users to
pass pool names to "ceph fs volume create" command.

Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit a74dbbe)
If one of the pool names passed to "ceph fs volume create" command
(through --data-pool and --meta-pool name) is absent, don't delete the
pool that is present and passed to this command during the cleanup code
of this command.

IOW, "volume create" command should continue deleting pool created by it
but not delete pool created by the user.

Fixes: https://tracker.ceph.com/issues/70945
Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit 4299f66)
"volume create" command.

Signed-off-by: Rishabh Dave <[email protected]>
(cherry picked from commit ad1716f)
@rishabh-d-dave
rishabh-d-dave requested a review from a team as a code owner April 30, 2025 12:03
@rishabh-d-dave rishabh-d-dave added this to the squid milestone Apr 30, 2025
@rishabh-d-dave

Copy link
Copy Markdown
Contributor Author

Depends on #62461

@joscollin joscollin added the wip-jcollin-testing-squid2 Assigned for review label Aug 20, 2025
@joscollin

Copy link
Copy Markdown
Member

@joscollin

Copy link
Copy Markdown
Member

@batrick batrick modified the milestones: squid, v19.2.4 Mar 18, 2026
@batrick batrick modified the milestones: v19.2.4, v19.2.5 Apr 22, 2026
@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #61732, PR #62843.

This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.


Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.

Affected File(s)

Range Diff

Click to expand
--- Original (3ae19303)
+++ Backport (29f6cbe2)
@@ -1,3 +1,4 @@
 qa/cephfs: test passing pool names to "fs volume create" cmd
 
 Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit 3ae193035c8cca41a699d796e012ea5b23517767)

================================================================================
RANGE DIFF
================================================================================

1:  3ae193035c8 ! 1:  29f6cbe20ff qa/cephfs: test passing pool names to "fs volume create" cmd
    @@ Commit message
         qa/cephfs: test passing pool names to "fs volume create" cmd
     
         Signed-off-by: Rishabh Dave <[email protected]>
    +    (cherry picked from commit 3ae193035c8cca41a699d796e012ea5b23517767)
     
      ## qa/tasks/cephfs/test_volumes.py ##
    +@@ qa/tasks/cephfs/test_volumes.py: from io import StringIO
    + 
    + from tasks.cephfs.cephfs_test_case import CephFSTestCase
    + from tasks.cephfs.fuse_mount import FuseMount
    ++from teuthology.contextutil import safe_while
    + from teuthology.exceptions import CommandFailedError
    + 
    + log = logging.getLogger(__name__)
     @@ qa/tasks/cephfs/test_volumes.py: class TestVolumeCreate(TestVolumesHelper):
              # clean up
              self._fs_cmd("volume", "rm", volname, "--yes-i-really-mean-it")

Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.

Affected File(s)

Range Diff

Click to expand
--- Original (a74dbbe8)
+++ Backport (84f1a18d)
@@ -6,3 +6,4 @@
 pass pool names to "ceph fs volume create" command.
 
 Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit a74dbbe8ee19d7b572c1a63984f6db8db203cd3b)

================================================================================
RANGE DIFF
================================================================================

1:  a74dbbe8ee1 < -:  ----------- PendingReleaseNote: add note that "volume create" accepts pool names...
-:  ----------- > 1:  84f1a18d877 PendingReleaseNote: add note that "volume create" accepts pool names...

Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Malformed Backport Tracker: Backport tracker #70606 has the PR link in the description rather than the 'Pull Request ID' field. Please fix this.
  • Missing PR Link: Backport tracker #70606 has no 'Pull Request ID' field set. Please link it to PR #63068.

Commit Parity Visualizer

BACKPORT PR #63068 SOURCE PR SOURCE STATUS
3c952a6 mgr/vol: allow passing pool names to "fs volume create" cmd PR #61732 e794a19 mgr/vol: allow passing pool names to "fs volume create" cmd
da89594 qa/cephfs: separate the tests for "ceph fs volume create" cmd 058769c qa/cephfs: separate the tests for "ceph fs volume create" cmd
29f6cbe qa/cephfs: test passing pool names to "fs volume create" cmd 3ae1930 qa/cephfs: test passing pool names to "fs volume create" cmd
2902e9b doc/cephfs: mention new options for "fs volume create" cmd 3044bf7 doc/cephfs: mention new options for "fs volume create" cmd
84f1a18 PendingReleaseNote: add note that "volume create" accepts pool names... a74dbbe PendingReleaseNote: add note that "volume create" accepts pool names...
99ea144 mgr/vol: don't delete user-created pool in "volume create" command PR #62843 4299f66 mgr/vol: don't delete user-created pool in "volume create" command
fa9d585 qa/cephfs: test that user created pool is not deleted by... ad1716f qa/cephfs: test that user created pool is not deleted by...

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 2, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #61732, PR #62843.

This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.


Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

Deviation in Backport 29f6cbe (cherry-pick of 3ae1930)

Affected File(s)

Range Diff

Click to expand
--- Original (3ae19303)
+++ Backport (29f6cbe2)
@@ -1,3 +1,4 @@
 qa/cephfs: test passing pool names to "fs volume create" cmd
 
 Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit 3ae193035c8cca41a699d796e012ea5b23517767)

================================================================================
RANGE DIFF
================================================================================

1:  3ae193035c8 ! 1:  29f6cbe20ff qa/cephfs: test passing pool names to "fs volume create" cmd
    @@ Commit message
         qa/cephfs: test passing pool names to "fs volume create" cmd
     
         Signed-off-by: Rishabh Dave <[email protected]>
    +    (cherry picked from commit 3ae193035c8cca41a699d796e012ea5b23517767)
     
      ## qa/tasks/cephfs/test_volumes.py ##
    +@@ qa/tasks/cephfs/test_volumes.py: from io import StringIO
    + 
    + from tasks.cephfs.cephfs_test_case import CephFSTestCase
    + from tasks.cephfs.fuse_mount import FuseMount
    ++from teuthology.contextutil import safe_while
    + from teuthology.exceptions import CommandFailedError
    + 
    + log = logging.getLogger(__name__)
     @@ qa/tasks/cephfs/test_volumes.py: class TestVolumeCreate(TestVolumesHelper):
              # clean up
              self._fs_cmd("volume", "rm", volname, "--yes-i-really-mean-it")

Deviation in Backport 84f1a18 (cherry-pick of a74dbbe)

Affected File(s)

Range Diff

Click to expand
--- Original (a74dbbe8)
+++ Backport (84f1a18d)
@@ -6,3 +6,4 @@
 pass pool names to "ceph fs volume create" command.
 
 Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit a74dbbe8ee19d7b572c1a63984f6db8db203cd3b)

================================================================================
RANGE DIFF
================================================================================

1:  a74dbbe8ee1 < -:  ----------- PendingReleaseNote: add note that "volume create" accepts pool names...
-:  ----------- > 1:  84f1a18d877 PendingReleaseNote: add note that "volume create" accepts pool names...

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Mismatched PR Link: Backport tracker #70606 points to PR #62461, not this backport PR #63068.

Commit Parity Visualizer

BACKPORT PR #63068 SOURCE PR SOURCE STATUS
3c952a6 mgr/vol: allow passing pool names to "fs volume create" cmd PR #61732 e794a19 mgr/vol: allow passing pool names to "fs volume create" cmd
da89594 qa/cephfs: separate the tests for "ceph fs volume create" cmd 058769c qa/cephfs: separate the tests for "ceph fs volume create" cmd
29f6cbe qa/cephfs: test passing pool names to "fs volume create" cmd 3ae1930 qa/cephfs: test passing pool names to "fs volume create" cmd
2902e9b doc/cephfs: mention new options for "fs volume create" cmd 3044bf7 doc/cephfs: mention new options for "fs volume create" cmd
84f1a18 PendingReleaseNote: add note that "volume create" accepts pool names... a74dbbe PendingReleaseNote: add note that "volume create" accepts pool names...
99ea144 mgr/vol: don't delete user-created pool in "volume create" command PR #62843 4299f66 mgr/vol: don't delete user-created pool in "volume create" command
fa9d585 qa/cephfs: test that user created pool is not deleted by... ad1716f qa/cephfs: test that user created pool is not deleted by...

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 2, 2026
@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 2, 2026
@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 2, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #61732, PR #62843.

This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.


Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

Deviation in Backport 29f6cbe (cherry-pick of 3ae1930)

Affected File(s)

Range Diff

Click to expand
--- Original (3ae19303)
+++ Backport (29f6cbe2)
@@ -1,3 +1,4 @@
 qa/cephfs: test passing pool names to "fs volume create" cmd
 
 Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit 3ae193035c8cca41a699d796e012ea5b23517767)

================================================================================
RANGE DIFF
================================================================================

1:  3ae193035c8 ! 1:  29f6cbe20ff qa/cephfs: test passing pool names to "fs volume create" cmd
    @@ Commit message
         qa/cephfs: test passing pool names to "fs volume create" cmd
     
         Signed-off-by: Rishabh Dave <[email protected]>
    +    (cherry picked from commit 3ae193035c8cca41a699d796e012ea5b23517767)
     
      ## qa/tasks/cephfs/test_volumes.py ##
    +@@ qa/tasks/cephfs/test_volumes.py: from io import StringIO
    + 
    + from tasks.cephfs.cephfs_test_case import CephFSTestCase
    + from tasks.cephfs.fuse_mount import FuseMount
    ++from teuthology.contextutil import safe_while
    + from teuthology.exceptions import CommandFailedError
    + 
    + log = logging.getLogger(__name__)
     @@ qa/tasks/cephfs/test_volumes.py: class TestVolumeCreate(TestVolumesHelper):
              # clean up
              self._fs_cmd("volume", "rm", volname, "--yes-i-really-mean-it")

Deviation in Backport 84f1a18 (cherry-pick of a74dbbe)

Affected File(s)

Range Diff

Click to expand
--- Original (a74dbbe8)
+++ Backport (84f1a18d)
@@ -6,3 +6,4 @@
 pass pool names to "ceph fs volume create" command.
 
 Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit a74dbbe8ee19d7b572c1a63984f6db8db203cd3b)

================================================================================
RANGE DIFF
================================================================================

1:  a74dbbe8ee1 < -:  ----------- PendingReleaseNote: add note that "volume create" accepts pool names...
-:  ----------- > 1:  84f1a18d877 PendingReleaseNote: add note that "volume create" accepts pool names...

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


Commit Parity Visualizer

BACKPORT PR #63068 SOURCE PR SOURCE STATUS
3c952a6 mgr/vol: allow passing pool names to "fs volume create" cmd PR #61732 e794a19 mgr/vol: allow passing pool names to "fs volume create" cmd
da89594 qa/cephfs: separate the tests for "ceph fs volume create" cmd 058769c qa/cephfs: separate the tests for "ceph fs volume create" cmd
29f6cbe qa/cephfs: test passing pool names to "fs volume create" cmd 3ae1930 qa/cephfs: test passing pool names to "fs volume create" cmd
2902e9b doc/cephfs: mention new options for "fs volume create" cmd 3044bf7 doc/cephfs: mention new options for "fs volume create" cmd
84f1a18 PendingReleaseNote: add note that "volume create" accepts pool names... a74dbbe PendingReleaseNote: add note that "volume create" accepts pool names...
99ea144 mgr/vol: don't delete user-created pool in "volume create" command PR #62843 4299f66 mgr/vol: don't delete user-created pool in "volume create" command
fa9d585 qa/cephfs: test that user created pool is not deleted by... ad1716f qa/cephfs: test that user created pool is not deleted by...

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants