Closed colttt closed 3 years ago
Hi @colttt ,
Reading your error message, or you are running the state in an salt 3002.x or, by some reason, you're using an old zabbix_host.py
:
File "/usr/lib/python3/dist-packages/salt/states/zabbix_host.py", line 260, in present
hostintf.pop("bulk")
KeyError: 'bulk'
The line 260 doesn't have that the hostinf.pop("bulk")
since 5928d9ce67e2bf01734b69e9940e23e725591ee7 which is part of Salt 3003.x. You can check it yourself here.
fixed in salt 3003.x
Description When I run a high state and my states add a new host it works fine, if I run it again, I get an error.
first time
second time
Setup we use zabbix 5.4.1
Expected behavior Just to add a host in zabbix
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) ``` salt-master: salt --versions-report Salt Version: Salt: 3003.1 Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.7.3 docker-py: Not Installed gitdb: 2.0.5 gitpython: 2.1.11 Jinja2: 2.10 libgit2: 0.27.7 M2Crypto: Not Installed Mako: Not Installed msgpack: 0.5.6 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: 2.19 pycrypto: Not Installed pycryptodome: 3.6.1 pygit2: 0.27.4 Python: 3.7.3 (default, Jan 22 2021, 20:04:44) python-gnupg: Not Installed PyYAML: 3.13 PyZMQ: 17.1.2 smmap: 2.0.5 timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.1 System Versions: dist: debian 10 buster locale: UTF-8 machine: x86_64 release: 4.19.0-17-amd64 system: Linux version: Debian GNU/Linux 10 buster ``` ``` salt-minion --versions-report Salt Version: Salt: 3003.2 Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.5.3 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.9.4 libgit2: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack: 0.6.2 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: Not Installed pycrypto: Not Installed pycryptodome: 3.6.1 pygit2: Not Installed Python: 3.5.3 (default, Apr 5 2021, 09:00:41) python-gnupg: Not Installed PyYAML: 3.12 PyZMQ: 17.1.2 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.2.1 System Versions: dist: debian 9 stretch locale: UTF-8 machine: x86_64 release: 4.9.0-15-amd64 system: Linux version: Debian GNU/Linux 9 stretch ```Additional context Add any other context about the problem here.