Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When specifying a SSH bastion host st2actionrunner leaks sockets and throws exceptions #4973

Closed
nmaludy opened this issue Jun 25, 2020 · 0 comments · Fixed by #4974
Closed
Assignees
Labels
Milestone

Comments

@nmaludy
Copy link
Member

nmaludy commented Jun 25, 2020

SUMMARY

When specifying a bastion host for the SSH runners, st2actionrunner leaks sockets and throws exceptions when trying to close those sockets.

st2actionrunner-59c47ddcc8-9jjbl r1 2020-06-25 15:30:17,009 ERROR [-] Failed shutting down SSH connection to host: rndcas402
st2actionrunner-59c47ddcc8-9jjbl r1 Traceback (most recent call last):
st2actionrunner-59c47ddcc8-9jjbl r1   File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/parallel_ssh.py", line 218, in close
st2actionrunner-59c47ddcc8-9jjbl r1     self._hosts_client[host].close()
st2actionrunner-59c47ddcc8-9jjbl r1   File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/paramiko_ssh.py", line 462, in close
st2actionrunner-59c47ddcc8-9jjbl r1     self.socket.process.kill()
st2actionrunner-59c47ddcc8-9jjbl r1 AttributeError: 'Channel' object has no attribute 'process'

STACKSTORM VERSION

3.2.0

Additional Info

Looks to have been introduced here: #4881

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants