Repository navigation
squid: mgr/volumes: fix dangling symlink in clone index - #62111
neesingh-rh wants to merge 2 commits into
Conversation
|
This PR is under test in https://tracker.ceph.com/issues/71055. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@neesingh-rh pls rebase |
If we come across situations where we encounter dangling symlinks for clones due to any reason,like older versions may have produced dangling clone symlinks which remained post-upgrade, it needs to be handled gracefully by deleting it, presence of which may not allow deletion of the snapshot. We are now cleaning those up in the snapshot info command. Fixes: https://tracker.ceph.com/issues/58090 Signed-off-by: Neeraj Pratap Singh <[email protected]> (cherry picked from commit efb119e)
Fixes: https://tracker.ceph.com/issues/58090 Signed-off-by: Neeraj Pratap Singh <[email protected]> (cherry picked from commit 82d4647)
0e09f51 to
81b0248
Compare
Rebased and resolved the conflict! |
|
jenkins test make check |
|
jenkins test make windows |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #62111 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 5d34822 mgr/volumes: handling dangling symlinks gracefully | PR #55838 | efb119e mgr/volumes: handling dangling symlinks gracefully |
| 81b0248 qa: add tests for fixing dangling symlink | 82d4647 qa: add tests for fixing dangling symlink |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or 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.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 81b0248 (cherry-pick of 82d4647)
Affected File(s)
qa/tasks/cephfs/test_volumes.py
Range Diff
Click to expand
--- Original (82d46470)
+++ Backport (81b0248e)
@@ -2,3 +2,4 @@
Fixes: https://tracker.ceph.com/issues/58090
Signed-off-by: Neeraj Pratap Singh <[email protected]>
+(cherry picked from commit 82d46470516c5dbc54a0b352120f38e15f40d563)
================================================================================
RANGE DIFF
================================================================================
1: 82d46470516 ! 1: 81b0248e380 qa: add tests for fixing dangling symlink
@@ Commit message
Fixes: https://tracker.ceph.com/issues/58090
Signed-off-by: Neeraj Pratap Singh <[email protected]>
+ (cherry picked from commit 82d46470516c5dbc54a0b352120f38e15f40d563)
## 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.exceptions import CommandFailedError
-+from teuthology import contextutil
-
- log = logging.getLogger(__name__)
-
@@ qa/tasks/cephfs/test_volumes.py: class TestMisc(TestVolumesHelper):
# remove group
self._fs_cmd("subvolumegroup", "rm", self.volname, group)
@@ qa/tasks/cephfs/test_volumes.py: class TestMisc(TestVolumesHelper):
+ clone_path = f'./volumes/_nogroup/{clone}'
+ self.mount_a.run_shell(['sudo', 'rm', '-rf', clone_path], omit_sudo=False)
+
-+ with contextutil.safe_while(sleep=5, tries=6) as proceed:
++ with safe_while(sleep=5, tries=6) as proceed:
+ while proceed():
+ try:
+ result = json.loads(self._fs_cmd("subvolume", "snapshot", "info", self.volname, subvolume, snapshot))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.
🛟 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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
jenkins test make check |
|
jenkins test windows |
|
Conflict resolution needs reviewed by @ceph/cephfs |
backport tracker: https://tracker.ceph.com/issues/70233
backport of #55838
parent tracker: https://tracker.ceph.com/issues/58090
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh