Bug 1352638

Summary: rbdmap map config file is packaged as an executable
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Martin Bukatovic <mbukatov>
Component: BuildAssignee: Ken Dreyer (Red Hat) <kdreyer>
Status: CLOSED ERRATA QA Contact: Martin Bukatovic <mbukatov>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.0CC: ceph-eng-bugs, dzafman, hnallurv, kchai, kdreyer, mbukatov, vimishra
Target Milestone: rc   
Target Release: 2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-10.2.7-2.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-19 13:26:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Bukatovic 2016-07-04 13:59:24 UTC
Description of problem
======================

Ceph configuration file /etc/ceph/rbdmap is packaged with 'x' access right.

Version-Release
===============

ceph-common-10.2.2-5.el7cp.x86_64

How reproducible
================

100 %

Steps to Reproduce
==================

1. Install (or just download) ceph-common package
2. Check access rights of /etc/ceph/rbdmap file

Actual results
==============

Default RBDMAPFILE is executable file:

~~~
# rpm -qlv ceph-common | grep '/etc/ceph/rbdmap'
-rwxr-xr-x    1 root    root                       92 Jun 17 19:18 /etc/ceph/rbdmap
~~~

Expected results
================

Default RBDMAPFILE is not executable file:

~~~
# rpm -qlv ceph-common | grep '/etc/ceph/rbdmap'
-rw-r--r--    1 root    root                       92 Jun 17 19:18 /etc/ceph/rbdmap
~~~

Additional info
===============

Manpage rbdmap(8) states that:

> ... RBDMAPFILE, which defaults to /etc/ceph/rbdmap. This file is expected to
> contain  a  list of RBD images and, possibly, parameters to be passed to the
> underlying rbd command.

In other words: /etc/ceph/rbdmap seems to be a plain config file and there
is no need to flag it as an executable.

Comment 1 Ken Dreyer (Red Hat) 2016-07-05 16:49:24 UTC
This looks cosmetic, retargeting to 2.1

Comment 3 Ken Dreyer (Red Hat) 2017-01-17 03:16:22 UTC
This is low-priority, and missed the v10.2.5 cutoff, so we'll take this in the next rebase from upstream (RH Ceph Storage 2.3)

Comment 5 Ken Dreyer (Red Hat) 2017-04-04 20:43:09 UTC
We will resolve this in RH Ceph Storage 2.3

Comment 11 errata-xmlrpc 2017-06-19 13:26:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1497