Tried running the Zabbix container example mentioned on the Vyos May project update - VyOS Project May/June 2021 Update
set container network zabbix-net prefix 172.20.0.0/16
set container network zabbix-net description 'Network for Zabbix component containers'
set container name mysql-server image mysql:8.0
set container name mysql-server network zabbix-net
set container name mysql-server environment 'MYSQL_DATABASE' value 'zabbix'
set container name mysql-server environment 'MYSQL_USER' value 'zabbix'
set container name mysql-server environment 'MYSQL_PASSWORD' value 'zabbix_pwd'
set container name mysql-server environment 'MYSQL_ROOT_PASSWORD' value 'root_pwd'
set container name zabbix-java-gateway image zabbix/zabbix-java-gateway:alpine-5.2-latest
set container name zabbix-java-gateway network zabbix-net
set container name zabbix-server-mysql image zabbix/zabbix-server-mysql:alpine-5.2-latest
set container name zabbix-server-mysql network zabbix-net
set container name zabbix-server-mysql environment 'DB_SERVER_HOST' value 'mysql-server'
set container name zabbix-server-mysql environment 'MYSQL_DATABASE' value 'zabbix'
set container name zabbix-server-mysql environment 'MYSQL_USER' value 'zabbix'
set container name zabbix-server-mysql environment 'MYSQL_PASSWORD' value 'zabbix_pwd'
set container name zabbix-server-mysql environment 'MYSQL_ROOT_PASSWORD' value 'root_pwd'
set container name zabbix-server-mysql environment 'ZBX_JAVAGATEWAY' value 'zabbix-java-gateway'
set container name zabbix-server-mysql port zabbix source 10051
set container name zabbix-server-mysql port zabbix destination 10051
set container name zabbix-web-nginx-mysql image zabbix/zabbix-web-nginx-mysql:alpine-5.2-latest
set container name zabbix-web-nginx-mysql network zabbix-net
set container name zabbix-web-nginx-mysql environment 'MYSQL_DATABASE' value 'zabbix'
set container name zabbix-web-nginx-mysql environment 'ZBX_SERVER_HOST' value 'zabbix-server-mysql'
set container name zabbix-web-nginx-mysql environment 'DB_SERVER_HOST' value 'mysql-server'
set container name zabbix-web-nginx-mysql environment 'MYSQL_USER' value 'zabbix'
set container name zabbix-web-nginx-mysql environment 'MYSQL_PASSWORD' value 'zabbix_pwd'
set container name zabbix-web-nginx-mysql environment 'MYSQL_ROOT_PASSWORD' value 'root_pwd'
set container name zabbix-web-nginx-mysql port http source 80
set container name zabbix-web-nginx-mysql port http destination 8080
However on commit I get the following error(s)
[ container ]
Resolving âmysqlâ using unqualified-search registries (/etc/containers/registries.conf)
Trying to pull DockerâŠ
Getting image source signatures
Copying blob sha256:37ba2d8bd4fe60e7cd8ba1fe43fec4fde06acd0f4407a3db4b4dea1450f19f99
Copying blob sha256:1651b0be3df3b7c2b57c16e7932836c239fe5f5f1625e390147b5ea0dac3b3e0
Copying blob sha256:69692152171afee1fd341febc390747cfca2ff302f2881d8b394e786af605696
Copying blob sha256:6d278bb05e94d4d1aa8bf5b6db09d8b5d8421b61026ba29c78405521e3aa49eb
Copying blob sha256:0f86c95aa2427b656dbc0bf01413bb8af354ea168e660887eb93ee816ad360a1
Copying blob sha256:951da7386bc8b010c95056608b66b1e7431ef0e895a1717528d3a16cda93f341
Copying blob sha256:f7fddf10c2c2d7643ac60e6e748d418847c6c5b8d2d772d6d777e5bc4cfed299
Copying blob sha256:497efbd93a3eb09094c94c3a06b0a2fc6b8cc224812b464a8dd4889d5c2af266
Copying blob sha256:16415d159dfb70afbd4d25c43bd44d506c6d3b15d7f7518494331f7001c7d024
Copying blob sha256:0e530ffc6b73401d9bb9ecff4a3ec072184ae79f4d858fa37f6373a7b731f483
Copying blob sha256:b0a4a1a771782ef8e5e7d4ef8ace68fd47ba9b9cacff585f7b6b619b0eb60ea2
Copying blob sha256:cd90f92aa9ef2e393330b60b73d8e18f473a780a7caaa2e97378379d08da920e
Copying config sha256:c0cdc95609f1fc1daf2c7cae05ebd6adcf7b5c614b4f424949554a24012e3c09
Writing manifest to image destination
Storing signatures
c0cdc95609f1fc1daf2c7cae05ebd6adcf7b5c614b4f424949554a24012e3c09
0
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):
- Make sure you are running the latest version of the code available at
VyOS Community - Consult the forum to see how to handle this issue
https://forum.vyos.io - Join our community 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-06-11 01:37:23
Image Version: VyOS 1.4-rolling-202106100417
Release Train: sagitta
Built by: autobuild@vyos.net
Built on: Thu 10 Jun 2021 06:42 UTC
Build UUID: 14d353f8-0079-4295-81b3-2a156c9c68bc
Build Commit ID: 65b596062f015c
Architecture: x86_64
Boot via: installed image
System type: VMware guest
Hardware vendor: VMware, Inc.
Hardware model: VMware Virtual Platform
Hardware S/N: VMware-56 4d 7f e2 82 d3 d9 ce-88 cb ca de 92 1a 21 84
Hardware UUID: e27f4d56-d382-ced9-88cb-cade921a2184
Traceback (most recent call last):
File â/usr/libexec/vyos/conf_mode/containers.pyâ, line 267, in
apply(c)
File â/usr/libexec/vyos/conf_mode/containers.pyâ, line 253, in apply
_cmd(fâpodman run --name {name} -dit --net {network} {ipparam} {port} {volume} {env_opt} {image}')
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)
OSError: [Errno 126] failed to run command: podman run --name mysql_server -dit --net zabbix_net -e MYSQL_DATABASE=zabbix -e MYSQL_PASSWORD=zabbix_pwd -e MYSQL_ROOT_PASSWORD=root_pwd -e MYSQL_USER=zabbix mysql:8.0
returned:
exit code: 126
noteworthy:
cmd âcurl --unix-socket /run/podman/podman.sock âhttp://d/v3.0.0/libpod/containers/mysql_server/existsââ
returned (out):
{âcauseâ:âno such containerâ,âmessageâ:âno such containerâ,âresponseâ:404}
returned (err):
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 75 100 75 0 0 297 0 --:â:-- --:â:-- --:â:-- 297
cmd âpodman run --name mysql_server -dit --net zabbix_net -e MYSQL_DATABASE=zabbix -e MYSQL_PASSWORD=zabbix_pwd -e MYSQL_ROOT_PASSWORD=root_pwd -e MYSQL_USER=zabbix mysql:8.0â
returned (out):
returned (err):
time=â2021-06-11T01:37:22+02:00â level=error msg=âError adding network: failed to list chains: running [/usr/sbin/iptables -t nat -S --wait]: exit status 1: iptables v1.8.2 (nf_tables): table nat' is incompatible, use 'nft' tool.\n\n" time="2021-06-11T01:37:22+02:00" level=error msg="Error while adding pod to CNI network \"zabbix_net\": failed to list chains: running [/usr/sbin/iptables -t nat -S --wait]: exit status 1: iptables v1.8.2 (nf_tables): table
natâ is incompatible, use ânftâ tool.\n\nâ
Error: error configuring network namespace for container 7368d5bb332c96c1b7131f4d9ccb153a6744471f9be8ba3d88c318133e3248d3: failed to list chains: running [/usr/sbin/iptables -t nat -S --wait]: exit status 1: iptables v1.8.2 (nf_tables): table `natâ is incompatible, use ânftâ tool.
[[]] failed
Commit failed
[edit]
Any tips to get this working?