Project

General

Profile

Bug #11864

error in ext_mime_map_init() when /etc/mime.types is missing

Added by Ken Dreyer over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
Start date:
06/03/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:

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

Copied to rgw - Backport #12501: error in ext_mime_map_init() when /etc/mime.types is missing Resolved 06/03/2015

Associated revisions

Revision c74a2f86 (diff)
Added by Ken Dreyer over 3 years ago

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 <>

Revision eccf3698 (diff)
Added by Ken Dreyer about 3 years ago

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 <>
(cherry picked from commit c74a2f86a1f9b15aae0e723b410bedfc1d01a79b)

History

#1 Updated by Sage Weil over 3 years ago

  • Priority changed from Normal to Urgent

urgent until we know what the impact is

#2 Updated by Sage Weil over 3 years ago

this is a config or doc issue, i think. Ken, what do you suggest?

#3 Updated by Ken Dreyer over 3 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?)

#4 Updated by Yehuda Sadeh over 3 years ago

  • Assignee set to Ken Dreyer

We can certainly do that.

#5 Updated by Ken Dreyer over 3 years ago

  • Status changed from In Progress to Need Review

#6 Updated by Ken Dreyer over 3 years ago

  • Backport set to hammer

#7 Updated by Ken Dreyer over 3 years ago

  • Status changed from Need Review to Pending Backport

#8 Updated by Loic Dachary about 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF