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 <nshelke@redhat.com>
This commit is contained in:
Nikhilkumar Shelke 2022-06-12 17:14:32 +05:30
parent 86f4cd3dca
commit 9957a036df

View File

@ -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()