From: Rishabh Dave Date: Mon, 31 Mar 2025 17:09:06 +0000 (+0530) Subject: qa/cephfs: update test_clone_failure_status_failed X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ecdc52f2c92771423643a43346d27c74fc742626;p=ceph-ci.git qa/cephfs: update test_clone_failure_status_failed This test constructs path to a specific snapshot. The code for this is now outdated due to introduction of subvol v3. Update the code so that the path is constructed correctly and the test can run successfully. Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py index df7eb703c78..dcade2a7ee5 100644 --- a/qa/tasks/cephfs/test_volumes.py +++ b/qa/tasks/cephfs/test_volumes.py @@ -8194,7 +8194,9 @@ class TestSubvolumeSnapshotClones(TestVolumesHelper): self._fs_cmd("subvolume", "snapshot", "clone", self.volname, subvolume, snapshot, clone1) # remove snapshot from backend to force the clone failure. - snappath = os.path.join(".", "volumes", "_nogroup", subvolume, ".snap", snapshot) + roots_dir = os.path.join(".", "volumes", "_nogroup", subvolume, "roots") + uuid = self.mount_a.get_shell_stdout(f'ls {roots_dir}').strip() + snappath = os.path.join(roots_dir, uuid, ".snap", snapshot) self.mount_a.run_shell(['sudo', 'rmdir', snappath], omit_sudo=False) # wait for clone1 to fail.