salt icon indicating copy to clipboard operation
salt copied to clipboard

[BUG] Zabbix 6.2 - host.update: Invalid parameter "/selectParentTemplates": value must be one of "extend", "count".

Open PacGyver opened this issue 2 years ago • 1 comments

Description Updating host assigned zabbix templates through event -> reactor -> orchestration

Setup salt-minion 3004.1 Zabbix-Server 6.2

Steps to Reproduce the behavior state.apply

Expected behavior Templates empty

Versions Report

Salt Version: Salt: 3004.1

Dependency Versions: cffi: 1.14.6 cherrypy: unknown dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.11.3 libgit2: 1.1.0 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: 2.17 pycrypto: Not Installed pycryptodome: 3.9.8 pygit2: 1.6.1 Python: 3.7.13 (default, Mar 18 2022, 17:55:41) python-gnupg: 0.4.4 PyYAML: 5.4.1 PyZMQ: 18.0.1 smmap: Not Installed timelib: 0.2.4 Tornado: 4.5.3 ZMQ: 4.3.1

System Versions: dist: alpine 3.14.4 locale: UTF-8 machine: x86_64 release: 4.19.0-20-amd64 system: Linux version: Alpine Linux 3.14.4

zabbix_host_assign_templates:
  zabbix_host.assign_templates:
    - host: {{ pillar['id'] }}
    - templates:
      - "Zabbix agent active"

Additional context Solution: /usr/lib/python3/dist-packages/salt/states/zabbix_host.py Change line 672

  •     selectParentTemplates='["templateid"]',
    

to

  •    selectParentTemplates='extend',
    

Is working again.

PacGyver avatar Jul 15 '22 14:07 PacGyver