Uploaded image for project: 'Puppet Task Runner'
  1. Puppet Task Runner
  2. BOLT-1209

Intermittent AppVeyor test failure - WSMAN ERROR CODE: 1018 / WSMAN ERROR CODE: 2147746132

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.16.0
    • Component/s: Windows
    • Labels:
    • Template:
    • Team:
      Bolt
    • Sprint:
      Bolt Kanban
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      The following code can be used to help decipher the error codes https://p0w3rsh3ll.wordpress.com/2013/03/07/deciphering-winrm-error-codes/.

      Error code 1018 is defined in https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes--1000-1299- as

      ERROR_KEY_DELETED
      1018 (0x3FA)
      Illegal operation attempted on a registry key that has been marked for deletion.
      

      2147746132 could be the COM error for REGDB_E_CLASSNOTREG

      C:\Users\Iristyle> (New-Object -ComObject WSMAN.Automation).GetErrorMessage((Get-ErrorCode 2147746132).Int64)
      Class not registered
      

      Both of these seem to indicate some registry setup may not be complete.

      bundle exec rake integration:appveyor_agents fails intermittently with a few different types of winrm errors

      Failures:
        1) apply over winrm on Appveyor with Puppet Agents when running against puppet 5 runs a ruby task
           Failure/Error: expect(result[0]).to include('status' => 'success')
             expected {"node" => "winrm://roddypiper@localhost:5985", "result" => {"_error" => {"details" => {}, "issue_code" => "CON... host server and proxy are properly registered. </f:Message></f:WSManFault>"}}, "status" => "failure"} to include {"status" => "success"}
             Diff:
             @@ -1,2 +1,4 @@
             -"status" => "success",
             +"node" => "winrm://roddypiper@localhost:5985",
             +"result" => {"_error"=>{"details"=>{}, "issue_code"=>"CONNECT_ERROR", "kind"=>"puppetlabs.tasks/connect-error", "msg"=>"Failed to connect to http://localhost:5985/wsman: [WSMAN ERROR CODE: 1018]: <f:WSManFault Code='1018' Machine='localhost' xmlns:f='http://schemas.microsoft.com/wbem/wsman/1/wsmanfault'><f:Message>The WSMan service could not launch a host process to process the given request.  Make sure the WSMan provider host server and proxy are properly registered. </f:Message></f:WSManFault>"}},
             +"status" => "failure",
           # ./spec/integration/apply_spec.rb:277:in `block (4 levels) in <top (required)>'
        2) apply over winrm on Appveyor with Puppet Agents when running against puppet 5 runs an apply plan
           Failure/Error: expect(result[0]).to include('status' => 'success')
             expected {"node" => "winrm://roddypiper@localhost:5985", "result" => {"_error" => {"details" => {}, "issue_code" => "CON... host server and proxy are properly registered. </f:Message></f:WSManFault>"}}, "status" => "failure"} to include {"status" => "success"}
             Diff:
             @@ -1,2 +1,4 @@
             -"status" => "success",
             +"node" => "winrm://roddypiper@localhost:5985",
             +"result" => {"_error"=>{"details"=>{}, "issue_code"=>"CONNECT_ERROR", "kind"=>"puppetlabs.tasks/connect-error", "msg"=>"Failed to connect to http://localhost:5985/wsman: [WSMAN ERROR CODE: 1018]: <f:WSManFault Code='1018' Machine='localhost' xmlns:f='http://schemas.microsoft.com/wbem/wsman/1/wsmanfault'><f:Message>The WSMan service could not launch a host process to process the given request.  Make sure the WSMan provider host server and proxy are properly registered. </f:Message></f:WSManFault>"}},
             +"status" => "failure",
           # ./spec/integration/apply_spec.rb:277:in `block (4 levels) in <top (required)>'
        3) apply over winrm on Appveyor with Puppet Agents when running against puppet 5 does not create Boltdir
           Failure/Error: expect(result[0]).to include('status' => 'success')
             expected {"node" => "winrm://roddypiper@localhost:5985", "result" => {"_error" => {"details" => {}, "issue_code" => "CON... host server and proxy are properly registered. </f:Message></f:WSManFault>"}}, "status" => "failure"} to include {"status" => "success"}
             Diff:
             @@ -1,2 +1,4 @@
             -"status" => "success",
             +"node" => "winrm://roddypiper@localhost:5985",
             +"result" => {"_error"=>{"details"=>{}, "issue_code"=>"CONNECT_ERROR", "kind"=>"puppetlabs.tasks/connect-error", "msg"=>"Failed to connect to http://localhost:5985/wsman: [WSMAN ERROR CODE: 1018]: <f:WSManFault Code='1018' Machine='localhost' xmlns:f='http://schemas.microsoft.com/wbem/wsman/1/wsmanfault'><f:Message>The WSMan service could not launch a host process to process the given request.  Make sure the WSMan provider host server and proxy are properly registered. </f:Message></f:WSManFault>"}},
             +"status" => "failure",
           # ./spec/integration/apply_spec.rb:277:in `block (4 levels) in <top (required)>'
      Finished in 4 minutes 43.4 seconds (files took 6.31 seconds to load)
      6 examples, 3 failures
      Failed examples:
      

      https://ci.appveyor.com/project/puppetlabs/bolt/builds/22644221/job/cjaqgb24yowd4mvu

      There are another set of of similar errors that show as WSMAN ERROR CODE: 2147746132 as seen in https://ci.appveyor.com/project/puppetlabs/bolt/builds/23350727/job/il4gp64cnrx6qcs2:

      Failures:
        1) apply over winrm on Appveyor with Puppet Agents when running against puppet 5 runs a ruby task
           Failure/Error: expect(result[0]).to include('status' => 'success')
             expected {"node" => "winrm://roddypiper@localhost:5985", "result" => {"_error" => {"details" => {}, "issue_code" => "CON... host server and proxy are properly registered. </f:Message></f:WSManFault>"}}, "status" => "failure"} to include {"status" => "success"}
             Diff:
             @@ -1,2 +1,4 @@
             -"status" => "success",
             +"node" => "winrm://roddypiper@localhost:5985",
             +"result" => {"_error"=>{"details"=>{}, "issue_code"=>"CONNECT_ERROR", "kind"=>"puppetlabs.tasks/connect-error", "msg"=>"Failed to connect to http://localhost:5985/wsman: [WSMAN ERROR CODE: 2147746132]: <f:WSManFault Code='2147746132' Machine='localhost' xmlns:f='http://schemas.microsoft.com/wbem/wsman/1/wsmanfault'><f:Message>The WSMan service could not launch a host process to process the given request.  Make sure the WSMan provider host server and proxy are properly registered. </f:Message></f:WSManFault>"}},
             +"status" => "failure",
           # ./spec/integration/apply_spec.rb:274:in `block (4 levels) in <top (required)>'
        2) apply over winrm on Appveyor with Puppet Agents when running against puppet 5 runs an apply plan
           Failure/Error: expect(result[0]).to include('status' => 'success')
             expected {"node" => "winrm://roddypiper@localhost:5985", "result" => {"_error" => {"details" => {}, "issue_code" => "CON... host server and proxy are properly registered. </f:Message></f:WSManFault>"}}, "status" => "failure"} to include {"status" => "success"}
             Diff:
             @@ -1,2 +1,4 @@
             -"status" => "success",
             +"node" => "winrm://roddypiper@localhost:5985",
             +"result" => {"_error"=>{"details"=>{}, "issue_code"=>"CONNECT_ERROR", "kind"=>"puppetlabs.tasks/connect-error", "msg"=>"Failed to connect to http://localhost:5985/wsman: [WSMAN ERROR CODE: 2147746132]: <f:WSManFault Code='2147746132' Machine='localhost' xmlns:f='http://schemas.microsoft.com/wbem/wsman/1/wsmanfault'><f:Message>The WSMan service could not launch a host process to process the given request.  Make sure the WSMan provider host server and proxy are properly registered. </f:Message></f:WSManFault>"}},
             +"status" => "failure",
           # ./spec/integration/apply_spec.rb:274:in `block (4 levels) in <top (required)>'
        3) apply over winrm on Appveyor with Puppet Agents when running against puppet 5 does not create Boltdir
           Failure/Error: expect(result[0]).to include('status' => 'success')
             expected {"node" => "winrm://roddypiper@localhost:5985", "result" => {"_error" => {"details" => {}, "issue_code" => "CON... host server and proxy are properly registered. </f:Message></f:WSManFault>"}}, "status" => "failure"} to include {"status" => "success"}
             Diff:
             @@ -1,2 +1,4 @@
             -"status" => "success",
             +"node" => "winrm://roddypiper@localhost:5985",
             +"result" => {"_error"=>{"details"=>{}, "issue_code"=>"CONNECT_ERROR", "kind"=>"puppetlabs.tasks/connect-error", "msg"=>"Failed to connect to http://localhost:5985/wsman: [WSMAN ERROR CODE: 2147746132]: <f:WSManFault Code='2147746132' Machine='localhost' xmlns:f='http://schemas.microsoft.com/wbem/wsman/1/wsmanfault'><f:Message>The WSMan service could not launch a host process to process the given request.  Make sure the WSMan provider host server and proxy are properly registered. </f:Message></f:WSManFault>"}},
             +"status" => "failure",
           # ./spec/integration/apply_spec.rb:274:in `block (4 levels) in <top (required)>'
      Finished in 4 minutes 28.8 seconds (files took 5.56 seconds to load)
      6 examples, 3 failures
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                ethan Ethan Brown
                Reporter:
                ethan Ethan Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support