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

[BUG] Fails on an ipv6-only tailnet #502

Open
growse opened this issue Sep 3, 2024 · 1 comment
Open

[BUG] Fails on an ipv6-only tailnet #502

growse opened this issue Sep 3, 2024 · 1 comment
Labels
bug This bug is confirmed and can be reproduced.

Comments

@growse
Copy link

growse commented Sep 3, 2024

Describe the bug
The step "Facts | Get IPv4 address" fails when run on a machine attached to a v6-only tailnet.

To Reproduce
Steps to reproduce the behavior:

  1. Create tailnet
  2. set disableIPv4: true in the tailnet acl.
  3. Run role on machine to join to tailnet
  4. See error

Expected behavior
Role completes successfully

Screenshots

TASK [artis3n.tailscale : Facts | Get IPv4 address] **************************************************************************************************************************************************************************************************************************************
fatal: [guffnet-ch-01]: FAILED! => {"changed": false, "cmd": ["tailscale", "ip", "--4"], "delta": "0:00:00.021313", "end": "2024-09-03 14:37:21.667542", "msg": "non-zero return code", "rc": 1, "start": "2024-09-03 14:37:21.646229", "stderr": "no Tailscale IPv4 address", "stderr_lines": ["no Tailscale IPv4 address"], "stdout": "", "stdout_lines": []}

Target (please complete the following information):

  • OS: Debian 12
  • Ansible version: 2.17.3
  • artis3n.tailscale version: 4.5.0
  • Tailscale version (set verbose to true): 1.72.1

Output of tailscale status during role execution (set verbose to true):

$ sudo tailscale status --peers=false
fd7a:115c:a1e0::c001:4f01 guffnet-ch-01        userid:15d52116014f28 linux   -

Additional context
This worked in 4.4.2!

@growse growse added the bug:needs-reproduction A reported bug that needs to be confirmed and reproduced. label Sep 3, 2024
@artis3n artis3n added bug This bug is confirmed and can be reproduced. and removed bug:needs-reproduction A reported bug that needs to be confirmed and reproduced. labels Sep 3, 2024
@artis3n
Copy link
Owner

artis3n commented Sep 3, 2024

Thanks - we'll need to set the IPv4 and IPv6 facts to have an empty default to prevent task failures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This bug is confirmed and can be reproduced.
Projects
None yet
Development

No branches or pull requests

2 participants