Project

General

Profile

Actions

Bug #58643

closed
CB AM

ragweed fails with ModuleNotFoundError (No module named 'rados')

Bug #58643: ragweed fails with ModuleNotFoundError (No module named 'rados')

Added by Casey Bodley almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

2023-02-05T15:08:30.417 DEBUG:teuthology.orchestra.run.smithi170:ragweed tests against rgw> RAGWEED_CONF=/home/ubuntu/cephtest/archive/ragweed.client.0.conf RAGWEED_STAGES=prepare,check BOTO_CONFIG=/home/ubuntu/cephtest/boto.cfg /home/ubuntu/cephtest/ragweed/virtualenv/bin/python -m nose -w /home/ubuntu/cephtest/ragweed -v -a '!fails_on_rgw'
2023-02-05T15:08:30.685 INFO:teuthology.orchestra.run.smithi170.stderr:Failure: ModuleNotFoundError (No module named 'rados') ... ERROR
2023-02-05T15:08:30.685 INFO:teuthology.orchestra.run.smithi170.stderr:
2023-02-05T15:08:30.685 INFO:teuthology.orchestra.run.smithi170.stderr:======================================================================
2023-02-05T15:08:30.686 INFO:teuthology.orchestra.run.smithi170.stderr:ERROR: Failure: ModuleNotFoundError (No module named 'rados')
2023-02-05T15:08:30.686 INFO:teuthology.orchestra.run.smithi170.stderr:----------------------------------------------------------------------
2023-02-05T15:08:30.686 INFO:teuthology.orchestra.run.smithi170.stderr:Traceback (most recent call last):
2023-02-05T15:08:30.686 INFO:teuthology.orchestra.run.smithi170.stderr:  File "/home/ubuntu/cephtest/ragweed/virtualenv/lib64/python3.6/site-packages/nose/failure.py", line 39, in runTest
2023-02-05T15:08:30.686 INFO:teuthology.orchestra.run.smithi170.stderr:    raise self.exc_val.with_traceback(self.tb)
2023-02-05T15:08:30.686 INFO:teuthology.orchestra.run.smithi170.stderr:  File "/home/ubuntu/cephtest/ragweed/virtualenv/lib64/python3.6/site-packages/nose/loader.py", line 418, in loadTestsFromName
2023-02-05T15:08:30.687 INFO:teuthology.orchestra.run.smithi170.stderr:    addr.filename, addr.module)
2023-02-05T15:08:30.687 INFO:teuthology.orchestra.run.smithi170.stderr:  File "/home/ubuntu/cephtest/ragweed/virtualenv/lib64/python3.6/site-packages/nose/importer.py", line 47, in importFromPath
2023-02-05T15:08:30.687 INFO:teuthology.orchestra.run.smithi170.stderr:    return self.importFromDir(dir_path, fqname)
2023-02-05T15:08:30.687 INFO:teuthology.orchestra.run.smithi170.stderr:  File "/home/ubuntu/cephtest/ragweed/virtualenv/lib64/python3.6/site-packages/nose/importer.py", line 94, in importFromDir
2023-02-05T15:08:30.687 INFO:teuthology.orchestra.run.smithi170.stderr:    mod = load_module(part_fqname, fh, filename, desc)
2023-02-05T15:08:30.688 INFO:teuthology.orchestra.run.smithi170.stderr:  File "/usr/lib64/python3.6/imp.py", line 235, in load_module
2023-02-05T15:08:30.688 INFO:teuthology.orchestra.run.smithi170.stderr:    return load_source(name, filename, file)
2023-02-05T15:08:30.688 INFO:teuthology.orchestra.run.smithi170.stderr:  File "/usr/lib64/python3.6/imp.py", line 172, in load_source
2023-02-05T15:08:30.688 INFO:teuthology.orchestra.run.smithi170.stderr:    module = _load(spec)
2023-02-05T15:08:30.688 INFO:teuthology.orchestra.run.smithi170.stderr:  File "<frozen importlib._bootstrap>", line 684, in _load
2023-02-05T15:08:30.689 INFO:teuthology.orchestra.run.smithi170.stderr:  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
2023-02-05T15:08:30.689 INFO:teuthology.orchestra.run.smithi170.stderr:  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
2023-02-05T15:08:30.689 INFO:teuthology.orchestra.run.smithi170.stderr:  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2023-02-05T15:08:30.689 INFO:teuthology.orchestra.run.smithi170.stderr:  File "/home/ubuntu/cephtest/ragweed/ragweed/tests/tests.py", line 2, in <module>
2023-02-05T15:08:30.689 INFO:teuthology.orchestra.run.smithi170.stderr:    import ragweed.framework
2023-02-05T15:08:30.690 INFO:teuthology.orchestra.run.smithi170.stderr:  File "/home/ubuntu/cephtest/ragweed/ragweed/framework.py", line 14, in <module>
2023-02-05T15:08:30.690 INFO:teuthology.orchestra.run.smithi170.stderr:    import rados
2023-02-05T15:08:30.690 INFO:teuthology.orchestra.run.smithi170.stderr:ModuleNotFoundError: No module named 'rados'
2023-02-05T15:08:30.690 INFO:teuthology.orchestra.run.smithi170.stderr:
2023-02-05T15:08:30.690 INFO:teuthology.orchestra.run.smithi170.stderr:----------------------------------------------------------------------
2023-02-05T15:08:30.691 INFO:teuthology.orchestra.run.smithi170.stderr:Ran 1 test in 0.053s
2023-02-05T15:08:30.691 INFO:teuthology.orchestra.run.smithi170.stderr:
2023-02-05T15:08:30.691 INFO:teuthology.orchestra.run.smithi170.stderr:FAILED (errors=1)

