Bug 18369 - Cauldron virtual terminals are filled with logs (using kernel-server)
Summary: Cauldron virtual terminals are filled with logs (using kernel-server)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-05 10:47 CEST by Jüri Ivask
Modified: 2016-06-13 11:19 CEST (History)
4 users (show)

See Also:
Source RPM: kernel-4.6.0-0.rc7.2.mga6
CVE:
Status comment:


Attachments
tty2 filled with logs (663.73 KB, image/png)
2016-05-05 10:49 CEST, Jüri Ivask
Details
opened on the tty2 mc screen filled with logs (533.02 KB, image/png)
2016-05-05 10:50 CEST, Jüri Ivask
Details

Description Jüri Ivask 2016-05-05 10:47:35 CEST
Description of problem: Cauldron virtual terminals are filled with logs making it very difficult if not impossible to work there. The logs are displayed also in the opened program eg mc making it impossible to use it.

Steps to Reproduce:
1. Boot installed Cauldron to dm or desktop
2. Switch to tty2 or tty3 etc
3. See the terminal filled with logs
Comment 1 Jüri Ivask 2016-05-05 10:49:01 CEST
Created attachment 7742 [details]
tty2 filled with logs
Comment 2 Jüri Ivask 2016-05-05 10:50:41 CEST
Created attachment 7743 [details]
opened on the tty2 mc screen filled with logs
Comment 3 Marja Van Waes 2016-05-12 15:29:06 CEST
I don't have that problem in cauldron with the applications I use in a VT, but I never use mc. I do only logs when switching to a VT and attaching an external HD at the same time, so it's a bit hard to log in there, but for me there's no problem beyond that.

I'm wondering whether logging to VTs works differently with different kernels. Which kernel do you use?

CC: (none) => marja11, tmb

Comment 4 Jüri Ivask 2016-05-12 15:43:29 CEST
$ uname -r
4.6.0-server-0.rc7.2.mga6

It is not related to any application. Just switch to any VT and watch the screen getting filled with logs. Even login at VT is not needed. The logs get written only on the opened VT. It does not happen in the background.

I do not remember when it started? Maybe about 2 months ago?
Comment 5 Marja Van Waes 2016-05-12 17:03:56 CEST
OK, that might be why I don't see it: I have kernel-desktop here

What is the output of (as root)

   sysctl kernel.printk

CC: tmb => (none)
Assignee: bugsquad => tmb
Summary: Cauldron virtual terminals are filled with logs => Cauldron virtual terminals are filled with logs (using kernel-server)
Source RPM: (none) => kernel-4.6.0-0.rc7.2.mga6

Comment 6 Charles Edwards 2016-05-12 18:15:11 CEST
This is happening for me also and has been doing so for some time.

It appears to only occur when running kernel-sever.

All are 2 line audit entries
[xxxxxx.xxxxxx] audit: blah blah-------------
blah blah------------------------------------

Most if not all the entries are specific services or application for logged-in user and are also present if user is root.
If a service or app is respawning the VT is continuously filled and rendered unusable.

root@SuperSize x86_64]# sysctl kernel.printk
kernel.printk = 7	4	1	7

CC: (none) => cae

Comment 7 Marja Van Waes 2016-05-12 20:36:49 CEST
(In reply to Charles Edwards from comment #6)
> This is happening for me also and has been doing so for some time.
> 
> It appears to only occur when running kernel-sever.
> 
> All are 2 line audit entries
> [xxxxxx.xxxxxx] audit: blah blah-------------
> blah blah------------------------------------
> 
> Most if not all the entries are specific services or application for
> logged-in user and are also present if user is root.
> If a service or app is respawning the VT is continuously filled and rendered
> unusable.
> 
> root@SuperSize x86_64]# sysctl kernel.printk
> kernel.printk = 7	4	1	7

Does it help if you edit 

   /proc/sys/kernel/printk

and change the first value to 4?

(dunno whether a reboot would be needed)

