Skip to content

Conversation

@nbmaiti
Copy link

@nbmaiti nbmaiti commented Jan 7, 2026

Updates WSMAN setup to fallback to local HECI transport if the LMS
TLS port (16993) is unreachable.

Fixes WSMAN client failures on platforms without LMS (driver-only),
enabling CCM/ACM activation and upgrades over TLS via LME.

Files:
    - internal/local/amt/wsman.go: Added TLS fallback logic.

Resolves #909

@nbmaiti nbmaiti requested a review from rsdmike January 7, 2026 07:49
    Updates WSMAN setup to fallback to local HECI transport if the LMS
    TLS port (16993) is unreachable.

    Fixes WSMAN client failures on platforms without LMS (driver-only),
    enabling CCM/ACM activation and upgrades over TLS via LME.

    Files:
        - internal/local/amt/wsman.go: Added TLS fallback logic.

    Resolves #909

Signed-off-by: Nabendu Maiti <[email protected]>
@nbmaiti nbmaiti force-pushed the lme_support_tls branch 2 times, most recently from 295be87 to ae90a0e Compare January 7, 2026 07:55
Copy link
Member

@rsdmike rsdmike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you attach a screenshot with -v of the output when running these changes. Either an activate or deactivate on an AMT 19 machine showing success? For me the device hangs:

C:\Users\amt\Development\rpc-go>go run ./cmd/rpc/main.go deactivate --local  -v
time="2026-01-07T12:52:49-07:00" level=trace msg="Running AfterApply for AMTBaseCmd"
time="2026-01-07T12:52:49-07:00" level=info msg="TLS is enforced on local ports"
AMT Password:
time="2026-01-07T12:52:52-07:00" level=trace msg="Setting default TLS Config for ACM/CCM mode"
time="2026-01-07T12:52:52-07:00" level=info msg="Failed to connect to LMS, using local transport instead."
time="2026-01-07T12:52:52-07:00" level=debug msg="sending APF_PROTOCOL_VERSION_MESSAGE"
time="2026-01-07T12:52:52-07:00" level=debug msg="Sending SystemId UUID: 00000000-0000-0000-0000-000000000000"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:192 MajorVersion:1 MinorVersion:0 TriggerReason:9 UUID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] Reserved:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]}"
time="2026-01-07T12:52:52-07:00" level=debug msg="received APF PROTOCOL VERSION"
time="2026-01-07T12:52:52-07:00" level=debug msg="SystemId UUID: EAC2D203-FF81-439A-9EF0-A63084B5818E"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:192 MajorVersion:1 MinorVersion:0 TriggerReason:254 UUID:[3 210 194 234 129 255 154 67 158 240 166 48 132 181 129 142] Reserved:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]}"
time="2026-01-07T12:52:52-07:00" level=debug msg="sending APF_PROTOCOL_VERSION_MESSAGE"
time="2026-01-07T12:52:52-07:00" level=debug msg="Sending SystemId UUID: EAC2D203-FF81-439A-9EF0-A63084B5818E"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:192 MajorVersion:1 MinorVersion:0 TriggerReason:254 UUID:[3 210 194 234 129 255 154 67 158 240 166 48 132 181 129 142] Reserved:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]}"
time="2026-01-07T12:52:52-07:00" level=debug msg="received APF_SERVICE_REQUEST"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:5 ServiceNameLength:18 ServiceName:[email protected]}"
time="2026-01-07T12:52:52-07:00" level=debug msg="sending APF_SERVICE_ACCEPT_MESSAGE"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:6 ServiceNameLength:18 ServiceName:[112 102 119 100 64 97 109 116 46 105 110 116 101 108 46 99 111 109]}"
time="2026-01-07T12:52:52-07:00" level=debug msg="received APF_GLOBAL_REQUEST"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:80 StringLength:13 String:tcpip-forward}"
time="2026-01-07T12:52:52-07:00" level=trace msg="{WantReply:1 AddressLength:0 Address: Port:16993}"
time="2026-01-07T12:52:52-07:00" level=debug msg="sending APF_TCP_FORWARD_REPLY_MESSAGE"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:81 PortBound:16993}"
time="2026-01-07T12:52:52-07:00" level=debug msg="received APF_GLOBAL_REQUEST"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:80 StringLength:13 String:tcpip-forward}"
time="2026-01-07T12:52:52-07:00" level=trace msg="{WantReply:1 AddressLength:0 Address: Port:664}"
time="2026-01-07T12:52:52-07:00" level=debug msg="sending APF_TCP_FORWARD_REPLY_MESSAGE"
time="2026-01-07T12:52:52-07:00" level=trace msg="{MessageType:81 PortBound:664}"
exit status 0xc000013a

C:\Users\amt\Development\rpc-go>go run ./cmd/rpc/main.go deactivate --local  -v

Really, #1082 needs to be resolved before this can be adequately tested as mentioned in the description of the story.

Thanks!

@nbmaiti nbmaiti marked this pull request as draft January 12, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants