Bug #16273
closedtest/ceph_objectstore_tool.py getting Exception OSError
0%
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
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.
Updated by David Zafman almost 8 years ago
Updated by David Zafman almost 8 years ago
- Status changed from 12 to Fix Under Review
Updated by David Zafman almost 8 years ago
- Related to Bug #16184: "FAIL: test/ceph_objectstore_tool.py" during `make check" added
Updated by David Zafman about 7 years ago
- Status changed from Fix Under Review to Resolved