greendns: Use _compute_times on dnspython 2 (Updated)#722
greendns: Use _compute_times on dnspython 2 (Updated)#722temoto merged 8 commits intoeventlet:masterfrom
Conversation
In dnspython v2.0.0, "_compute_expiration" was replaced by "_compute_times". Once the minimum version of dnspython is v2.0.0, we can remove this wrapping method. Related to eventlet#629
This comment has been minimized.
This comment has been minimized.
f772b5d to
f5424dc
Compare
|
The new test failure was introduced since dnspython 2.1.0. I have bisected to rthalley/dnspython@8c63cfd |
|
Okay, found the cause. They are checking whether the QR flag is set now. All green now :) |
temoto
left a comment
There was a problem hiding this comment.
LGTM, but I'm pretty sure someone reported that compute_time wasn't enough for compatibility with dnspython2.
So to actually merge this, we need to run some real world application using updated code. Testing volunteers are very welcome.
I took a look at the other related issue: #632 The original logs are not accessible now, but based on nova's bug report this seems to be caused by a module import order issue: https://bugs.launchpad.net/nova/+bug/1888237 In #684 we are patching ssl now, not sure if it helps on this. But IMHO if it's indeed caused by a module import order issue, it should be fixed at the corresponding project (by running eventlet monkeypatch in prior to importing dnspython), and we can do very little here. |
|
@rthalley Thank you, and sorry for missing that comment before. I have added all the missing parameters for udp() and tcp(), up to master. Hopefully the implementation makes sense. |
f4c1bfa to
2de633f
Compare
one_rr_per_rrset and ignore_trailing are present very long ago, raise_on_truncation and sock are added since dnspython 2.0.
2de633f to
4496d99
Compare
|
I'm using python-eventlet from Debian Bullseye ( |
This PR is based on #639
Rebased against latest master, and updated the GitHub CI instead of Travis.
I have also updated the tests for the last test failure left.