Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1508352 - [CRI-O] default log-level should avoid use debug in product
[CRI-O] default log-level should avoid use debug in product
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers (Show other bugs)
3.7.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.8.0
Assigned To: Giuseppe Scrivano
DeShuai Ma
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-01 05:50 EDT by DeShuai Ma
Modified: 2018-03-28 10:09 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-03-28 10:08:55 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
Red Hat Product Errata RHBA-2018:0489 None None None 2018-03-28 10:09 EDT

  None (edit)
Description DeShuai Ma 2017-11-01 05:50:13 EDT
Description of problem:
Now in cri-o system container the log-level=debug, In product we should avoid use debug mode.

Version-Release number of selected component (if applicable):
crio version 1.0.2
commit: "29077fa6fbd85f0ca9c453ab1bf1ff7b02bc3f5c"

How reproducible:
Always

Steps to Reproduce:
1.Get cri-o from private registry then check the loglevel
[root@ip-172-18-4-251 cri-o.0]# pwd
/var/lib/containers/atomic/cri-o.0
[root@ip-172-18-4-251 cri-o.0]# cat rootfs/usr/bin/run.sh
#!/bin/sh

# Ensure that new process maintain this SELinux label
PID=$$
LABEL=`tr -d '\000' < /proc/$PID/attr/current`
printf %s $LABEL > /proc/self/attr/exec

exec /usr/bin/crio --log-level=debug

2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 Derek Carr 2017-11-01 11:42:06 EDT
cri-o related bugs are not blocking 3.7, all cri-o bugs should default target release of 3.8.
Comment 2 Mrunal Patel 2017-11-03 13:23:00 EDT
Giuseppe,
Can we fix this in the installer config?
Comment 3 Giuseppe Scrivano 2017-11-03 15:20:31 EDT
PR here: https://github.com/projectatomic/atomic-system-containers/pull/139
Comment 4 Antonio Murdaca 2017-11-03 16:04:10 EDT
PR merged, moved to MODIFIED
Comment 6 DeShuai Ma 2018-01-04 03:42:10 EST
Verify on crio version 1.8.2
# cd /var/lib/containers/atomic/cri-o.0
# ./rootfs/usr/bin/crio --version
crio version 1.8.2

# cat rootfs/usr/bin/run.sh
#!/bin/sh

# Ensure that new process maintain this SELinux label
PID=$$
LABEL=`tr -d '\000' < /proc/$PID/attr/current`
printf %s $LABEL > /proc/self/attr/exec

exec /usr/bin/crio --log-level=$LOG_LEVEL
# cat config.json |grep "LOG_LEVEL"
      "LOG_LEVEL=info",
Comment 9 errata-xmlrpc 2018-03-28 10:08:55 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/RHBA-2018:0489

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