LinkSpeed Detection on Windows includes all PowerShell profile output for each interface #11171
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/fingerprint
theme/platform-windows
type/bug
Nomad version
Nomad v1.1.4 (acd3d78)
Operating system and Environment details
WindowsProductName : Windows 10 Enterprise
WindowsCurrentVersion : 6.3
WindowsVersion : 1909
Issue
During agent startup (tested using the -dev option) any powershell profile output is included in the string parsed to determine link speed.
This causes the following:
Reproduction steps
Add something to your powershell profile that outputs to the host, such as
"User: $env:USERNAME"
Start Nomad:
Expected Result
Network link speed / interface fingerprint detection works, and doesn't load the powershell profile for each interface.
Actual Result
This is logged for each interface - obviously if I didnot have any text output in my Powershell profile this would not be a problem, but you should probably be using the
-NoProfile
option for powershell anyway to cut down on execution time, resources, and environment contamination.Job file (if appropriate)
Nomad Server logs
I can produce the full logs if needed, but I'll need to actually read and possibly sanitize them before hand so I wanted to be sure it was required first.
The text was updated successfully, but these errors were encountered: