Jira (BOLT-1489) WinRM: Misleading error message when cacert file cannot be found

24 views
Skip to first unread message

Edward Cullen (JIRA)

unread,
Jul 26, 2019, 2:03:03 PM7/26/19
to puppe...@googlegroups.com
Edward Cullen created an issue
 
Puppet Task Runner / Bug BOLT-1489
WinRM: Misleading error message when cacert file cannot be found
Issue Type: Bug Bug
Affects Versions: BOLT 1.26.0
Assignee: Unassigned
Components: WinRM
Created: 2019/07/26 11:02 AM
Environment:

Windows 10

Priority: Normal Normal
Reporter: Edward Cullen

If a cacert file is specified in bolt.yaml and the specified file cannot be found, rather than returning an obvious/helpful error, such as "Configured cacert file cannot be found.", Bolt will attempt to connect and return the following error:

[
  {
    "node": "host.example.com",
    "target": "host.example.com",
    "action": null,
    "object": null,
    "status": "failure",
    "result": {
      "_error": {
        "kind": "puppetlabs.tasks/connect-error",
        "msg": "Failed to connect to http://host.example.com:5985/wsman: system lib",
        "details": {
        },
        "issue_code": "CONNECT_ERROR"
      }
    }
  }
]

 

Note: This will occur even if --no-ssl is specified.

Assumption: (not tested) Will see similar behaviour if file cannot be read (permissions problem)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Yasmin Rajabi (JIRA)

unread,
Aug 19, 2019, 6:45:02 PM8/19/19
to puppe...@googlegroups.com

Cas Donoghue (JIRA)

unread,
Aug 20, 2019, 10:34:03 AM8/20/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages