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

Switch to using parallel-ssh instead of fabric redux #411

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

dan-blanchard
Copy link
Member

This has all of the commits from #400 plus some more to fix travis and fix some minor issues. I wanted to make changes before I merged it into master, and I wanted to be able to more easily test things on my machine.

@dan-blanchard
Copy link
Member Author

It appears the ssh2-python is currently incompatible with PyPy, so I'm going to hold off on this until ParallelSSH/ssh2-python#16 gets addressed.

@dan-blanchard
Copy link
Member Author

ssh2-python has fixed the issue on their end, but still waiting for a new parallel-ssh release with the fix there.

@dan-blanchard
Copy link
Member Author

This needs more testing before merging. I've found a few cases where it seems like options aren't being resolved or sent to Storm properly.

@tanaysoni
Copy link
Contributor

@dan-blanchard I'd be happy to have a look. Any pointers to reproduce the cases would be helpful.

@dan-blanchard dan-blanchard force-pushed the tanaysoni-parallel-ssh branch 4 times, most recently from 2c15241 to 01d6e76 Compare December 7, 2018 20:08
@dan-blanchard
Copy link
Member Author

This is very close to being ready to merge. I am currently being foiled by ParallelSSH/ssh2-python#51 though.

@pystorm pystorm deleted a comment from coveralls Dec 14, 2018
@pystorm pystorm deleted a comment from coveralls Dec 14, 2018
@pystorm pystorm deleted a comment from coveralls Dec 14, 2018
tanaysoni and others added 3 commits December 14, 2018 17:04
refactored _create_or_update_virtualenv to use parallel-ssh instead of fabric

use pssh native client to avoid gevent monkey patch

added parallel-ssh dependency

replaced Fabric env with an analogous dict

use parallel-ssh to tail logs

removed Fabric constructs

use parallel-ssh for 'remove_logs'

use next as function for python3 compatability

replace fabric with subprocess for local topology run

shadown FileNotFoundError with IOError for python2 compatibility

use fabric with subprocess for creating topology jar

replace usage of fabric.colors with util functions

removed fabric dependency

Make sure we get output from update_virtualenv

Placeholder
Fix libssh line in .travis.yml

Use parallel-ssh version that is compatible with PyPy

More parallel-ssh fixes

Try newer PyPy
@dan-blanchard
Copy link
Member Author

I've tested this with submitting topologies and running them locally, and it all seems to work now.

@dan-blanchard
Copy link
Member Author

dan-blanchard commented Dec 15, 2018

Ugh, the ssh2-python devs removed the wheels from PyPI (breaking the cardinal rule of never removing packages from PyPI). The pypy build will continue to fail until they put the latest version back. 😭

@dan-blanchard
Copy link
Member Author

Seems like there's still an issue with getting all of the options resolved properly with this branch. A topology.subprocess.timeout setting I had in config.json was not being applied when deploying with this branch. I'll figure that out next week I guess.

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

Successfully merging this pull request may close these issues.

None yet

2 participants