Bug #11864
error in ext_mime_map_init() when /etc/mime.types is missing
0%
Description
I'm testing 0.94.1. If /etc/mime.types
is not present on a system (eg, from the mailcap RPM), then RGW prints this error in its log:
2015-06-03 14:36:08.108864 7fadc019e880 0 ext_mime_map_init(): failed to open file=/etc/mime.types ret=-2
Does this file affect RGW's operation at all?
Related issues
Associated revisions
packaging: RGW depends on /etc/mime.types
If the mimecap RPM or mime-support DEB is not installed, then the
/etc/mime.types file is not present on the system. RGW attempts to read
this file during startup, and if the file is not present, RGW logs an
error:
ext_mime_map_init(): failed to open file=/etc/mime.types ret=-2
Make the radosgw package depend on the mailcap/mime-support packages so
that /etc/mime.types is always available on RGW systems.
http://tracker.ceph.com/issues/11864 Fixes: #11864
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
packaging: RGW depends on /etc/mime.types
If the mimecap RPM or mime-support DEB is not installed, then the
/etc/mime.types file is not present on the system. RGW attempts to read
this file during startup, and if the file is not present, RGW logs an
error:
ext_mime_map_init(): failed to open file=/etc/mime.types ret=-2
Make the radosgw package depend on the mailcap/mime-support packages so
that /etc/mime.types is always available on RGW systems.
http://tracker.ceph.com/issues/11864 Fixes: #11864
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
(cherry picked from commit c74a2f86a1f9b15aae0e723b410bedfc1d01a79b)
History
#1 Updated by Sage Weil over 8 years ago
- Priority changed from Normal to Urgent
urgent until we know what the impact is
#2 Updated by Sage Weil over 8 years ago
this is a config or doc issue, i think. Ken, what do you suggest?
#3 Updated by Ken Dreyer about 8 years ago
- Status changed from New to In Progress
We can make the ceph-radosgw
package depend on the "mailcap" RPM ("mime-support" on Ubuntu) so that we ensure /etc/mime.types
is present on the system.
https://github.com/ceph/ceph-ci/tree/wip-11864-rgw-mime-types-pkg
What do you think?
(also, is ceph-ci.git wired into Gitbuilder?)
#5 Updated by Ken Dreyer about 8 years ago
- Status changed from In Progress to Fix Under Review
PR for master: https://github.com/ceph/ceph/pull/5110
#6 Updated by Ken Dreyer about 8 years ago
- Backport set to hammer
#7 Updated by Ken Dreyer about 8 years ago
- Status changed from Fix Under Review to Pending Backport
#8 Updated by Loïc Dachary about 8 years ago
- Status changed from Pending Backport to Resolved