Project

General

Profile

Actions

Bug #48105

closed

cephadm.py: failure on interactive on error for archive file handling

Added by Deepika Upadhyay over 3 years ago. Updated about 3 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

when running on interactive on error mode,iirc, observed we might not be handling archive path generation:

2020-11-03 18:13:16,227.227 INFO:teuthology.orchestra.run.smithi091:> rm -rf /home/ubuntu/cephtest/cephadm
2020-11-03 18:13:16,234.234 INFO:tasks.cephadm:Teardown complete
2020-11-03 18:13:16,234.234 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/ideepika/teuthology/teuthology/run_tasks.py", line 93, in run_tasks
    manager.__enter__()
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/teuthworker/src/github.com_ceph_ceph-c_wip-yuri-testing-2020-10-28-0947-octopus/qa/tasks/cephadm.py", line 1278, in task
    lambda: ceph_clients(ctx=ctx, config=config),
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/ideepika/teuthology/teuthology/contextutil.py", line 55, in nested
    raise exc[1]
  File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/teuthworker/src/github.com_ceph_ceph-c_wip-yuri-testing-2020-10-28-0947-octopus/qa/tasks/cephadm.py", line 1155, in initialize_config
    yield
  File "/home/ideepika/teuthology/teuthology/contextutil.py", line 31, in nested
    vars.append(enter())
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/teuthworker/src/github.com_ceph_ceph-c_wip-yuri-testing-2020-10-28-0947-octopus/qa/tasks/cephadm.py", line 165, in ceph_log
    with open(os.path.join(ctx.archive, 'info.yaml'), 'r+') as info_file:
  File "/home/ideepika/teuthology/virtualenv/lib/python3.6/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Actions #1

Updated by Deepika Upadhyay over 3 years ago

to reproduce: on teuthology:


~/teuthology/virtualenv/bin/teuthology --verbose --lock --block /home/ideepika/ideepika-2020-11-03_04\:03\:28-rados-wip-yuri-testing-2020-10-28-0947-octopus-distro-basic-smithi-5585709.yaml --machine smithi

Actions #2

Updated by Sebastian Wagner about 3 years ago

  • Status changed from New to Can't reproduce

that code changed in the meantime

Actions

Also available in: Atom PDF