-
Notifications
You must be signed in to change notification settings - Fork 94
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
portability: permit arpa address #5411
Conversation
Can't say I understand the problem very well, but the "fix" seems fine. I take it we're safe from users on different Mac OS version having different variants of the problem? (It's entirely Python version dependent?). |
This was the first time I've seen this new address. I'm assuming it's Python version dependent as that's the only thing I've changed but there is a small chance that it's network related, will test that assumption when I get the chance. Unfortunately there's not very much literature on this problem, only a couple of posts from people asking why |
Q: Why does Q: What the hell is "arpa"? What can we do about it?
Will try out |
Damn, disappointing that that has not been fixed yet. Could we use the patch referred to at the end of that Python issue? |
Yep, a couple of other systems appear to be doing this. It is a little risky though as we know this code to be sensitive. |
FYI: This is waiting on me, I need to confirm this new arpa I encountered is due to the default Mac OS DNS config and not due the to configuration of the wider network. If it is, we need to decide whether to go for the more general, but riskier patch above, or just to hardcode the new exception as done before. Low priority until we start getting bug reports. |
I think the differing result I was seeing may have been a result of local network / ISP both of which can influence a fully IP based setup. I'm going to put this one to sleep for now until it gets reported. |
It has been reported! #6147 |
Thank you so much guys ! 🙏 |
* The arpa address returned by `socket.getfqdn` on Mac OS is different with Python 3.9 than 3.7 (conda-forge).
38f45c4
to
35c1ce0
Compare
@hjoliver, suggest going ahead with the workaround for now and looking into more advanced methods in the future, possibly in combination with an overhaul of Cylc's DNS use in general. |
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.' | ||
'0.0.0.0.0.0.ip6.arpa' | ||
) | ||
'0.0.0.0.0.0.ip6.arpa', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could make this tidier if desired
f'1.{"0." * 31}ip6.arpa',
Do we want a changelog entry for this one? |
Nah |
Closes #6147
Frustratingly, the arpa address returned by
socket.getfqdn
on Mac OS is different with Python 3.9 than 3.7 (conda-forge).For context see #4296
I'm not especially keen on fiddling this exception every time it changes, but can't really think of a better way to do this safely.
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.