Skip to content
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

Does not seem to allow setting ip - API changed ?! #40

Open
ieugen opened this issue Apr 9, 2021 · 1 comment
Open

Does not seem to allow setting ip - API changed ?! #40

ieugen opened this issue Apr 9, 2021 · 1 comment

Comments

@ieugen
Copy link

ieugen commented Apr 9, 2021

Hi,

I tried to setup my network with a custom IP and it failed.

I set this var to a host and it did not work.
Commenting that line fixed it, but no IP assignement.

zerotier_member_ip_assignments: '["172.23.0.1"]'

Playbook output

TASK [m4rcu5nl.zerotier-one : Configure members in network] **************************************************************************************************************************************
task path: ansible/roles/m4rcu5nl.zerotier-one/tasks/authorize_node.yml:20
fatal: [daos-v]: FAILED! => {"accept_ranges": "bytes", "access_control_allow_origin": "*", "changed": false, "connection": "close", "content": "{\"type\":\"internal\",\"message\":\"Error updating member: ERROR: invalid input syntax for type inet: \\\"2\\\" (SQLSTATE 22P02)\"}", "content_length": "120", "content_type": "application/json", "date": "Fri, 09 Apr 2021 13:13:18 GMT", "elapsed": 0, "json": {"message": "Error updating member: ERROR: invalid input syntax for type inet: \"2\" (SQLSTATE 22P02)", "type": "internal"}, "msg": "Status code was 500 and not [200]: HTTP Error 500: Internal Server Error", "redirected": false, "status": 500, "strict_transport_security": "max-age=300", "url": "https://my.zerotier.com/api/network/REDACTED/member/REDACTED", "via": "1.1 google, 1.1 varnish", "x_cache": "MISS", "x_cache_hits": "0", "x_frame_options": "SAMEORIGIN", "x_served_by": "cache-hhn4078-HHN", "x_timer": "S1617973998.358212,VS0,VE194"}

@ieugen ieugen changed the title Does not seem to allow setting ip - API chanced ?! Does not seem to allow setting ip - API changed ?! Apr 9, 2021
@mje-nz
Copy link

mje-nz commented Jan 5, 2022

For anyone else with this issue, I debugged mine by running the playbook with -vvv, and it turned out that I was using the wrong syntax to define a list variable and it came out as a string, which I think is also what @ieugen did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants