From b6387d638b46bba99e8d96cd8f297123a514e2ee Mon Sep 17 00:00:00 2001 From: Nikhilkumar Shelke Date: Sun, 12 Jun 2022 17:14:32 +0530 Subject: [PATCH] qa: remove incorrect 'size' from output of 'snapshot info' The 'size' shown in the output of snapshot info command relies on rstats which is incorrect snapshot size. It tracks size of the subvolume from the snapshot has been taken instead of the snapshot itself. Hence having the 'size' field in the output of 'snapshot info' doesn't make sense until the rstats is fixed. Fixes: https://tracker.ceph.com/issues/55822 Signed-off-by: Nikhilkumar Shelke (cherry picked from commit 9957a036dfabfc47a4fda7a3e005d74a77449057) --- qa/tasks/cephfs/test_volumes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py index 87f88cae2e736..d9a7c8e1aa1e7 100644 --- a/qa/tasks/cephfs/test_volumes.py +++ b/qa/tasks/cephfs/test_volumes.py @@ -3928,7 +3928,7 @@ class TestSubvolumeSnapshots(TestVolumesHelper): tests the 'fs subvolume snapshot info' command """ - snap_md = ["created_at", "data_pool", "has_pending_clones", "size"] + snap_md = ["created_at", "data_pool", "has_pending_clones"] subvolume = self._generate_random_subvolume_name() snapshot, snap_missing = self._generate_random_snapshot_name(2) @@ -4255,7 +4255,7 @@ class TestSubvolumeSnapshots(TestVolumesHelper): """ ensure a retained subvolume can be recreated and further snapshotted """ - snap_md = ["created_at", "data_pool", "has_pending_clones", "size"] + snap_md = ["created_at", "data_pool", "has_pending_clones"] subvolume = self._generate_random_subvolume_name() snapshot1, snapshot2 = self._generate_random_snapshot_name(2) @@ -4318,7 +4318,7 @@ class TestSubvolumeSnapshots(TestVolumesHelper): ensure retain snapshots based delete of a subvolume with snapshots retains the subvolume also test allowed and dis-allowed operations on a retained subvolume """ - snap_md = ["created_at", "data_pool", "has_pending_clones", "size"] + snap_md = ["created_at", "data_pool", "has_pending_clones"] subvolume = self._generate_random_subvolume_name() snapshot = self._generate_random_snapshot_name() @@ -6869,7 +6869,7 @@ class TestMisc(TestVolumesHelper): subvol_md = ["atime", "bytes_pcent", "bytes_quota", "bytes_used", "created_at", "ctime", "data_pool", "gid", "mode", "mon_addrs", "mtime", "path", "pool_namespace", "type", "uid", "features", "state"] - snap_md = ["created_at", "data_pool", "has_pending_clones", "size"] + snap_md = ["created_at", "data_pool", "has_pending_clones"] subvolume = self._generate_random_subvolume_name() snapshot = self._generate_random_snapshot_name() -- 2.39.5