TRITON-2232: LinuxCN default console should be the one specified by cnapi

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2021-06-23T04:56:03.686Z
Updated at:2021-06-23T18:15:11.641Z

People

Created by:Brian Bennett
Reported by:Brian Bennett
Assigned to:Brian Bennett

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2021-06-23T18:15:01.026Z)

Fix Versions

2021-07-15 ve calls it even (Release Date: 2021-07-15)

Related Links

Labels

linuxcn

Description

Linux supports multiple consoles listed in the kernel command line. Most messages are multiplexed to all consoles, but the last one specified on the command line is used when writing to /dev/console.

Currently we have console=%s,115200n8 console=tty0. This means that some messages will only show up on the VGA console. We want the VGA console to always be present, but we want the default to be the one specified by cnapi. To ensure that the console specified by cnapi is used for messages to /dev/console, this should be reversed to console=tty0 console=%s,115200n8

Comments

Comment by Brian Bennett
Created at 2021-06-23T05:12:05.836Z

I currently have a CN I'm working through a boot issue with, and the live-bottom scripts only output to the VGA console. It'd be a lot easier for me if they were going to the serial console. I'll grab the jenkins build and install it then on my next pass that script output should be on serial.


Comment by Brian Bennett
Created at 2021-06-23T05:23:31.848Z

OK, confirmed, live-bottom script output is now going to the serial, as specified in CNAPI.

[   27.324403] ixgbe 0000:84:00.0: registered PHC device on admin
+ basename /scripts/live-bottom/triton-general
+ TRACE_LOG=/dev/shm/triton-general
+ dirname /dev/shm/triton-general
+ mkdir -p /dev/shm
+ exec
+ exec
+ basename /scripts/live-bottom/triton-agents
+ TRACE_LOG=/dev/shm/triton-agents
+ dirname /dev/shm/triton-agents
+ mkdir -p /dev/shm
+ exec
+ exec
done.
Begin: Running /scripts/init-bottom ... done.
[   27.508445] ixgbe 0000:84:00.0 admin: detected SFP+: 3

Comment by Jira Bot
Created at 2021-06-23T18:13:20.991Z

sdc-booter commit 030df1fe6494ee472818fa060686ab25421b1b16 (branch master, by Brian Bennett)

TRITON-2232 LinuxCN default console should be the one specified by cnapi (#25)

Reviewed by: Dan McDonald <danmcd@kebe.com>