Page MenuHomeVyOS Platform

VyOS in container bugs
Open, LowPublicBUG

Description

Run container:

sudo podman run --rm -it \
  --privileged \
  -v /lib/modules:/lib/modules \
  --net=ns:/run/netns/mgmt \
  --name vyos \
  --cap-add=NET_ADMIN \
  vyos:1.5-rolling-202309230021 /sbin/init

There are several bugs during the boot:

  1. Audit service
[FAILED] Failed to start auditd.service - Security Auditing Service.
See 'systemctl status auditd.service' for details.
  1. Atop
[FAILED] Failed to start atopacct.service - Atop process accounting daemon.
See 'systemctl status atopacct.service' for details.
  1. Locale, TTY, loadkeys us
[11524.801428] vyos-router[251]: perl: warning: Setting locale failed.
[11524.801513] vyos-router[251]: perl: warning: Please check that your locale settings:
[11524.801553] vyos-router[251]: 	LANGUAGE = (unset),
[11524.801687] vyos-router[251]: 	LC_ALL = (unset),
[11524.801733] vyos-router[251]: 	LANG = "en_US.UTF-8"
[11524.801810] vyos-router[251]:     are supported and installed on your system.
[11524.801925] vyos-router[251]: perl: warning: Falling back to the standard locale ("C").
[FAILED] Failed to start auditd.service - Security Auditing Service.
See 'systemctl status auditd.service' for details.
[  OK  ] Finished systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP.
[11524.923842] vyos-router[260]: perl: warning: Setting locale failed.
[11524.923963] vyos-router[260]: perl: warning: Please check that your locale settings:
[11524.924072] vyos-router[260]: 	LANGUAGE = (unset),
[11524.924198] vyos-router[260]: 	LC_ALL = (unset),
[11524.924241] vyos-router[260]: 	LANG = "en_US.UTF-8"
[11524.924303] vyos-router[260]:     are supported and installed on your system.
[11524.924384] vyos-router[260]: perl: warning: Falling back to the standard locale ("C").
[11524.928152] vyos-router[260]: perl: warning: Setting locale failed.
[11524.928281] vyos-router[260]: perl: warning: Please check that your locale settings:
[11524.928352] vyos-router[260]: 	LANGUAGE = (unset),
[11524.928389] vyos-router[260]: 	LC_ALL = (unset),
[11524.928519] vyos-router[260]: 	LANG = "en_US.UTF-8"
[11524.928556] vyos-router[260]:     are supported and installed on your system.
[11524.928588] vyos-router[260]: perl: warning: Falling back to the standard locale ("C").
[11525.075625] vyos-router[270]: perl: warning: Setting locale failed.
[11525.075724] vyos-router[270]: perl: warning: Please check that your locale settings:
[11525.075763] vyos-router[270]: 	LANGUAGE = (unset),
[11525.075827] vyos-router[270]: 	LC_ALL = (unset),
[11525.075868] vyos-router[270]: 	LANG = "en_US.UTF-8"
[11525.076014] vyos-router[270]:     are supported and installed on your system.
[11525.076055] vyos-router[270]: perl: warning: Falling back to the standard locale ("C").

Debian GNU/Linux 12 bd7302d59851 console

