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
Dynamic inventory script throws xmlrpc.client.ProtocolError: <ProtocolError for cobbler/cobbler_api: 404 Not Found> #2348
Comments
FWIW - I'm using a modified script. See ansible/ansible#25926 |
@opoplawski
Traceback (most recent call last): --> I am looking into this currently. Please let me know if you have encountered the above, and if any solution. Thanks a lot for you help. |
Ah, sorry - I'm using a newer version in production. I'll try to get you a copy soon... |
I've pushed my latest version to https://github.com/opoplawski/ansible/tree/cobbler/contrib/inventory I see now that I removed environment variable support and the ability to ignore the config file - hope you weren't counting on that... |
@opoplawski File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo During handling of the above exception, another exception occurred: Traceback (most recent call last): Not sure what I am missing. |
What is your cobbler.ini file? |
I checked my cobbler.ini file. It was wrong, as in it was holding wrong host url. It works now. That helped a lot. I can see the list of my hosts. Thanks a lot :) |
Now provided as an inventory plugin: https://github.com/cobbler/ansible |
Version
Cobbler 2.9.0
source: b'8010c5d8', b'Mon Feb 18 16:08:42 2019 +0100'
build time: Wed Feb 20 18:17:47 2019
Question
I am trying to use dynamic inventory of ansible. Copied the cobber.py script and I am trying to run the command, ./cobbler.py --list. It throws a ProtocolError.
Any help here or suggestion to run this?
The text was updated successfully, but these errors were encountered: