NAS-128704 / 24.10 / Fix truecommand issues on HA
Automatic cherry-pick failed. Please resolve conflicts by running:
git reset --hard HEAD~1
git cherry-pick -x 0f253c4e65626b871ac18ede7962750d6b33bcd0
git cherry-pick -x ad9973e6dee801319343f088d03bc9bfc838b136
git cherry-pick -x ac6095fad3d222821afc012f39a8b385dd395e60
git cherry-pick -x 5a820cc54e99d48abb8a253d21e49cfa0ba28bd3
git cherry-pick -x e672bbd9822d91e9602d40866da3626a70218067
git cherry-pick -x cdcea95327141aec636464d1059b138fce3ac7eb
If the original PR was merged via a squash, you can just cherry-pick the squashed commit:
git reset --hard HEAD~1
git cherry-pick -x f164dab05a07d0f7d90c21a7308ba0edd173b87a
This PR adds changes to backport some of the fixes which were made to SCALE and not backported to CORE and also fix an issue where wireguard service started on standby whenever the service was started on active. Reason behind that was that we propagate service actions to standby automatically by default and that is not desirable in this case as wireguard should only be running on 1 node at a time. To address that truecommand has been added to list of blacklisted services which shouldn't be touched when any of the service verb is called for it.
An edge case for nginx config has also been handled where we were not adding wireguard interface ip to listen directive on failover and a subsequent nginx config reload was warranted because of that.
Original PR: https://github.com/truenas/middleware/pull/13756 Jira URL: https://ixsystems.atlassian.net/browse/NAS-128704