Comments (13)
Yeah give it a few more minutes :) https://dashboard.zuul.ansible.com/t/ansible/stream/9d273f508dcd411ebe1a9292520cd457?logfile=console.log
The Job is still processing
from hetzner.hcloud.
I removed the os-package and installed the latest package via pip install hcloud==1.12.0
. Now the error is gone.
@LKaemmerling thanks a lot for your quick help!
from hetzner.hcloud.
@papanito yep since v1.3.0 we support our Firewalls: https://www.hetzner.com/news/03-21-firewall-beta/
The document you linked is for the collection in v1.2.1 (https://docs.ansible.com/ansible/latest/collections/hetzner/hcloud/hcloud_inventory.html#ansible-collections-hetzner-hcloud-hcloud-inventory) not for the latest 1.4.1.
As the problem is solved, I will close the issue :) Feel free to reopen if you have further questions
from hetzner.hcloud.
Hey @papanito,
you can use ansible-doc hetzner.hcloud.<module>
from hetzner.hcloud.
Hey @papanito,
could you please try it with the latest version (1.4.1)?
from hetzner.hcloud.
Maybe I miss something:
ERROR! Failed to find collection hetzner.hcloud:1.4.1
My requriements.yml
....
collections:
- name: hetzner.hcloud
version: 1.4.1
- name: community.hrobot
- name: community.general
from hetzner.hcloud.
Yeah just realized it. Thanks @LKaemmerling
from hetzner.hcloud.
Still the same:
Traceback (most recent call last):\n File \"/home/aedu/.ansible/tmp/ansible-tmp-1617777252.9323785-1236366-237186456248268/AnsiballZ_hcloud_server.py\", line 102, in <module>\n _ansiballz_main()\n File \"/home/aedu/.ansible/tmp/ansible-tmp-1617777252.9323785-1236366-237186456248268/AnsiballZ_hcloud_server.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/aedu/.ansible/tmp/ansible-tmp-1617777252.9323785-1236366-237186456248268/AnsiballZ_hcloud_server.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.hetzner.hcloud.plugins.modules.hcloud_server', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib/python3.9/runpy.py\", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_hcloud_server_payload_ufhof_5p/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py\", line 645, in <module>\n File \"/tmp/ansible_hcloud_server_payload_ufhof_5p/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py\", line 626, in main\n File \"/tmp/ansible_hcloud_server_payload_ufhof_5p/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py\", line 568, in present_server\n File \"/tmp/ansible_hcloud_server_payload_ufhof_5p/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py\", line 334, in _create_server\n File \"/tmp/ansible_hcloud_server_payload_ufhof_5p/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py\", line 335, in <listcomp>\nTypeError: 'NoneType' object is not callable\n"
from hetzner.hcloud.
@papanito do you have the latest hcloud-python version installed? https://github.com/hetznercloud/hcloud-python/releases/tag/v1.12.0 (or v1.11.0)
from hetzner.hcloud.
Nope I have
pacman -Q hcloud-python
python-hcloud 1.10.0-2
from hetzner.hcloud.
Then this is the issue. The ansible integration v1.3.0+ require the hcloud-python 1.11.0+ (v1.4.0 requires hcloud-python 1.12.0+)
from hetzner.hcloud.
Two more things:
- The dependency is not fully clear when looking at https://docs.ansible.com/ansible/latest/collections/hetzner/hcloud/hcloud_inventory.html#ansible-collections-hetzner-hcloud-hcloud-inventory
- I have seen
"firewalls": null,
in the output of the playbook undermodule_args
does this mean one could also set a firewall? not have seen anything in the docu yet ;-)
from hetzner.hcloud.
Is there a documentation available for 1.4.1?
from hetzner.hcloud.
Related Issues (20)
- hcloud_firewall better error messages for missing port with tcp or udp
- hetzner.hcloud.hcloud_network module is missing network_zone option HOT 4
- Create a server with no public IP and a given static private IP HOT 8
- hcloud_certificate documentation has values in SSH format instead of PEM
- hcloud_certificate domain_names documentation wrong
- hcloud_server delete_protection and rebuild_protection can't be applied HOT 1
- hcloud_firewall cannot delete firewalls that are in use HOT 2
- Drop support for ansible-core 2.13
- 2.4.0 breaks `refresh_inventory`
- Ansible in a venv is not loading the hcloud inventory plugin HOT 3
- hcloud_load_balancer reports change every time HOT 2
- hcloud_load_balancer_service reports change every time HOT 2
- Generate diff for all modules HOT 1
- Create Primary IP on Server
- hcloud_load_balancer_info don't return status HOT 7
- Assign or unassign existing primary IP from the `primary_ip` module
- Volume is unassigned if the server argument is not specified
- No inventory was parsed HOT 3
- Use resource action endpoints instead of global one HOT 1
- Cannot connect to a server via ssh after creating them HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hetzner.hcloud.