Skip to content

Conversation

@nmaludy
Copy link
Member

@nmaludy nmaludy commented Jun 25, 2020

Closes #4973

Regression introduced here: #4881

The self.socket object is not a process and doesn't have a member called process, so calling self.socket.process.xxx throws an exception when closing the SSH client.

Looks like we were also failing to cleanup the self.bastion_socket instance, so added that as well.

@nmaludy nmaludy added the bug label Jun 25, 2020
@nmaludy nmaludy added this to the 3.3.0 milestone Jun 25, 2020
@nmaludy nmaludy requested review from arm4b, blag and punkrokk June 25, 2020 17:28
@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines. Good size to review. label Jun 25, 2020
Copy link
Member

@arm4b arm4b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!

Copy link
Member

@punkrokk punkrokk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find!

@igcherkaev
Copy link

After a couple of days running with the fix applied st2actionrunner is no longer leaking sockets and CPU utilization has been steady:

image

@igcherkaev
Copy link

igcherkaev commented Jun 26, 2020

Previously, it would look like this:
image

And we had to restart actionrunners to calm it down.

@nmaludy nmaludy merged commit 8f507d6 into master Jun 29, 2020
@nmaludy nmaludy deleted the hotfix/paramiko-bastion-cleanup branch June 29, 2020 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug regression size/M PR that changes 30-99 lines. Good size to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants