I’ve had container issues with newer 1.4 rollings too. I ran containers fine for a long time with a 1.4 from late 2021 early 2022 without issue, but since trying more recent 1.4 rolling versions they would not start. I just upgraded one of my Vyos nodes to VyOS 1.4-rolling-202302120317, and I am trying to get my containers running again.
With this config:
set container name newrelic-vyos allow-host-networks
set container name newrelic-vyos environment NRIA_LICENSE_KEY value 'XXXXXXXXXXXXXXX'
set container name newrelic-vyos image 'newrelic/infrastructure:latest'
set container name newrelic-vyos volume logging.d destination '/etc/newrelic-infra/logging.d'
set container name newrelic-vyos volume logging.d source '/config/newrelic/logging.d'
set container name newrelic-vyos volume root destination '/host'
set container name newrelic-vyos volume root source '/'
The container repeatedly failed to start with errors like this:
Feb 15 15:20:40 vyos podman[45955]: 2023-02-15 15:20:40.287991932 -0500 EST m=+0.081074531 image pull newrelic/infrastructure:latest
Feb 15 15:20:40 vyos podman[45955]: 2023-02-15 15:20:40.396555336 -0500 EST m=+0.189637635 container create 77a1d44c8c7ed7f38b0ca51bd8f448a01733e88b4350f7fc8a10f144e70144af (image=docker.io/newrelic/infrastructure:latest, name=newrelic-vyos, com.newrelic.description=New Relic Infrastructure agent for monitoring the underlying host., com.newrelic.image.version=1.37.1-rc, com.newrelic.infra-agent.version=1.37.1, [email protected], com.newrelic.nri-docker.version=1.7.5, com.newrelic.nri-flex.version=1.7.0, com.newrelic.nri-prometheus.version=2.17.0, PODMAN_SYSTEMD_UNIT=vyos-container-newrelic-vyos.service)
Feb 15 15:20:40 vyos podman[45955]: Error: OCI runtime error: crun: writing file `/sys/fs/cgroup/cgroup.subtree_control`: Invalid argument
Feb 15 15:20:40 vyos podman[45970]: 2023-02-15 15:20:40.75551926 -0500 EST m=+0.191102848 container cleanup 77a1d44c8c7ed7f38b0ca51bd8f448a01733e88b4350f7fc8a10f144e70144af (image=docker.io/newrelic/infrastructure:latest, name=newrelic-vyos, com.newrelic.description=New Relic Infrastructure agent for monitoring the underlying host., com.newrelic.image.version=1.37.1-rc, com.newrelic.infra-agent.version=1.37.1, [email protected], com.newrelic.nri-docker.version=1.7.5, com.newrelic.nri-flex.version=1.7.0, com.newrelic.nri-prometheus.version=2.17.0, PODMAN_SYSTEMD_UNIT=vyos-container-newrelic-vyos.service)
Feb 15 15:20:41 vyos podman[45980]: time="2023-02-15T15:20:41-05:00" level=warning msg="Switching default driver from overlay2 to the equivalent overlay driver"
Feb 15 15:20:41 vyos podman[45980]: 2023-02-15 15:20:41.141374493 -0500 EST m=+0.129922772 container remove 77a1d44c8c7ed7f38b0ca51bd8f448a01733e88b4350f7fc8a10f144e70144af (image=docker.io/newrelic/infrastructure:latest, name=newrelic-vyos, com.newrelic.nri-docker.version=1.7.5, com.newrelic.nri-flex.version=1.7.0, com.newrelic.nri-prometheus.version=2.17.0, PODMAN_SYSTEMD_UNIT=vyos-container-newrelic-vyos.service, com.newrelic.description=New Relic Infrastructure agent for monitoring the underlying host., com.newrelic.image.version=1.37.1-rc, com.newrelic.infra-agent.version=1.37.1, [email protected])
Feb 15 15:20:41 vyos podman[45980]: 77a1d44c8c7ed7f38b0ca51bd8f448a01733e88b4350f7fc8a10f144e70144af
I’ll try to spin up an older 1.4-rolling to see if I can reproduce a time when it did work
Does this help or is it different? I tried busybox as above and got more errors:
vyos@vyos# set container name busybox allow-host-networks
[edit]
vyos@vyos# set container name busybox image 'busybox'
[edit]
vyos@vyos# commit
[ container ]
WARNING: Image "busybox" used in container "busybox" does not exist
locally. Please use "add container image busybox" to add it to the
system! Container "busybox" will not be started!
VyOS had an issue completing a command.
We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
https://vyos.slack.com
When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your
business policy requires it)
- and include all the information presented below
Report time: 2023-02-15 16:13:24
Image version: VyOS 1.4-rolling-202302120317
Release train: current
Built by: [email protected]
Built on: Sun 12 Feb 2023 03:17 UTC
Build UUID: 24bdfade-126b-4691-80c6-cab1fdfd73f8
Build commit ID: b00c41e6a547a3
Architecture: x86_64
Boot via: installed image
System type: Xen HVM guest
Hardware vendor: Xen
Hardware model: HVM domU
Hardware S/N: 9955f378-decb-526a-9ff4-47a21a6c0001
Hardware UUID: 9955f378-decb-526a-9ff4-47a21a6c0001
Traceback (most recent call last):
File "/usr/libexec/vyos/conf_mode/container.py", line 402, in <module>
apply(c)
File "/usr/libexec/vyos/conf_mode/container.py", line 390, in apply
cmd(f'systemctl restart vyos-container-{name}.service')
File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: systemctl restart vyos-container-newrelic-vyos.service
returned:
exit code: 1
noteworthy:
cmd 'podman image exists busybox'
returned (out):
returned (err):
time="2023-02-15T16:13:21-05:00" level=warning msg="Switching default driver from overlay2 to the equivalent overlay driver"
cmd 'podman image exists newrelic/infrastructure:latest'
returned (out):
returned (err):
time="2023-02-15T16:13:21-05:00" level=warning msg="Switching default driver from overlay2 to the equivalent overlay driver"
cmd 'podman image exists busybox'
returned (out):
returned (err):
time="2023-02-15T16:13:22-05:00" level=warning msg="Switching default driver from overlay2 to the equivalent overlay driver"
cmd 'podman image exists newrelic/infrastructure:latest'
returned (out):
returned (err):
time="2023-02-15T16:13:22-05:00" level=warning msg="Switching default driver from overlay2 to the equivalent overlay driver"
cmd 'systemctl restart vyos-container-newrelic-vyos.service'
returned (out):
returned (err):
Job for vyos-container-newrelic-vyos.service failed because the control process exited with error code.
See "systemctl status vyos-container-newrelic-vyos.service" and "journalctl -xe" for details.
[[container]] failed
Commit failed