Bug 1335939
| Summary: | Installer should configure docker logging | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Robert Rati <rrati> |
| Component: | Installer | Assignee: | Andrew Butcher <abutcher> |
| Status: | CLOSED ERRATA | QA Contact: | Ma xiaoqiang <xiama> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.2.0 | CC: | aos-bugs, bleanhar, dwalsh, erich, gpei, jeder, jialiu, jkaur, jokerman, mmccomas, pportant, rmeggins, tstclair, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openshift-ansible-3.2.1-1.git.0.b8d1b5e.el7 | Doc Type: | Enhancement |
| Doc Text: |
Installer will now configure docker logging options by default, enabling a 50mb log size limit with one rolling log file. These settings may be overridden by specifying the openshift_docker_options inventory variable, for example: openshift_docker_options="--log-driver=json-file --log-opt max-size=50m -l warn --ipv6=false".
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-06-27 15:04:25 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1267746, 1335941 | ||
|
Description
Robert Rati
2016-05-13 15:05:10 UTC
There is an issue when we try to configure the docker logging driver to use the journal logging, where fluentd will no longer collect and forward the logging data. one of the problems is that the https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter/blob/master/lib/fluent/plugin/filter_kubernetes_metadata.rb was designed specifically to work with the fluentd in_tail plugin with JSON formatted files in /var/log/containers/*.log. I'm currently working on allowing this plugin to work with the fluentd in_journal record format. Check on openshift-ansible-3.2.1-1.git.0.b8d1b5e Install env with default configuration Check the docker option after installation OPTIONS=' --selinux-enabled --insecure-registry=172.31.0.0/16 --log-driver=json-file --log-opt max-size=50m' the default docker log option take effect, move this issue to VERIFIED. Add more test result based on comment 10, when user specifying 'openshift_docker_options="-l warn --ipv6=false"', the default docker option - '--log-driver=json-file --log-opt max-size=50m' will be overwritten like the following: OPTIONS=' --selinux-enabled --insecure-registry=172.30.0.0/16 -l warn --ipv6=false' *** Bug 1342544 has been marked as a duplicate of this bug. *** 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-2016:1344 |