Project

General

Profile

Actions

Bug #16273

closed

test/ceph_objectstore_tool.py getting Exception OSError

Added by David Zafman almost 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
David Zafman
Category:
-
Target version:
-
% Done:

0%

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

Description

Getting these confusing warnings from test/ceph_objectstore_tool.py

Exception OSError: (2, 'No such file or directory', '/tmp/tmp_JE9C1') in <bound method TemporaryFileWrapper._del__ of <closed file '<fdopen>', mode 'w+b' at 0x7f35ba027150>> ignored


Related issues 1 (0 open1 closed)

Related to Ceph - Bug #16184: "FAIL: test/ceph_objectstore_tool.py" during `make check"ResolvedDavid Zafman06/07/2016

Actions
Actions #1

Updated by David Zafman almost 8 years ago

tempfile.NamedTemporaryFile([mode='w+b'[, bufsize=-1[, suffix=''[, prefix='tmp'[, dir=None[, delete=True]]]]]])
This function operates exactly as TemporaryFile() does, except that the file is guaranteed to have a visible name in the file system (on Unix, the directory entry is not unlinked). That name can be retrieved from the name attribute of the returned file-like object. Whether the name can be used to open the file a second time, while the named temporary file is still open, varies across platforms (it can be so used on Unix; it cannot on Windows NT or later). If delete is true (the default), the file is deleted as soon as it is closed.

The returned object is always a file-like object whose file attribute is the underlying true file object. This file-like object can be used in a with statement, just like a normal file.

New in version 2.3.

New in version 2.6: The delete parameter.

Actions #3

Updated by David Zafman almost 8 years ago

  • Status changed from 12 to Fix Under Review
Actions #4

Updated by David Zafman almost 8 years ago

  • Related to Bug #16184: "FAIL: test/ceph_objectstore_tool.py" during `make check" added
Actions #5

Updated by David Zafman about 7 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF