Continuing from the bug in T3747
admin@edge# delete container name [edit] admin@edge# delete container network [edit] admin@edge# set container network dnsnet prefix 10.0.72.0/24 [edit] admin@edge# set container name dns02 image ubuntu:focal [edit] admin@edge# set container name dns02 network dnsnet address 10.0.72.253 [edit] admin@edge# commit
Leads to:
[ container ] 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: 2021-08-12 19:28:13 Image Version: VyOS 1.4-kroy-202108092020 Release Train: sagitta Built by: kroy Built on: Mon 09 Aug 2021 20:20 UTC Build UUID: d3a7abb0-afe2-4bc7-b8b1-fe700e5bcc4e Build Commit ID: dc5e42b9daa97a Architecture: x86_64 Boot via: installed image System type: bare metal Hardware vendor: Micro-Star International Co., Ltd. Hardware model: MS-7B79 Hardware S/N: To be filled by O.E.M. Hardware UUID: 7b297d94-c648-7a1d-acb6-2cf05d23dcbc Traceback (most recent call last): File "/usr/libexec/vyos/conf_mode/containers.py", line 267, in <module> apply(c) File "/usr/libexec/vyos/conf_mode/containers.py", line 193, in apply _cmd(f'podman network rm {network}') File "/usr/libexec/vyos/conf_mode/containers.py", line 42, in _cmd return cmd(command) File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd raise OSError(code, feedback) FileNotFoundError: [Errno 2] failed to run command: podman network rm container_net returned: exit code: 2 noteworthy: cmd 'podman network rm container_net' returned (out): returned (err): Error: "container_net" has associated containers with it. Use -f to forcibly delete containers and pods: network is being used [[container]] failed Commit failed [edit]
Which happens even with solely this config:
admin@edge# show container -network container_net { - prefix 10.0.72.0/24 -}