Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1541965 - neutron* containers always logging to stdout
neutron* containers always logging to stdout
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-oslo (Show other bugs)
13.0 (Queens)
x86_64 Linux
urgent Severity urgent
: beta
: 13.0 (Queens)
Assigned To: Assaf Muller
Roee Agiman
: Triaged
: 1540499 (view as bug list)
Depends On:
Blocks: 1540949
  Show dependency treegraph
 
Reported: 2018-02-05 05:33 EST by Artem Hrechanychenko
Modified: 2018-06-27 09:44 EDT (History)
11 users (show)

See Also:
Fixed In Version: puppet-oslo-12.3.1-0.20180221081308.3f4f066.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-06-27 09:43:27 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 534629 None master: MERGED puppet-oslo: Revert "Update olso.log parameters" (Ib63ea1783c2f85223b703166013cb817c799fc5a) 2018-03-21 09:41 EDT
Red Hat Product Errata RHEA-2018:2086 None None None 2018-06-27 09:44 EDT

  None (edit)
Description Artem Hrechanychenko 2018-02-05 05:33:49 EST
Description of problem:
[heat-admin@controller-0 ~]$ sudo ls /var/log/containers/
aodh  ceilometer  cinder  glance  gnocchi  heat  horizon  httpd  keystone  memcached  neutron  nova  panko  swift
[heat-admin@controller-0 ~]$ sudo ls /var/log/containers/neutron
[heat-admin@controller-0 ~]$ 

[heat-admin@controller-0 ~]$ sudo docker exec -it neutron_api /bin/bash 
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
()[neutron@controller-0 /]$ ls /var/log/neutron/                                                                                                                                                                  
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
()[neutron@controller-0 /]$ 


the same for 
2447e6d76914        192.168.24.1:8787/rhosp13/openstack-neutron-openvswitch-agent:2018-01-26.3   "kolla_start"            2 days ago          Up 2 days (healthy)                       neutron_ovs_agent
25e728ce5cab        192.168.24.1:8787/rhosp13/openstack-neutron-l3-agent:2018-01-26.3            "kolla_start"            2 days ago          Up 2 days (healthy)                       neutron_l3_agent
ff124f055e78        192.168.24.1:8787/rhosp13/openstack-neutron-metadata-agent:2018-01-26.3      "kolla_start"            2 days ago          Up 2 days (healthy)                       neutron_metadata_agent
a9a4458d7bd0        192.168.24.1:8787/rhosp13/openstack-neutron-dhcp-agent:2018-01-26.3          "kolla_start"            2 days ago          Up 2 days (healthy)                       neutron_dhcp
eddc949d7290        192.168.24.1:8787/rhosp13/openstack-neutron-server:2018-01-26.3              "kolla_start"            2 days ago          Up 2 days                                 neutron_api

Version-Release number of selected component (if applicable):
docker images:2018-01-26.3  

How reproducible:
always

Steps to Reproduce:
1. Deploy OSP13
2. Check /var/log/containers on OC node

Actual results:
/var/log/containers/neutron is empty

Expected results:
/var/log/containers/neutron isn't empty

Additional info:
Comment 2 Assaf Muller 2018-02-07 09:42:27 EST
*** Bug 1540499 has been marked as a duplicate of this bug. ***
Comment 3 Assaf Muller 2018-02-07 09:45:23 EST
Brent added on a Networking DFG call that this is likely a recent regression. Assigned to Or to investigate.
Comment 6 Daniel Alvarez Sanchez 2018-02-08 11:48:24 EST
This same thing happened to me today with ovn metadata agent.
I found out that we're searching for log_dir apparently and the option configured by TripleO is log-dir:

[root@overcloud-novacompute-0 neutron]# pwd
/var/lib/config-data/puppet-generated/neutron/etc/neutron
[root@overcloud-novacompute-0 neutron]# grep log-dir neutron.conf 
log-dir=/var/log/neutron

After I changed it to log_dir, I could verify that it started to log to /var/log/neutron (/var/log/containers/neutron) outside the container.

The reason why this fails is because of this patch [0] which makes oslo-puppet to write the "xxx-xxx" variables but then argparser will convert it to "xxx_xxx". My understanding is that [0] should be reverted.

[0] https://review.openstack.org/#/c/444345/6/manifests/log.pp@157
Comment 7 Daniel Alvarez Sanchez 2018-02-08 12:10:58 EST
This is the revert: https://review.openstack.org/#/c/534629/
Comment 13 errata-xmlrpc 2018-06-27 09:43:27 EDT
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/RHEA-2018:2086

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