Close proxycommand socket when its not needed anymore and resolve ssh zombies#4881
Merged
arm4b merged 12 commits intoStackStorm:masterfrom Apr 6, 2020
Merged
Close proxycommand socket when its not needed anymore and resolve ssh zombies#4881arm4b merged 12 commits intoStackStorm:masterfrom
arm4b merged 12 commits intoStackStorm:masterfrom
Conversation
Member
|
@StackStorm/maintainers Can someone comment on how to update the Unit tests based on this find? |
Member
|
@eedgar are you able to help us update the CI tests for this? |
blag
suggested changes
Apr 2, 2020
Co-Authored-By: blag <blag@users.noreply.github.com>
punkrokk
suggested changes
Apr 2, 2020
Member
punkrokk
left a comment
There was a problem hiding this comment.
@eedgar Can you please add a changelog here: https://github.com/StackStorm/st2/blob/master/CHANGELOG.rst
blag
suggested changes
Apr 3, 2020
Contributor
blag
left a comment
There was a problem hiding this comment.
Looking much better. Would like some TODO comments so we can come back and improve this code once we're developing for Python 3.6+ only (eg: after ST2 v3.2 is released, which should be "soon").
punkrokk
suggested changes
Apr 3, 2020
blag
reviewed
Apr 3, 2020
arm4b
reviewed
Apr 4, 2020
arm4b
approved these changes
Apr 6, 2020
Member
Member
|
Really thanks to @eedgar for the 2nd effort here! |
This was referenced Jun 25, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Needs confirmation that this is written correctly from @eedgar (-- @punkrokk )
Paramiko has a bug that is not patched, that causes ssh proxy connected to not get closed.
eg. zombie ssh processes are left from the proxycommand
If I were to modify my st2.conf file as follows:
We end up with zombie ssh connections. Paramiko has a bug, but it is not patched: paramiko/paramiko#789
This PR checks for sockets that are left open and closes them.