Page MenuHomeVyOS Platform

Does not possible to change console baud-rate
Open, Requires assessmentPublicBUG

Description

When I try to change the speed on Dell VEP 1445 from 9600 to 115200, the console logged out and the config does not change

vyos@vyos# set system console device ttyS0 speed 115200
[edit]
vyos@vyos# commit

Welcome to VyOS - vyos ttyS0

vyos login: 

# After login
vyos@vyos# compare 0
No changes between working and revision 0 configurations.
[edit]

Log output

Apr 16 17:44:04 vyos sudo[5247]:     vyos : TTY=ttyS0 ; PWD=/home/vyos ; USER=root ; COMMAND=/usr/bin/sh -c /usr/sbin/vyshim /usr/libexec/vyos/conf_mode/system_console.py
Apr 16 17:44:04 vyos sudo[5247]: pam_unix(sudo:session): session opened for user root by vyos(uid=0)
Apr 16 17:44:04 vyos vyos-configd[1388]: Received message: {"type": "init"}
Apr 16 17:44:04 vyos vyos-configd[1388]: config session pid is 4295
Apr 16 17:44:04 vyos vyos-configd[1388]: Received message: {"type": "node", "data": "/usr/libexec/vyos/conf_mode/system_console.py"}
Apr 16 17:44:04 vyos sudo[5253]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/systemctl stop serial-getty@ttyS0.service
Apr 16 17:44:04 vyos sudo[5253]: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 17:44:04 vyos systemd[1]: Stopping Serial Getty on ttyS0...
Apr 16 17:44:04 vyos systemd[1]: serial-getty@ttyS0.service: Main process exited, code=killed, status=15/TERM
Apr 16 17:44:04 vyos systemd[1]: serial-getty@ttyS0.service: Succeeded.
Apr 16 17:44:04 vyos sudo[5247]: pam_unix(sudo:session): session closed for user root
Apr 16 17:44:04 vyos systemd[1]: Stopped Serial Getty on ttyS0.
Apr 16 17:44:04 vyos systemd-logind[1587]: Session 4 logged out. Waiting for processes to exit.
Apr 16 17:44:04 vyos sudo[5253]: pam_unix(sudo:session): session closed for user root
Apr 16 17:44:04 vyos sudo[5259]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/systemctl stop serial-getty@ttyS0.service
Apr 16 17:44:04 vyos sudo[5259]: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 17:44:04 vyos sudo[5259]: pam_unix(sudo:session): session closed for user root
Apr 16 17:44:04 vyos sudo[5271]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/systemctl daemon-reload
Apr 16 17:44:04 vyos sudo[5271]: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 17:44:04 vyos systemd[1]: Reloading.
Apr 16 17:44:04 vyos sudo[5271]: pam_unix(sudo:session): session closed for user root
Apr 16 17:44:04 vyos sudo[5297]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/systemctl start serial-getty@ttyS0.service
Apr 16 17:44:04 vyos sudo[5297]: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 17:44:04 vyos systemd[1]: Started Serial Getty on ttyS0.
Apr 16 17:44:04 vyos sudo[5297]: pam_unix(sudo:session): session closed for user root
Apr 16 17:44:04 vyos vyos-configd[1388]: Sending response 1

Details

Difficulty level
Normal (likely a few hours)
Version
1.4-rolling-202104091411
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Checked on VM

vyos@vyos-dev# set system console device ttyS0 speed 115200
[edit]
vyos@vyos-dev# commit
[edit]
vyos@vyos-dev# show system console
 device ttyS0 {
     speed 115200
 }
[edit]

error not occur - 1.4-rolling-202104251049

Hi @hard, I think behavior should be another for VM. Did you try to change speed when you connected via serial?