Scsi kernel messages are being printed on separate lines.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Low
|
Dave Chiluk | ||
Trusty |
Fix Released
|
Undecided
|
Dave Chiluk | ||
Utopic |
Fix Released
|
Undecided
|
Dave Chiluk |
Bug Description
[Impact]
* The move to dev_printk has sufficiently modified the scsi error output that it confuses some automated log monitoring. This causes some errors to not be definitively connected to a disk. Context does help, but separate line context is difficult to automatedly parse.
[Test Case]
* Use a misbehaving disk that uses the scsi layer and look in kern.log for what appears to be errantly wrapped lines in the scsi error output
[Regression Potential]
* Minimal both changes are clean cherry-picks. However as I do not have any misbehaving discs I was only able to boot test this. I could get fancy, but that would take more time.
* Both patches are upstream starting in utopic and vivid respectively.
[Other Info]
* This only partially resolves the issue. That's because the fix (9e5ed2a5b3) that does solve this is very large, not a clean cherry-pick or easily backportable, and requires too many prerequisites and in my opinion not SRUable. That fix is available starting in v4.0. My guess is this should be available in wily.
----- Original description----
It seems to me that kernel errors, specifically those from the scsi driver, are being wrapped, which can confound automated log monitoring.
Example from dmesg -- the lines I marked with X are being printed on separate lines where they previously weren't.
[6461080.699629] sd 0:2:2:0: [sdc] Unhandled sense code
[6461080.699646] sd 0:2:2:0: [sdc]
[6461080.699650] Result: hostbyte=DID_OK driverbyte=
[6461080.699653] sd 0:2:2:0: [sdc]
[6461080.699655] Sense Key : Medium Error [current] X
[6461080.699661] sd 0:2:2:0: [sdc]
[6461080.699663] Add. Sense: No additional sense information X
[6461080.699667] sd 0:2:2:0: [sdc] CDB:
[6461080.699669] Read(16): 88 00 00 00 00 00 0c 23 92 e0 00 00 00 08 00 00 X
[6461080.699684] end_request: I/O error, dev sdc, sector 203657952
This appears to affect 3.2 to pre-4.0, and was sane in lucid. I'm certain it affects quantal to utopic, and vivid is partially mitigated.
Changed in linux (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |
description: | updated |
Changed in linux (Ubuntu Trusty): | |
status: | New → Fix Committed |
Changed in linux (Ubuntu Utopic): | |
status: | New → Fix Committed |
tags: |
added: verification-done-utopic removed: verification-needed-utopic |
tags: |
added: verification-done-trusty removed: verification-needed-trusty |
Changed in linux (Ubuntu Trusty): | |
assignee: | nobody → Dave Chiluk (chiluk) |
Changed in linux (Ubuntu Utopic): | |
assignee: | nobody → Dave Chiluk (chiluk) |
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Released |
This appears to have been resolved in v4.0 with 9e5ed2a5b3
Additionally e6c11dbb8da mitigates some of this by removing some of the messages altogether.