Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-1124

CoInitialize uses STA, not supported on Windows Nano Server

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: puppet-agent 5.0.0
    • Component/s: None
    • Labels:
    • Environment:

      Windows Nano Server

    • Template:
    • Team:
      Agent
    • Story Points:
      1
    • Sprint:
      Agent 2017-05-31
    • Release Notes Summary:
      To allow Puppet to run on Nano server without immediately crashing requires a patch to the COM initialization code inside Ruby 2.4. This does not allow for complete support of Puppet on Nano server, but at least allows it to startup.
    • QA Risk Assessment:
      No Action

      Description

      Nano Server does not support the COM STA model, MTA needs to be used.

      In order to set MTA, CoInitializeEx needs to be used in place of CoInitialize:
      https://github.com/puppetlabs/puppet/blob/98d22be27447bcb34c33aa4a44610ab8768390f5/lib/puppet/util/windows/com.rb#L210

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              alexpilotti Alessandro Pilotti
              QA Contact:
              Eric Delaney
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support