Skip to content

mgr/volumes: fix subvolume group rm error message - #53651

Merged
vshankar merged 2 commits into
ceph:mainfrom
neesingh-rh:wip-62968
Oct 20, 2023
Merged

vshankar merged 2 commits into
ceph:mainfrom
neesingh-rh:wip-62968

Conversation

@neesingh-rh

@neesingh-rh neesingh-rh commented Sep 25, 2023 •

Copy link
Copy Markdown
Contributor

Currently, if we try to delete subvolumegroup using
fs subvolumegroup rm when there's one or more subvolume(s)
present under that subvolumegroup we see the error something like :
Error ENOTEMPTY: error in rmdir /volumes/group1
which causes confusion. Make it more descriptive

Fixes: https://tracker.ceph.com/issues/62968
Signed-off-by: Neeraj Pratap Singh [email protected]

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@github-actions github-actions Bot added cephfs Ceph File System pybind labels Sep 25, 2023
@dparmar18

Copy link
Copy Markdown
Contributor

it'd also be good to have a test case here to make sure it prints the expected err status

@joscollin joscollin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think the current error message is bad. Just append Subvolume group not empty would be fine.

Comment thread qa/tasks/cephfs/test_volumes.py Resolved
Comment thread qa/tasks/cephfs/test_volumes.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

switch this to self.fail("expected the 'fs subvolumegroup rm' command to fail")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated!

@vshankar

Copy link
Copy Markdown
Contributor

@neesingh-rh ping back when its ready for review.

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@neesingh-rh ping back when its ready for review.

Its already up for review.

@vshankar
vshankar requested review from a team and kotreshhr September 27, 2023 12:27

@kotreshhr kotreshhr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm otherwise

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Otherwise LGTM.

neeraj pratap singh added 2 commits October 11, 2023 13:10
Currently, if we try to delete subvolumegroup using `fs subvolumegroup rm`
when there's one or more subvolume(s) present under that subvolumegroup we
see the error something like :
`Error ENOTEMPTY: error in rmdir /volumes/group1`
which causes confusion. Make it more descriptive

Fixes: https://tracker.ceph.com/issues/62968
Signed-off-by: Neeraj Pratap Singh <[email protected]>
Fixes:  https://tracker.ceph.com/issues/62968
Signed-off-by: neeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
@kotreshhr

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vshankar
vshankar merged commit 677b522 into ceph:main Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants