From: Nikhilkumar Shelke Date: Sun, 12 Jun 2022 11:44:32 +0000 (+0530) Subject: qa: remove incorrect 'size' from output of 'snapshot info' X-Git-Tag: v18.0.0~665^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9957a036dfabfc47a4fda7a3e005d74a77449057;p=ceph.git 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 --- diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py index 2ae4674dbca7..f33aef624322 100644 --- a/qa/tasks/cephfs/test_volumes.py +++ b/qa/tasks/cephfs/test_volumes.py @@ -3196,7 +3196,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) @@ -3523,7 +3523,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) @@ -3586,7 +3586,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() @@ -6137,7 +6137,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()