Skip to content

Executing a winrm command that shuts down the machine #161

@sneal

Description

@sneal

It appears a recent commit broke some assumptions in stembuild that executes a sysprep shutdown command that never finishes.

Is there a recommended method of executing a winrm command which may be interrupted by a shutdown? Previously we were expecting an error like winrm connection event: unknown error Post "http://10.220.41.242:5985/wsman": read tcp 10.220.41.9:34002->10.220.41.242:5985: read: connection timed out and just continuing when that happened. Now the winrm command never finishes and winrm command fetchOutput goes into an infinite loop waiting for the machine to come back up which will never happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions