Skip to content

Commit

Permalink
packaging: RGW depends on /etc/mime.types
Browse files Browse the repository at this point in the history
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 c74a2f8)
  • Loading branch information
ktdreyer authored and ldachary committed Jul 28, 2015
1 parent 45beb86 commit eccf369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ Requires: apache2-mod_fcgid
%else
BuildRequires: expat-devel
BuildRequires: fcgi-devel
Requires: mailcap
%endif
%description radosgw
This package is an S3 HTTP REST gateway for the RADOS object store. It
Expand Down
3 changes: 2 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ Description: Ceph distributed file system client library (development files)

Package: radosgw
Architecture: linux-any
Depends: ceph-common (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
Depends: ceph-common (= ${binary:Version}), mime-support,
${misc:Depends}, ${shlibs:Depends}
Description: REST gateway for RADOS distributed object store
RADOS is a distributed object store used by the Ceph distributed
storage system. This package provides a REST gateway to the
Expand Down

0 comments on commit eccf369

Please sign in to comment.