Closed colttt closed 3 years ago
Are the minions on different versions? I see the failing one is older than the master.
zabbix_host
got various fixes in 3003.
Are the minions on different versions? I see the failing one is older than the master.
zabbix_host
got various fixes in 3003.
Yes, this specific error:
ID: create_host_to_zabbix
Function: zabbix_host.present
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/state.py", line 2154, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2106, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/states/zabbix_host.py", line 260, in present
hostintf.pop("bulk")
KeyError: 'bulk'
Started: 11:26:36.311764
Duration: 1357.149 ms
Changes:
Is fixed in 3003 version, it now checks if the bulk
element is present before "pop" it:
318 if "bulk" in hostintf:
319 hostintf.pop("bulk")
The line numbers are a bit off because 3003 have a lot of changes.
updated to the latest version 3003, not it works fine
Description If a host in Zabbix exist, I got the following error:
strange: on another host salt-minion-2 it works fine without an error
Setup zabbix_add_host.sls
Steps to Reproduce the behavior here is the complete debug output:
Expected behavior no error, just a message that the host already exist
Versions Report
Saltminion: ```salt-minion -V Salt Version: Salt: 3002.5 Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.7.3 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.10 libgit2: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack: 0.5.6 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: Not Installed pycrypto: Not Installed pycryptodome: 3.6.1 pygit2: Not Installed Python: 3.7.3 (default, Jul 25 2020, 13:03:44) python-gnupg: Not Installed PyYAML: 3.13 PyZMQ: 17.1.2 smmap: Not Installed 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-14-amd64 system: Linux version: Debian GNU/Linux 10 buster ``` Saltmaster: ``` salt --versions-report Salt Version: Salt: 3003 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: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack: 0.5.6 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: Not Installed pycrypto: 2.6.1 pycryptodome: 3.6.1 pygit2: Not Installed 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-16-amd64 system: Linux version: Debian GNU/Linux 10 buster ```
Additional context It was also strange that I got a different error, and with no changes it works from one minute to the other..