Project

General

Profile

Actions

Bug #63488

open

smoke test fails from "NameError: name 'DEBUGFS_META_DIR' is not defined"

Added by Laura Flores 6 months ago. Updated 4 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
Testing
Target version:
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
qa, qa-failure
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

/a/yuriw-2023-11-07_20:47:24-smoke-reef-release-distro-default-smithi/7451517

2023-11-07T21:12:59.283 DEBUG:teuthology.orchestra.run.smithi183:> def get_id_to_dir():
2023-11-07T21:12:59.285 DEBUG:teuthology.orchestra.run.smithi183:>     result = {}
2023-11-07T21:12:59.285 DEBUG:teuthology.orchestra.run.smithi183:>     for dir in glob.glob("/sys/kernel/debug/ceph/*"):
2023-11-07T21:12:59.286 DEBUG:teuthology.orchestra.run.smithi183:>         if os.path.basename(dir) == DEBUGFS_META_DIR:
2023-11-07T21:12:59.286 DEBUG:teuthology.orchestra.run.smithi183:>             continue
2023-11-07T21:12:59.286 DEBUG:teuthology.orchestra.run.smithi183:>         mds_sessions_lines = open(os.path.join(dir, "mds_sessions")).readlines()
2023-11-07T21:12:59.287 DEBUG:teuthology.orchestra.run.smithi183:>         global_id = mds_sessions_lines[0].split()[1].strip('"'"'"'"'"')
2023-11-07T21:12:59.287 DEBUG:teuthology.orchestra.run.smithi183:>         client_id = mds_sessions_lines[1].split()[1].strip('"'"'"'"'"')
2023-11-07T21:12:59.287 DEBUG:teuthology.orchestra.run.smithi183:>         result[client_id] = global_id
2023-11-07T21:12:59.288 DEBUG:teuthology.orchestra.run.smithi183:>     return result
2023-11-07T21:12:59.288 DEBUG:teuthology.orchestra.run.smithi183:> print(json.dumps(get_id_to_dir()))
2023-11-07T21:12:59.288 DEBUG:teuthology.orchestra.run.smithi183:> '
2023-11-07T21:12:59.331 INFO:teuthology.orchestra.run.smithi183.stderr:Traceback (most recent call last):
2023-11-07T21:12:59.331 INFO:teuthology.orchestra.run.smithi183.stderr:  File "<string>", line 16, in <module>
2023-11-07T21:12:59.331 INFO:teuthology.orchestra.run.smithi183.stderr:  File "<string>", line 9, in get_id_to_dir
2023-11-07T21:12:59.332 INFO:teuthology.orchestra.run.smithi183.stderr:NameError: name 'DEBUGFS_META_DIR' is not defined
2023-11-07T21:12:59.335 DEBUG:teuthology.orchestra.run:got remote process result: 1
2023-11-07T21:12:59.336 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/teuthworker/src/github.com_ceph_ceph-c_55e3239498650453ff76a9b06a37f1a6f488c8fd/qa/tasks/cephfs/kernel_mount.py", line 245, in _get_global_id
    p = self.run_shell_payload("getfattr --only-values -n ceph.client_id .", stdout=StringIO())
  File "/home/teuthworker/src/github.com_ceph_ceph-c_55e3239498650453ff76a9b06a37f1a6f488c8fd/qa/tasks/cephfs/mount.py", line 789, in run_shell_payload
    return self.run_shell(**kwargs)
  File "/home/teuthworker/src/github.com_ceph_ceph-c_55e3239498650453ff76a9b06a37f1a6f488c8fd/qa/tasks/cephfs/mount.py", line 780, in run_shell
    return self.client_remote.run(args=args, cwd=cwd, timeout=timeout,
  File "/home/teuthworker/src/git.ceph.com_teuthology_6899cd26fceddb2fec83dc1a1349394b28c8998e/teuthology/orchestra/remote.py", line 522, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/git.ceph.com_teuthology_6899cd26fceddb2fec83dc1a1349394b28c8998e/teuthology/orchestra/run.py", line 455, in run
    r.wait()
  File "/home/teuthworker/src/git.ceph.com_teuthology_6899cd26fceddb2fec83dc1a1349394b28c8998e/teuthology/orchestra/run.py", line 161, in wait
    self._raise_for_status()
  File "/home/teuthworker/src/git.ceph.com_teuthology_6899cd26fceddb2fec83dc1a1349394b28c8998e/teuthology/orchestra/run.py", line 181, in _raise_for_status
    raise CommandFailedError(
teuthology.exceptions.CommandFailedError: Command failed on smithi183 with status 1: "(cd /home/ubuntu/cephtest/mnt.0 && exec bash -c 'getfattr --only-values -n ceph.client_id .')" 


Related issues 2 (1 open1 closed)

Copied to CephFS - Backport #64249: quincy: smoke test fails from "NameError: name 'DEBUGFS_META_DIR' is not defined"In ProgressVenky ShankarActions
Copied to CephFS - Backport #64250: reef: smoke test fails from "NameError: name 'DEBUGFS_META_DIR' is not defined"ResolvedVenky ShankarActions
Actions

Also available in: Atom PDF