Pin dnspython pip dependency due to regression in v2.0.0#4997
Merged
Conversation
dnspython updated to v2.0.0 results in the following errors: ``` 2020-07-19 15:47:56,299 ERROR [-] Failed to connect to database "st2" @ "mongo:27017" as user "None": No servers found yet ``` and ``` pymongo.errors.ServerSelectionTimeoutError: No servers found yet ```
nmaludy
approved these changes
Jul 20, 2020
nmaludy
suggested changes
Jul 20, 2020
Member
nmaludy
left a comment
There was a problem hiding this comment.
Need changelog i'm think here too
Member
Author
|
@nmaludy Thanks! |
Member
|
Nice find |
Member
Author
|
I'll need to test the produced packages in both Docker/K8s environments next to verify the fix end-to-end. |
Member
Author
|
Confirming the fix: @nmaludy this is RFR now |
nmaludy
approved these changes
Jul 23, 2020
|
Thanks for the fix @armab , It works! |
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.
Recently both
st2-dockerhttps://circleci.com/gh/StackStorm/st2-docker/2199 andstackstorm-hahttps://circleci.com/gh/StackStorm/stackstorm-ha/2393 nightly builds started to fail 🔥.Fixes StackStorm/stackstorm-k8s#143
Fixes StackStorm/st2-docker#194
The issue is that st2 services started to fail if mongodb is a host and not an IP, meaning all remote-host scenarios are broken:
Looking deeper, the only diff in pip dependencies between the working and broken deb packages was
dnspythonthat updated fromv1.16.0tov2.0.0.This PR pins
dnspythonto a working non-breaking version before2.0.0.