Kata container runtime logs needs own file

Bug #1864372 reported by Brent Rowsell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Triaged
Low
Unassigned

Bug Description

Brief Description
-----------------
Kata container runtime logs are currently going to kern.log. This is incorrect, only the host kernel logs should be going there. The kata runtime logs should be going to a separate file setup with logs rotation. Example

2020-02-23T17:53:38.000 controller-0 kata[1857644]: warning time="2020-02-23T17:53:38.019295983Z" level=warning msg="sandbox's cgroup won't be updated: cgroup path is empty" ID=30d3bd8f6a70c057f9df7e667129375d6ca1b6d75bd9ac9b7bd75b1605a2118f sandbox=30d3bd8f6a70c057f9df7e667129375d6ca1b6d75bd9ac9b7bd75b1605a2118f source=virtcontainers subsystem=sandbox
2020-02-23T17:53:48.000 controller-0 kata[1857644]: warning time="2020-02-23T17:53:48.326678792Z" level=warning msg="Cannot hotplug 1 CPUs, currently this SB has 2 CPUs and the maximum amount of CPUs is 2" ID=30d3bd8f6a70c057f9df7e667129375d6ca1b6d75bd9ac9b7bd75b1605a2118f source=virtcontainers subsystem=qemu

Severity
--------
Major

Steps to Reproduce
------------------
Launch a container with kata runtime

Expected Behavior
------------------
No kata runtime logs in kern.log

Actual Behavior
----------------
Kata runtime logs in kern.log

Reproducibility
---------------
100%

System Configuration
--------------------
All

Branch/Pull Time/Commit
-----------------------
BUILD_DATE="2020-02-22 04:15:31 -0500"

Last Pass
---------
Never

Timestamp/Logs
--------------
See above

Test Activity
-------------
Developer testing

Workaround
----------
None

Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.4.0 / medium priority - impacts debuggability

Unsure if this is related to the upstream kata container project or specific to the StarlingX config

Changed in starlingx:
importance: Undecided → Medium
status: New → Triaged
tags: added: stx.4.0 stx.containers
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Assigning to the Kata Containers Feature Prime

Changed in starlingx:
assignee: nobody → Lin Shuicheng (shuicheng)
Revision history for this message
Lin Shuicheng (shuicheng) wrote :

I checked kata config file. It seems it cannot configure the output log file.
I will check it further.

Revision history for this message
Lin Shuicheng (shuicheng) wrote :

Currently, kata will always output log to kern.log. With default setting, kata will output waning/error message only to kern.log.
There is no configuration we could disable it or configure it currently.

Here is the words from kata:
https://github.com/kata-containers/runtime#kata-containerd-shimv2
"
Kata containerd shimv2
The Kata containerd shimv2 runtime logs through containerd, and its logs will be sent to wherever the containerd logs are directed. However, the shimv2 runtime also always logs to the system log (syslog or journald) under the identifier name of kata.
"

Revision history for this message
Brent Rowsell (brent-rowsell) wrote :

SO what is the plan to address this LP ?

Revision history for this message
Lin Shuicheng (shuicheng) wrote :

I prefer to keep kata log in kern.log.
What is the issue with it?

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Lowering the priority as it appears there is no mechanism to do this in kata

Changed in starlingx:
importance: Medium → Low
tags: removed: stx.4.0
Changed in starlingx:
assignee: Lin Shuicheng (shuicheng) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.