Bug #6099
ceph-rest-api: default log file doesn't work because not daemon
Description
ceph-rest-api assumes that it can either get the user's choice or the default log file from
rados_conf_get("log_file"). However, the default for non-daemons is not "/var/log/ceph/$cluster-$name.log",
but rather "", by design.
The easy fix is to make ceph-rest-api set its own default.
Associated revisions
ceph_rest_api.py: create own default for log_file
common/config thinks the default log_file for non-daemons should be "".
Override that so that the default is
/var/log/ceph/{cluster}-{name}.{pid}.log
since ceph-rest-api is more of a daemon than a client.
Fixes: #6099
Backport: dumpling
Signed-off-by: Dan Mick <dan.mick@inktank.com>
ceph_rest_api.py: create own default for log_file
common/config thinks the default log_file for non-daemons should be "".
Override that so that the default is
/var/log/ceph/{cluster}-{name}.{pid}.log
since ceph-rest-api is more of a daemon than a client.
Fixes: #6099
Backport: dumpling
Signed-off-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit 2031f391c3df68e0d9e381a1ef3fe58d8939f0a8)
History
#1 Updated by Dan Mick over 9 years ago
- Status changed from In Progress to Fix Under Review
#2 Updated by Dan Mick over 9 years ago
- Status changed from Fix Under Review to Resolved