Project

General

Profile

Actions

Bug #67511

closed
RD PD

qa/cephfs: test_fscrypt_journal_recovery (tasks.cephfs.test_fscrypt.TestFSCryptRecovery) with AssertionError

Bug #67511: qa/cephfs: test_fscrypt_journal_recovery (tasks.cephfs.test_fscrypt.TestFSCryptRecovery) with AssertionError

Added by Rishabh Dave over 2 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
Testing
Target version:
Due date:
% Done:

0%

Source:
Q/A
Backport:
squid,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-4594-g0a05dacc07
Released In:
v20.2.0~2131
Upkeep Timestamp:
2026-08-28T01:38:33+00:00

Description

Link to the job https://pulpito.ceph.com/xiubli-2024-08-07_00:51:19-fs-wip-xiubli-testing-20240806.124812-reef-distro-default-smithi/7841220

2024-08-08T11:42:44.725 INFO:tasks.cephfs_test_runner:======================================================================
2024-08-08T11:42:44.725 INFO:tasks.cephfs_test_runner:FAIL: test_fscrypt_journal_recovery (tasks.cephfs.test_fscrypt.TestFSCryptRecovery)
2024-08-08T11:42:44.725 INFO:tasks.cephfs_test_runner:That alternate_name can be recovered from the journal.
2024-08-08T11:42:44.725 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2024-08-08T11:42:44.726 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2024-08-08T11:42:44.726 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/github.com_ceph_ceph-c_5536d05be0501ca23bda2e7c129ea5d1781edf43/qa/tasks/cephfs/test_fscrypt.py", line 86, in test_fscrypt_journal_recovery
2024-08-08T11:42:44.726 INFO:tasks.cephfs_test_runner:    verify_alternate_name()
2024-08-08T11:42:44.726 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/github.com_ceph_ceph-c_5536d05be0501ca23bda2e7c129ea5d1781edf43/qa/tasks/cephfs/test_fscrypt.py", line 64, in verify_alternate_name
2024-08-08T11:42:44.726 INFO:tasks.cephfs_test_runner:    self.assertEqual(len(dirfrags), 1)
2024-08-08T11:42:44.726 INFO:tasks.cephfs_test_runner:AssertionError: 0 != 1

From test_fscrypt's test_fscrypt_journal_recovery -

        def verify_alternate_name():
            J = self.fs.read_cache("/dir", depth=0)
            self.assertEqual(len(J), 1)
            inode = J[0]
            dirfrags = inode['dirfrags']
            self.assertEqual(len(dirfrags), 1)

From output of dump tree which has no dirfrags -


2024-08-08T11:42:34.643 DEBUG:teuthology.orchestra.run.smithi029:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 300 ceph --cluster ceph --admin-daemon /var/run/ceph/ceph-mds.a.asok --format=json dump tree /dir 0
...
    "dirfrags": [],
    "dirfragtree": {
      "splits": []
    },

From qa/tasks/cephfs/filesystem.py -

    def read_cache(self, path, depth=None, rank=None):
        cmd = ["dump", "tree", path]

Another issue occurred during FSCryptTestCase.tearDown() -

2024-08-08T11:42:34.759 DEBUG:teuthology.orchestra.run.smithi165:> (cd /home/ubuntu/cephtest/mnt.0 && exec bash -c 'sudo fscrypt purge --force --quiet /home/ubuntu/cephtest/mnt.0')
2024-08-08T11:42:35.096 INFO:tasks.ceph.mds.a.smithi029.stderr:2024-08-08T11:42:35.096+0000 7fd6a80ab640 -1 log_channel(cluster) log [ERR] : bad backtrace on directory inode 0x10000000001
2024-08-08T11:42:35.099 INFO:tasks.ceph.mds.a.smithi029.stderr:2024-08-08T11:42:35.098+0000 7fd6a80ab640 -1 log_channel(cluster) log [ERR] : bad backtrace on directory inode 0x10000000002
...
2024-08-08T11:42:44.726 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
...
2024-08-08T11:43:13.640 INFO:teuthology.orchestra.run.smithi029.stdout:2024-08-08T11:42:35.096384+0000 mds.a (mds.0) 1 : cluster [ERR] bad backtrace on directory inode 0x10000000001

From test_fscrypt -

    def tearDown(self):
        self.mount_a.run_shell_payload(f"sudo fscrypt purge --force --quiet {self.mount_a.hostfs_mntpt}")

        super().tearDown()


Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #67806: squid: qa/cephfs: test_fscrypt_journal_recovery (tasks.cephfs.test_fscrypt.TestFSCryptRecovery) with AssertionErrorResolvedPatrick Donnelly

Actions
Copied to CephFS - Backport #67807: reef: qa/cephfs: test_fscrypt_journal_recovery (tasks.cephfs.test_fscrypt.TestFSCryptRecovery) with AssertionErrorResolvedPatrick Donnelly

Actions

RD Updated by Rishabh Dave over 2 years ago Actions #1

  • Description updated (diff)

RD Updated by Rishabh Dave over 2 years ago Actions #2

  • Description updated (diff)

RD Updated by Rishabh Dave over 2 years ago Actions #3

  • Description updated (diff)

RD Updated by Rishabh Dave over 2 years ago Actions #4

  • Description updated (diff)

VS Updated by Venky Shankar over 2 years ago Actions #5

  • Status changed from New to Triaged
  • Assignee set to Patrick Donnelly
  • Target version set to v20.0.0
  • Backport set to reef,squid

PD Updated by Patrick Donnelly over 2 years ago Actions #6

  • Category set to Testing
  • Status changed from Triaged to Fix Under Review
  • Source set to Q/A
  • Backport changed from reef,squid to squid,reef
  • Pull request ID set to 59310

PD Updated by Patrick Donnelly over 2 years ago Actions #7

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot over 2 years ago Actions #8

  • Copied to Backport #67806: squid: qa/cephfs: test_fscrypt_journal_recovery (tasks.cephfs.test_fscrypt.TestFSCryptRecovery) with AssertionError added

UB Updated by Upkeep Bot over 2 years ago Actions #9

  • Copied to Backport #67807: reef: qa/cephfs: test_fscrypt_journal_recovery (tasks.cephfs.test_fscrypt.TestFSCryptRecovery) with AssertionError added

UB Updated by Upkeep Bot over 2 years ago Actions #10

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp set to 2025-07-08T18:13:22+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #13

  • Merge Commit set to 0a05dacc0740475820112ea75b14a189920f2874
  • Fixed In set to v19.3.0-4594-g0a05dacc07
  • Upkeep Timestamp changed from 2025-07-08T18:13:22+00:00 to 2025-08-02T04:50:21+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #14

  • Released In set to v20.2.0~2131
  • Upkeep Timestamp changed from 2025-08-02T04:50:21+00:00 to 2025-11-01T01:35:50+00:00

UB Updated by Upkeep Bot 3 months ago Actions #15

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:35:50+00:00 to 2026-08-28T01:38:33+00:00
Actions

Also available in: PDF Atom