Middleware restarting WireGuard on successful connection

Description

The truecommand service is failing to start the wireguard service after is receives an Active state from the portal. Attached is a customer debug that demonstrates this issue, leading to continual reboots until the interface is disabled. Notice the wg0 interfaces messages in logs, as well as the number of processes associated with wg-quick up. Looks like it’s trying to start the service every 3s.

This has been seen since at least U1, but I’ve made some leads on how to reproduce this. I enabled verbosity on wsdd and removed the monitoring daemon from starting with wg-quick. The daemon seems unreliable and doesn’t exist on Linux. I noticed the loop starting once I restarted the wireguard interface without the monitoring daemon, although I don’t know if that is what triggered it or what is preventing the extra processes from summoning.

I’ll also mention that you can manually up/down the interface during this and it’ll keep looping. This also causes the UI to hang if you try to disconnect from TC.

Problem/Justification

None

Impact

None

Attachments

1

Activity

Show:

Bug Clerk October 30, 2023 at 6:22 PM

Automation for Jira August 16, 2023 at 4:03 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk August 16, 2023 at 3:55 PM

Bug Clerk August 11, 2023 at 11:56 PM

Bug Clerk August 8, 2023 at 10:20 PM

Complete

Details

Assignee

Reporter

Labels

Impact

High

Original estimate

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created August 4, 2023 at 7:19 PM
Updated November 3, 2023 at 11:51 AM
Resolved October 30, 2023 at 6:25 PM