Skip to content

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

Merged
rishabh-d-dave merged 2 commits intoceph:mainfrom
rishabh-d-dave:vols-user-pool
Apr 30, 2025
Merged

mgr/vol: don't delete user-created pool in "volume create" command#62843
rishabh-d-dave merged 2 commits intoceph:mainfrom
rishabh-d-dave:vols-user-pool

Conversation

@rishabh-d-dave
Copy link
Contributor

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

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

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 <ridave@redhat.com>
@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check

@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check arm64

@rishabh-d-dave
Copy link
Contributor Author

jenkins test api

@rishabh-d-dave rishabh-d-dave removed the wip-rishabh-testing Rishabh's testing label label Apr 16, 2025
@vshankar
Copy link
Contributor

jenkins test make check

@vshankar
Copy link
Contributor

jenkins test make check arm64

"volume create" command.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
@rishabh-d-dave
Copy link
Contributor Author

rishabh-d-dave commented Apr 17, 2025

removed f-string where it was redundant.

@rishabh-d-dave
Copy link
Contributor Author

jenkins test api

@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check arm64

1 similar comment
@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check arm64

@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check

3 similar comments
@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check

@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check

@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check

@vshankar
Copy link
Contributor

@rishabh-d-dave I see you added your testing tag and removed it later. We need this fix on priority. Can you please do the needful or let me know and I can put it to test.

@rishabh-d-dave
Copy link
Contributor Author

rishabh-d-dave commented Apr 21, 2025

@rishabh-d-dave I see you added your testing tag and removed it later. We need this fix on priority. Can you please do the needful or let me know and I can put it to test.

@vshankar Although from the changes on this PR, I don't the think the "make check" failure is related but the failure is persistent. Can you take a quick look at it and let me know what you think? Also, is there a way to run the exact failing test locally? Here's the link to the "make check" failure - https://jenkins.ceph.com/job/ceph-pull-requests/156439/

@rishabh-d-dave
Copy link
Contributor Author

jenkins test make check

@vshankar
Copy link
Contributor

@rishabh-d-dave I see you added your testing tag and removed it later. We need this fix on priority. Can you please do the needful or let me know and I can put it to test.

@vshankar Although from the changes on this PR, I don't the think the "make check" failure is related but the failure is persistent. Can you take a quick look at it and let me know what you think? Also, is there a way to run the exact failing test locally? Here's the link to the "make check" failure - https://jenkins.ceph.com/job/ceph-pull-requests/156439/

/home/jenkins-build/build/workspace/ceph-pull-requests/build/bin/unittest_rgw_iam_policy: error while loading shared libraries: /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libceph-common.so.2: file too short

Something probably has gone really wrong.

@rishabh-d-dave
Copy link
Contributor Author

rishabh-d-dave commented Apr 21, 2025

@rishabh-d-dave I see you added your testing tag and removed it later. We need this fix on priority. Can you please do the needful or let me know and I can put it to test.

@vshankar Although from the changes on this PR, I don't the think the "make check" failure is related but the failure is persistent. Can you take a quick look at it and let me know what you think? Also, is there a way to run the exact failing test locally? Here's the link to the "make check" failure - https://jenkins.ceph.com/job/ceph-pull-requests/156439/

/home/jenkins-build/build/workspace/ceph-pull-requests/build/bin/unittest_rgw_iam_policy: error while loading shared libraries: /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libceph-common.so.2: file too short

Something probably has gone really wrong.

I was looking at this failure -

Python Traceback

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/pybind/test_ceph_argparse.py", line 49, in test_parse_json_funcsigs
    self.assertRaises(TypeError, parse_json_funcsigs, commands, 'cli')
  File "/usr/lib/python3.10/unittest/case.py", line 738, in assertRaises
    return context.handle('assertRaises', args, kwargs)
  File "/usr/lib/python3.10/unittest/case.py", line 201, in handle
    callable_obj(*args, **kwargs)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/ceph_argparse.py", line 1100, in parse_json_funcsigs
    raise e
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/ceph_argparse.py", line 1097, in parse_json_funcsigs
    overall = json.loads(s)
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@rishabh-d-dave
Copy link
Contributor Author

This PR is under test in https://tracker.ceph.com/issues/71020.

@vshankar
Copy link
Contributor

@rishabh-d-dave status of this? This needs to be included in the backports (downstream too).

@rishabh-d-dave
Copy link
Contributor Author

@rishabh-d-dave status of this? This needs to be included in the backports (downstream too).

I am going through the QA run, if everything looks fine in it, it can be merged.

Copy link
Contributor Author

@rishabh-d-dave rishabh-d-dave left a comment

Choose a reason for hiding this comment

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

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.

2 participants