rundeck-plugins / rundeck-winrm-plugin

Rundeck WinRM Node Executor plugin
Other
56 stars 28 forks source link

Error: Credentials cache I/O operation failed - on remote login to multiple windows hosts using same credentials #73

Closed lastlad closed 3 years ago

lastlad commented 3 years ago

Hello - We have a requirement where we want to login to multiple (4+) windows hosts to deploy our application code. We are using Rundeck PyWinRM plugin to do the same. Everything works well when we try to log onto a single node or two nodes. When we increase the nodes to more than 3 to run our deploy script, we are running into what we believe is a concurrency issue. We are able to easily reproduce this error even with a simple script that just tries to login and do a pwd. It happens with both NodeFirst strategy as well as Parallel execution strategy.

Here's an excerpt from the error that's thrown on execution.

[ERROR  ]  generate_request_header(): authGSSClientStep() failed: (kerberos_.py:258)[winrm.vendor.requests_kerberos.kerberos_]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/winrm/vendor/requests_kerberos/kerberos_.py", line 246, in generate_request_header
    negotiate_resp_value)
GSSError: (('Invalid credential was supplied', 655360), ('Credentials cache I/O operation failed', -1765328191))
[ERROR  ]  (('Invalid credential was supplied', 655360), ('Credentials cache I/O operation failed', -1765328191)) (kerberos_.py:259)[winrm.vendor.requests_kerberos.kerberos_]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/winrm/vendor/requests_kerberos/kerberos_.py", line 246, in generate_request_header
    negotiate_resp_value)
GSSError: (('Invalid credential was supplied', 655360), ('Credentials cache I/O operation failed', -1765328191))
[ERROR  ]  Execution finished with the following error (winrm-exec.py:303)[root]
[ERROR  ]  authGSSClientStep() failed: (('Invalid credential was supplied', 655360), ('Credentials cache I/O operation failed', -1765328191)) (winrm-exec.py:304)[root]

Any help is appreciated.

Thanks!