-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: 'proxy_hostid' community.zabbix.zabbix_host #1163
Comments
Please submit Ansible code you used to get this error. |
Thank you. By the way |
Hello @BGmot Sorry but the problem ist also with filled groups. Please read the issue I can create hosts inital without problems (also with subgroups in the list), on the second run i have the issue. Update: |
My Workaround
|
When you have subgroups in zabbix
![image](https://private-user-images.githubusercontent.com/6429642/296262347-e667264a-88ac-49c1-b9bb-a9f66d681038.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NjQwODIsIm5iZiI6MTcyMDQ2Mzc4MiwicGF0aCI6Ii82NDI5NjQyLzI5NjI2MjM0Ny1lNjY3MjY0YS04OGFjLTQ5YzEtYjliYi1hOWY2NmQ2ODEwMzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDhUMTgzNjIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDExZmQzNmU5ZDg5MDAxMzA0N2FiMjkzMTE3ODg4MDE0Yjk3MmRiNjY1OTMzZmE4YzU2Zjk2YmMxNzFiYzFlNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.zrdpXvZZ1cz7Ur_D_1eVBEk19enqAk3hAB7pNR4lHCA)
You become an error when you override a host information
TASK [Remove all groups from the host] *****************************************************************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'proxy_hostid'
fatal: [server1]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "/home/users/ata0258253/.ansible/tmp/ansible-local-974097red6ju3e/ansible-tmp-1705068150.160186-976173-241943272178657/AnsiballZ_zabbix_host.py", line 107, in \n _ansiballz_main()\n File "/home/users/ata0258253/.ansible/tmp/ansible-local-974097red6ju3e/ansible-tmp-1705068150.160186-976173-241943272178657/AnsiballZ_zabbix_host.py", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/home/users/ata0258253/.ansible/tmp/ansible-local-974097red6ju3e/ansible-tmp-1705068150.160186-976173-241943272178657/AnsiballZ_zabbix_host.py", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.community.zabbix.plugins.modules.zabbix_host', init_globals=dict(_module_fqn='ansible_collections.community.zabbix.plugins.modules.zabbix_host', _modlib_path=modlib_path),\n File "", line 226, in run_module\n File "", line 98, in _run_module_code\n File "", line 88, in _run_code\n File "/tmp/ansible_community.zabbix.zabbix_host_payload_vtcm06jk/ansible_community.zabbix.zabbix_host_payload.zip/ansible_collections/community/zabbix/plugins/modules/zabbix_host.py", line 1250, in \n File "/tmp/ansible_community.zabbix.zabbix_host_payload_vtcm06jk/ansible_community.zabbix.zabbix_host_payload.zip/ansible_collections/community/zabbix/plugins/modules/zabbix_host.py", line 1093, in main\nKeyError: 'proxy_hostid'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'proxy_hostid'
The text was updated successfully, but these errors were encountered: