Page MenuHomeDevCentral

Failed to start Configure 4to6 tunnel through Hurricane Electric
Open, Needs TriagePublic

Description

When I was trying to deploy the network in docker-002 with salt 'docker-002' state.apply roles/core/network

This error happened :

docker-002
$ journalctl -xeu ipv6-tunnel.service --no-pager -l
Mar 03 15:03:34 docker-002.nasqueron.org systemd[1]: Starting Configure 4to6 tunnel through Hurricane Electric...
░░ Subject: A start job for unit ipv6-tunnel.service has begun execution
░░ Defined-By: systemd
░░ Support: https://wiki.rockylinux.org/rocky/support
░░ 
░░ A start job for unit ipv6-tunnel.service has begun execution.
░░ 
░░ The job identifier is 192456.
Mar 03 15:03:34 docker-002.nasqueron.org ipv6-setup-tunnel[2692932]: SIOCSIFDSTADDR: No buffer space available
Mar 03 15:03:34 docker-002.nasqueron.org ipv6-setup-tunnel[2692934]: SIOCSIFADDR: File exists
Mar 03 15:03:34 docker-002.nasqueron.org ipv6-setup-tunnel[2692935]: SIOCADDRT: File exists
Mar 03 15:03:34 docker-002.nasqueron.org ipv6-setup-tunnel[2692936]: SIOCSIFADDR: File exists
Mar 03 15:03:34 docker-002.nasqueron.org systemd[1]: ipv6-tunnel.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://wiki.rockylinux.org/rocky/support
░░ 
░░ An ExecStart= process belonging to unit ipv6-tunnel.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Mar 03 15:03:34 docker-002.nasqueron.org systemd[1]: ipv6-tunnel.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://wiki.rockylinux.org/rocky/support
░░ 
░░ The unit ipv6-tunnel.service has entered the 'failed' state with result 'exit-code'.
Mar 03 15:03:34 docker-002.nasqueron.org systemd[1]: Failed to start Configure 4to6 tunnel through Hurricane Electric.
░░ Subject: A start job for unit ipv6-tunnel.service has failed
░░ Defined-By: systemd
░░ Support: https://wiki.rockylinux.org/rocky/support
░░ 
░░ A start job for unit ipv6-tunnel.service has finished with a failure.
░░ 
░░ The job identifier is 192456 and the job result is failed.

So the issues :

SIOCSIFADDR: File exists → The script is trying to add an IPv6 address that already exists.
SIOCADDRT: File exists → The script is trying to add an IPv6 route that already exists.

Event Timeline

dereckson added projects: Servers, Salt.
dereckson updated the task description. (Show Details)
dereckson updated the task description. (Show Details)

For context, when we apply Salt configuration, it currently checks if ipv6-setup-tunnel is running.

When the tunnel already exists, the service fails, as it calls a script intended to only run at startup:
https://devcentral.nasqueron.org/source/operations/browse/main/roles/core/network/files/ipv6-tunnels/docker-002.sh.jinja