IIUC, the "7" means that any messages will be shown, regardless of severity level, see
https://en.wikipedia.org/wiki/Syslog#Severity_level
A "4" shows only warnings and worse, but not level 5, 6 and 7 messages.

(The 7 at the end of the line is OK, afaik,  because that's for when booting)

I have "4	4	1	7" here in my system using kernel-desktop, that doesn't have the flooding problem.
Comment 8 Charles Edwards 2016-05-12 20:50:53 CEST
Editing /proc/sys/kernel/printk and setting 1st value to 4 does solve my issue.
The effect was immediate no reboot was needed.

Thanks.
Comment 9 Jüri Ivask 2016-05-12 21:46:18 CEST
Yes, the same situation here:
# sysctl kernel.printk
kernel.printk = 7       4       1       7

Changing the first value to 4 cures the VT log flooding problem immediately.
Comment 10 Thomas Backlund 2016-05-12 22:12:35 CEST
are you guys using grub2 ?
if so, has the word "quiet" disappeared from kernel command line ?

if there is no "quiet" kernel defaults lo loglevel 7, if "quiet" is there it defaults to 4

Somwhere along changes to grub2 and/or drakx, the default options have gone missing :/

CC: (none) => thierry.vignaud, zen25000

Comment 11 Charles Edwards 2016-05-12 23:15:55 CEST
(In reply to Thomas Backlund from comment #10)
> are you guys using grub2 ?
> if so, has the word "quiet" disappeared from kernel command line ?
> 
> if there is no "quiet" kernel defaults lo loglevel 7, if "quiet" is there it
> defaults to 4
> 
> Somwhere along changes to grub2 and/or drakx, the default options have gone
> missing :/


My understanding is for grub2 those changes now need to be made in /etc/default/grub.
For guiet you would need to add|change it to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


FWIW when testing x86_64 sta1.iso I had to add the line
GRUB_CMDLINE_LINUX_DEFAULT="nokmsboot"
to prevent X set-up from looping after installing kernel-server and wanting to use
the nvidia driver.
Comment 12 Jüri Ivask 2016-05-13 11:17:19 CEST
Installed kernel-desktop-latest and the situation is the same - VT's are filled with logs.

# uname -r
4.6.0-desktop-0.rc7.3.mga6

# sysctl kernel.printk
kernel.printk = 7       4       1       7

And yes, I'm using grub2 due to having btrfs at both / and /home - at least it (using grub2) was so configured during install.

I have no that line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
in /etc/default/grub

Inserting that line and running "update-grub" solves the reported problem.

Now: 
# sysctl kernel.printk
kernel.printk = 4       4       1       7
even for kernel-server

So it seems to be related to grub2 not to kernel-server...
Comment 13 Jüri Ivask 2016-05-13 11:20:28 CEST
Forgot to mention, that now the Plymouth boot screen is displayed again as it was previously missing for obvious reasons :)
Comment 14 Jüri Ivask 2016-05-13 11:37:31 CEST
One more comment: running again "drakboot" and reconfiguring the system removes the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" from /etc/default/grub
Comment 15 Jüri Ivask 2016-06-13 10:05:05 CEST
After today morning updates (4.6.2-server-1.mga6 + several drak packages)
the grub2 configuration remained correct, plymouth boot screen was displayed and
# sysctl kernel.printk displayed:
kernel.printk = 4       4       1       7

So, can we mark this bug as resolved?
Comment 16 Marja Van Waes 2016-06-13 11:19:32 CEST
(In reply to Jüri Ivask from comment #15)
> After today morning updates (4.6.2-server-1.mga6 + several drak packages)
> the grub2 configuration remained correct, plymouth boot screen was displayed
> and
> # sysctl kernel.printk displayed:
> kernel.printk = 4       4       1       7
> 
> So, can we mark this bug as resolved?

Yes, thanks for the feedback

@ Charles

Of course, if this bug is still valid for you, then please reopen it.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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