Actions
Bug #62706
openqa: ModuleNotFoundError: No module named XXXXXX
% 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
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.
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.
Updated by Venky Shankar 8 months ago
- Status changed from New to Can't reproduce
Please reopen if this shows up again.
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
Updated by Milind Changire 6 months ago
- Status changed from Can't reproduce to Pending Backport
Updated by Backport Bot 6 months ago
- Copied to Backport #63575: reef: qa: ModuleNotFoundError: No module named XXXXXX added
Updated by Backport Bot 6 months ago
- Copied to Backport #63576: quincy: qa: ModuleNotFoundError: No module named XXXXXX added
Actions