-
Notifications
You must be signed in to change notification settings - Fork 52
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
discovery and activation - generic error: "Error calling API" #33
Comments
@jaydabi One hint up front: Activate changes only needs to Update: Can you please check, whether the hosts you are trying to discover have a valid DNS name or IP address set? If you get an error message in the GUI stating that the hostname is not resolvable via DNS, you will receive the aforementioned error. |
Hi, we had the same issue. I was deploying it with Ansible. When doing the task like follow with about 6 hosts the first 2 or 3 were successful but the other got this error.
So what we did, we run that task once but loop over the hosts which worked.
I don't understand why but maybe this helps finding the cause.. The difference by Ansible within those tasks is that the first is run parallel and the "loop" is one after the other. |
Hi @elwood218 and thanks for your feedback! |
@jaydabi I did not hear back from you, but we improved the logging with the current release. If there is still a module-related error, feel free to reopen the issue. |
When using discovery and/or activation modules, a generic error message is thrown:
The
host
module works as expected.Ansible Version
$ .local/bin/ansible --version
ansible [core 2.12.4]
config file = None
configured module search path = ['/home/jonas/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/jonas/.local/lib/python3.8/site-packages/ansible
ansible collection location = /home/jonas/.ansible/collections:/usr/share/ansible/collections
executable location = .local/bin/ansible
python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
jinja version = 3.1.1
libyaml = True
Server Version
Checkmk Free Edition 2.1.0b4
Tasks to reproduce
Collection Version
$ ansible-galaxy collection list tribe29.checkmk # /home/jonas/.ansible/collections/ansible_collections Collection Version --------------- ------- tribe29.checkmk 0.1.0
The text was updated successfully, but these errors were encountered: