Bug 1532619

Summary: TripleO overrides ceph-ansible defaults ceph_conf_overrides
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Gregory Charot <gcharot>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.0CC: adeza, apevec, aschoen, ceph-eng-bugs, gfidente, gmeno, hnallurv, kdreyer, lhh, mburns, nthomas, rhel-osp-director-maint, sankarshan, shan, srevivo
Target Milestone: z1Flags: jomurphy: needinfo+
Target Release: 3.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.17-1.el7cp Ubuntu: ceph-ansible_3.0.17-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-08 15:52:40 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 Gregory Charot 2018-01-09 13:08:55 UTC
Description of problem:

TripleO overrides ceph-ansible defaults ceph_conf_overrides,
/usr/share/ceph-ansible/roles/ceph-docker-common/defaults/main.yml defines a default log file to /dev/null to avoid double logging (file + journald). This parameter is ignored as tripleO builds its own ceph_conf_overrides map in /usr/share/openstack-tripleo-heat-templates/docker/services/ceph-ansible/ceph-base.yaml

Version-Release number of selected component (if applicable):

12

How reproducible:


Steps to Reproduce:
1. Deploy
2. Containers still logs in /var/log (inside the container)
docker exec -ti ceph-mon-lab-controller01 cat  /var/log/ceph/ceph.log
(logging)
grep log /etc/ceph/ceph.conf
no match

3.

Actual results:

Containers are logging in files whereas ceph ansible default is to log to /dev/null
/usr/share/ceph-ansible/roles/ceph-docker-common/defaults/main.yml
---
ceph_conf_overrides:
  global:
    log_file: /dev/null

Expected results:

log_file: /dev/null in ceph.conf


Additional info:

Either include ceph-ansible ceph_conf_overrides values as part of the deployment or include them directly into /usr/share/openstack-tripleo-heat-templates/docker/services/ceph-ansible/ceph-base.yaml (require tracking over releases)

For now only one parameter (log_file) so impact is pretty low.

Comment 2 Sébastien Han 2018-01-09 13:40:01 UTC
For now, I changed it in ceph-ansible, sounds easier/faster than committing to TripleO.

Comment 5 Ken Dreyer (Red Hat) 2018-01-17 20:46:50 UTC
Fixed in ceph-ansible v3.0.17 upstream

Comment 11 Yogev Rabl 2018-02-20 16:37:10 UTC
Verified

Comment 14 errata-xmlrpc 2018-03-08 15:52:40 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-2018:0474