Bug 1532619 - TripleO overrides ceph-ansible defaults ceph_conf_overrides
Summary: TripleO overrides ceph-ansible defaults ceph_conf_overrides
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.0
Hardware: All
OS: Linux
unspecified
low
Target Milestone: z1
: 3.0
Assignee: Sébastien Han
QA Contact: Yogev Rabl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-09 13:08 UTC by Gregory Charot
Modified: 2018-06-26 23:47 UTC (History)
15 users (show)

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:
Clone Of:
Environment:
Last Closed: 2018-03-08 15:52:40 UTC
Embargoed:
jomurphy: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 2307 0 None closed container: change the way we force no logs inside the container 2020-06-06 14:33:14 UTC
Red Hat Product Errata RHBA-2018:0474 0 normal SHIPPED_LIVE Red Hat Ceph Storage 3.0 bug fix update 2018-03-08 20:51:53 UTC

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


Note You need to log in before you can comment on or make changes to this bug.