bd7302d59851 login: [11526.449935] vyos-router[120]: Waiting for NICs to settle down: settled in 1sec..
[11526.823753] vyos-router[327]: /bin/sh: line 1: /dev/tty1: No such file or directory
[11528.293249] vyos-router[392]: VyOS had an issue completing a command.
[11528.293599] vyos-router[392]: We are sorry that you encountered a problem while using VyOS.
[11528.293793] vyos-router[392]: There are a few things you can do to help us (and yourself):
[11528.293927] vyos-router[392]: - Contact us using the online help desk if you have a subscription:
[11528.294191] vyos-router[392]:   https://support.vyos.io/
[11528.294380] vyos-router[392]: - Make sure you are running the latest version of VyOS available at:
[11528.294578] vyos-router[392]:   https://vyos.net/get/
[11528.294792] vyos-router[392]: - Consult the community forum to see how to handle this issue:
[11528.294941] vyos-router[392]:   https://forum.vyos.io
[11528.295169] vyos-router[392]: - Join us on Slack where our users exchange help and advice:
[11528.295340] vyos-router[392]:   https://vyos.slack.com
[11528.295530] vyos-router[392]: When reporting problems, please include as much information as possible:
[11528.295719] vyos-router[392]: - do not obfuscate any data (feel free to contact us privately if your
[11528.295913] vyos-router[392]:   business policy requires it)
[11528.296117] vyos-router[392]: - and include all the information presented below
[11528.296299] vyos-router[392]: Report time:      2023-09-23 17:02:15
[11528.296516] vyos-router[392]: Image version:    VyOS 1.5-rolling-202309230021
[11528.296677] vyos-router[392]: Release train:    current
[11528.296877] vyos-router[392]: Built by:         [email protected]
[11528.297015] vyos-router[392]: Built on:         Sat 23 Sep 2023 01:42 UTC
[11528.297301] vyos-router[392]: Build UUID:       724b3154-5f13-45bc-a108-52cf5d863a6a
[11528.297498] vyos-router[392]: Build commit ID:  83cdd40b15b9db
[11528.297688] vyos-router[392]: Architecture:     x86_64
[11528.297864] vyos-router[392]: Boot via:         installed image
[11528.298094] vyos-router[392]: System type:      KVM guest
[11528.298245] vyos-router[392]: Hardware vendor:  QEMU
[11528.298461] vyos-router[392]: Hardware model:   Standard PC (Q35 + ICH9, 2009)
[11528.298607] vyos-router[392]: Hardware S/N:
[11528.298834] vyos-router[392]: Hardware UUID:    166cfd25-7d3a-4eca-9ef6-0b655c9acf0f
[11528.298995] vyos-router[392]: Traceback (most recent call last):
[11528.299254] vyos-router[392]:   File "/usr/libexec/vyos/conf_mode/system-option.py", line 156, in <module>
[11528.299468] vyos-router[392]:     apply(c)
[11528.299675] vyos-router[392]:   File "/usr/libexec/vyos/conf_mode/system-option.py", line 138, in apply
[11528.299877] vyos-router[392]:     cmd('loadkeys {keyboard_layout}'.format(**options))
[11528.300114] vyos-router[392]:   File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 155, in cmd
[11528.300324] vyos-router[392]:     raise OSError(code, feedback)
[11528.300531] vyos-router[392]: PermissionError: [Errno 1] failed to run command: loadkeys us
[11528.300737] vyos-router[392]: returned:
[11528.300941] vyos-router[392]: exit code: 1
[11528.301183] vyos-router[392]: noteworthy:
[11528.301440] vyos-router[392]: cmd 'loadkeys us'
[11528.301644] vyos-router[392]: returned (out):
[11528.301853] vyos-router[392]: returned (err):
[11528.302042] vyos-router[392]: Couldn't get a file descriptor referring to the console.
[11528.328563] vyos-router[120]: could not reset system option files ... failed!
[11528.477982] vyos-router[429]: sysctl: cannot stat /proc/sys/net/ipv4/neigh/default/gc_thresh3: No such file or directory
[11528.479766] vyos-router[431]: sysctl: cannot stat /proc/sys/net/ipv4/neigh/default/gc_thresh2: No such file or directory
[11528.481638] vyos-router[433]: sysctl: cannot stat /proc/sys/net/ipv4/neigh/default/gc_thresh1: No such file or directory
[11528.685376] vyos-router[444]: sysctl: cannot stat /proc/sys/net/ipv6/neigh/default/gc_thresh3: No such file or directory
[11528.688172] vyos-router[446]: sysctl: cannot stat /proc/sys/net/ipv6/neigh/default/gc_thresh2: No such file or directory
[11528.690170] vyos-router[448]: sysctl: cannot stat /proc/sys/net/ipv6/neigh/default/gc_thresh1: No such file or directory

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.5-rolling-202309230021
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Related Objects

StatusSubtypeAssignedTask
OpenBUGNone
In progressBUGNone