Actions
Fix #11012
closedradosgw-agent: default log location breaks when it doesn't exist
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
radosgw-agent --test-server-host localhost --test-server-port 8888 --src-access-key SRC_ACCESS_KEY --src-secret-key SRC_SECRET_KEY --dest-access-key DEST_ACCESS_KEY --dest-secret-key DEST_SECRET_KEY http://localhost:8888 Traceback (most recent call last): File "/Users/alfredo/.virtualenvs/agent/bin/radosgw-agent", line 9, in <module> load_entry_point('radosgw-agent==1.2.1', 'console_scripts', 'radosgw-agent')() File "/Users/alfredo/python/radosgw-agent/radosgw_agent/cli.py", line 250, in main filename=args.log_file, File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/handlers.py", line 391, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 903, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 926, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 2] No such file or directory: '/var/log/ceph/radosgw-agent/radosgw-agent.log'
Updated by Alfredo Deza about 9 years ago
- Status changed from New to Fix Under Review
Pull Request opened: https://github.com/ceph/radosgw-agent/pull/25
Updated by Alfredo Deza about 9 years ago
- Status changed from Fix Under Review to Resolved
merged commit 1fe48e4 into master
Actions