Project

General

Profile

Actions

Bug #62706

open

qa: ModuleNotFoundError: No module named XXXXXX

Added by Rishabh Dave 8 months ago. Updated 6 months ago.

Status:
Pending Backport
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

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

Description

https://pulpito.ceph.com/rishabh-2023-08-10_20:13:47-fs-wip-rishabh-2023aug3-b4-testing-default-smithi/7365558/

Traceback from above job's teuthology.log -

2023-08-11T12:28:00.411 INFO:tasks.cephfs_test_runner:Test the correctness of snap directory name ... ERROR
2023-08-11T12:28:00.412 INFO:tasks.cephfs_test_runner:
2023-08-11T12:28:00.412 INFO:tasks.cephfs_test_runner:======================================================================
2023-08-11T12:28:00.413 INFO:tasks.cephfs_test_runner:ERROR: test_snap_dir_name (tasks.cephfs.test_snap_schedules.TestSnapSchedulesSnapdir)
2023-08-11T12:28:00.413 INFO:tasks.cephfs_test_runner:Test the correctness of snap directory name
2023-08-11T12:28:00.413 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2023-08-11T12:28:00.413 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2023-08-11T12:28:00.414 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_c8f7aadca20497f9ad30aab4d41c784a8bf1a889/qa/tasks/cephfs/test_snap_schedules.py", line 552, in test_snap_dir_name
2023-08-11T12:28:00.414 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_c8f7aadca20497f9ad30aab4d41c784a8bf1a889/qa/tasks/cephfs/test_snap_schedules.py", line 532, in get_snap_dir_name
2023-08-11T12:28:00.414 INFO:tasks.cephfs_test_runner:ModuleNotFoundError: No module named 'tasks.cephfs.kernel_mount'
2023-08-11T12:28:00.415 INFO:tasks.cephfs_test_runner:
2023-08-11T12:28:00.415 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2023-08-11T12:28:00.415 INFO:tasks.cephfs_test_runner:Ran 11 tests in 5758.684s

We see error in this pattern ModuleNotFoundError: No module named 'XXXXX' now and then. They aren't related to PRs or tests because these failure are transient.


Related issues 2 (2 open0 closed)

Copied to CephFS - Backport #63575: reef: qa: ModuleNotFoundError: No module named XXXXXXIn ProgressMilind ChangireActions
Copied to CephFS - Backport #63576: quincy: qa: ModuleNotFoundError: No module named XXXXXXIn ProgressMilind ChangireActions
Actions #1

Updated by Venky Shankar 8 months ago

I too ran into this in one of my runs. I believe this is an env thing since a bunch of other tests from my run had issues related to module paths and binaries in general.

Actions #2

Updated by Venky Shankar 8 months ago

  • Status changed from New to Can't reproduce

Please reopen if this shows up again.

Actions #3

Updated by Milind Changire 7 months ago

This has shown up in my dev testing branch for the tasks.cephfs.test_snap_schedules tests set as is also evident from the traceback in the description.

I wonder why these imports are needed to be done inside the function definition.
Aren't they supposed to be at the top of the file ?

9fb85b02f3ff (Neeraj Pratap Singh 2022-04-20 18:24:22 +0530 590)     def get_snap_dir_name(self):
9fb85b02f3ff (Neeraj Pratap Singh 2022-04-20 18:24:22 +0530 591)         from tasks.cephfs.fuse_mount import FuseMount
9fb85b02f3ff (Neeraj Pratap Singh 2022-04-20 18:24:22 +0530 592)         from tasks.cephfs.kernel_mount import KernelMount

Actions #4

Updated by Milind Changire 6 months ago

  • Pull request ID set to 54471
Actions #5

Updated by Milind Changire 6 months ago

  • Backport set to reef,quincy
Actions #6

Updated by Milind Changire 6 months ago

  • Assignee set to Milind Changire
Actions #7

Updated by Milind Changire 6 months ago

  • Status changed from Can't reproduce to Pending Backport
Actions #8

Updated by Backport Bot 6 months ago

  • Copied to Backport #63575: reef: qa: ModuleNotFoundError: No module named XXXXXX added
Actions #9

Updated by Backport Bot 6 months ago

  • Copied to Backport #63576: quincy: qa: ModuleNotFoundError: No module named XXXXXX added
Actions #10

Updated by Backport Bot 6 months ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF