Project

General

Profile

Actions

Bug #61892

closed

CephFS - Bug #61781: mds: couldn't successfully calculate the locker caps

[testing] qa: test_snapshot_remove (tasks.cephfs.test_strays.TestStrays)

Added by Venky Shankar 11 months ago. Updated 4 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

100%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

/a/yuriw-2023-07-03_15:34:02-fs-quincy_release-distro-default-smithi/7325367

The test creates a file with data in a directory, snapshots the directory, deviates the head version of the file and then removes the head version of the file and the directory. Later, it validates if the snapshotted version of the file is present and correct. The test fails in this validation:

2023-07-04T00:31:43.736 INFO:tasks.cephfs.mount:Validating 8388608 bytes from snapdir/.snap/snap1/subdir/file_a
2023-07-04T00:31:43.737 DEBUG:teuthology.orchestra.run.smithi082:> sudo adjust-ulimits daemon-helper kill python3 -c '
2023-07-04T00:31:43.737 DEBUG:teuthology.orchestra.run.smithi082:> import zlib
2023-07-04T00:31:43.737 DEBUG:teuthology.orchestra.run.smithi082:> path = "/home/ubuntu/cephtest/mnt.0/snapdir/.snap/snap1/subdir/file_a" 
2023-07-04T00:31:43.738 DEBUG:teuthology.orchestra.run.smithi082:> with open(path, '"'"'r'"'"') as f:
2023-07-04T00:31:43.738 DEBUG:teuthology.orchestra.run.smithi082:>     bytes = f.read()
2023-07-04T00:31:43.738 DEBUG:teuthology.orchestra.run.smithi082:> if len(bytes) != 8388608:
2023-07-04T00:31:43.738 DEBUG:teuthology.orchestra.run.smithi082:>     raise RuntimeError("Bad length {0} vs. expected {1}".format(
2023-07-04T00:31:43.739 DEBUG:teuthology.orchestra.run.smithi082:>         len(bytes), 8388608
2023-07-04T00:31:43.739 DEBUG:teuthology.orchestra.run.smithi082:>     ))
2023-07-04T00:31:43.739 DEBUG:teuthology.orchestra.run.smithi082:> for i, b in enumerate(bytes):
2023-07-04T00:31:43.739 DEBUG:teuthology.orchestra.run.smithi082:>     val = zlib.crc32(str(i).encode('"'"'utf-8'"'"')) & 7
2023-07-04T00:31:43.740 DEBUG:teuthology.orchestra.run.smithi082:>     if b != chr(val):
2023-07-04T00:31:43.740 DEBUG:teuthology.orchestra.run.smithi082:>         raise RuntimeError("Bad data at offset {0}".format(i))
2023-07-04T00:31:43.740 DEBUG:teuthology.orchestra.run.smithi082:> '
2023-07-04T00:31:43.919 INFO:teuthology.orchestra.run.smithi082.stderr:Traceback (most recent call last):
2023-07-04T00:31:43.919 INFO:teuthology.orchestra.run.smithi082.stderr:  File "<string>", line 13, in <module>
2023-07-04T00:31:43.919 INFO:teuthology.orchestra.run.smithi082.stderr:RuntimeError: Bad data at offset 0
Actions

Also available in: Atom PDF