examples:
http://qa-proxy.ceph.com/teuthology/gsalomon-2023-02-05_14:42:52-rgw:verify-json_rgw_integration-distro-default-smithi/7149177/teuthology.log
http://qa-proxy.ceph.com/teuthology/cbodley-2023-02-03_15:44:47-rgw-wip-cbodley-testing-distro-default-smithi/7146943/teuthology.log

LF Updated by Laura Flores almost 4 years ago Actions #2

@Casey I have not seen this in the rados suite yet, but I will keep an eye out.

LF Updated by Laura Flores almost 4 years ago Actions #3

  • Tags set to test-failure

CB Updated by Casey Bodley almost 4 years ago Actions #4

  • Assignee set to Ali Maredia

CB Updated by Casey Bodley almost 4 years ago Actions #5

i'm seeing the failures under rgw/verify (which only runs against centos8) and rgw/multifs (which only runs against ubuntu), so it isn't specific to either distro

MK Updated by Mark Kogan almost 4 years ago Actions #6

reviewing the mentioned teuthology.log files,

saw something out of the ordinary in both:

for demonstration lets take: http://qa-proxy.ceph.com/teuthology/cbodley-2023-02-03_15:44:47-rgw-wip-cbodley-testing-distro-default-smithi/7146943/teuthology.log

searching this file for `python3-r`
shows that

2023-02-04T15:10:46.600 INFO:teuthology.orchestra.run.smithi159.stdout: python3-rados                   x86_64  2:18.0.0-2056.g12d02ca9.el8          ceph              371 k
2023-02-04T15:10:46.600 INFO:teuthology.orchestra.run.smithi159.stdout: python3-rbd                     x86_64  2:18.0.0-2056.g12d02ca9.el8          ceph              363 k
2023-02-04T15:10:46.600 INFO:teuthology.orchestra.run.smithi159.stdout: python3-rgw                     x86_64  2:18.0.0-2056.g12d02ca9.el8          ceph              107 k

are downloaded
BUT later only
2023-02-04T15:10:52.716 INFO:teuthology.orchestra.run.smithi159.stdout:(21/105): python3-rbd-18.0.0-2056.g12d02ca9.el8 6.1 MB/s | 363 kB     00:00                                                                                                                                                                                                    
2023-02-04T15:10:52.767 INFO:teuthology.orchestra.run.smithi159.stdout:(23/105): python3-rgw-18.0.0-2056.g12d02ca9.el8 2.1 MB/s | 107 kB     00:00  

are installed !

if `python3-rados` rpm is NOT getting installed, it would explain the error:

ERROR: Failure: ModuleNotFoundError (No module named 'rados')

CB Updated by Casey Bodley almost 4 years ago Actions #7

from that log, i see 'python3-rados' during the download step

(20/105): python3-rados-18.0.0-2056.g12d02ca9.e

then during the install step, it's called 'python3-rados-2'

Installing : python3-rados-2:18.0.0-2056.g12d02ca9.el8.x86_64 8/107

i compared this against a successful run from january, and saw the same pattern:

http://qa-proxy.ceph.com/teuthology/amaredia-2023-01-23_21:39:45-rgw-wip-ali-testing-distro-default-smithi/7134359/teuthology.log

CB Updated by Casey Bodley almost 4 years ago Actions #8

looking back at ragweed PRs, this one now looks suspicious because it removed the --system-site-packages flag:

https://github.com/ceph/ragweed/pull/23

that worked when i tested it, so i assumed the failure wasn unrelated. since that PR was only necessary for ubuntu22, i'll revert it from the ceph-* branches. we're replacing virtualenv+nose with tox+pytest there anyway

LF Updated by Laura Flores almost 4 years ago Actions #11

@Casey how exactly was this fixed? Something was reverted?

CB Updated by Casey Bodley almost 4 years ago Actions #12

Laura Flores wrote:

@Casey how exactly was this fixed? Something was reverted?

correct, i removed the commit from https://github.com/ceph/ragweed/pull/23 all of its release branches

Actions

Also available in: PDF Atom