-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix #49754 minion zmq connecting to master configured explicitly as IPv6 address or IPv6 only master #49755
Conversation
da03dc9
to
b2f5889
Compare
b75b77b
to
e3e8172
Compare
cc0002f
to
f917636
Compare
Hrm. The tests aren't liking this change very much. There are quite a few failing tests here. |
This adds coverage for IPv6 connectivity. I'll check things out after a
rebase.
…On Thu, Oct 4, 2018, 08:01 Nicole Thomas ***@***.***> wrote:
Hrm. The tests aren't liking this change very much. There are quite a few
failing tests here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#49755 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOKuw9AfvVrqGobmeZsXNPnT7AaRqR4ks5uhgbEgaJpZM4W2FcG>
.
|
I rebased against 2018.3 head last night and only got 2 unit test failures. This one(
|
@aphor BTW, we are running all that with PyTest. 😉 JFYI. |
06b67be
to
372d733
Compare
@aphor Unfortunately this still isn't quite right. This is failing quite a few integration tests. |
IDK what is wrong with those tests. The failure logs say that kitchen didn't make a minion, and no targets matched :( I'm going to fix stuff @isbm recommended, re-push, and then figure out what's wrong with the test kitchen. |
@aphor I am re-running the test suite and pulling in the latest upstream branch changes. |
There's one unit test failure I found that I need to fix with salt.transport.zeromq._get_master_uri(). I tried running the daemon tests --docked, but there's something wrong with the test containers missing the salt test code, and I don't have time to figure out how to make that work so I'm going to just fix the master_uri bug and re-push. |
Sorry about that! I will amend and force push to get rid of that. |
Error Message object of type 'NoneType' has no len() Stacktrace Traceback (most recent call last): File "/tmp/kitchen/testing/tests/unit/utils/test_network.py", line 225, in test_parse_host_port host, port = network.parse_host_port(host_port) File "/tmp/kitchen/testing/salt/utils/network.py", line 1957, in parse_host_port raise _e_ TypeError: object of type 'NoneType' has no len()
@isbm I'd be grateful if you could review these changes. I'm not sure why the py2-windows-2016 job is having problems. It doesn't look related to this change set. |
This ends up in opts['master_ip'] where it can cause problems. I found this while testng a git+pip based minion installation on Ubuntu Bionic. I'm not sure why it doesn't affect other targeted OS versions in the test framework. On Bionic, if 'salt' resolves to an IPv6 address, zmq fails to connect to the master, and complains about the bracketed address.
TypeError https://docs.python.org/2/library/socket.html RTFD "Note This method has historically accepted a pair of parameters for AF_INET addresses instead of only a tuple. This was never intentional and is no longer available in Python 2.0 and later. "
Bogus random test failures forklifted from develop at 414bfe6
This reverts commit 0af7653. I guess that was way too optimistic.
tests.integration.minion.test_blackout is failing off and on for Ubuntu and Windows tests I tried naïvely bringing the latest changes to that file from develop, but there's too much baggage. @gtmanfred, @s0undt3ch is there anything you would recommend to make these red lights green? |
We have fixes in develop for that test which cannot be backported into 2018.3, but perhaps the 2019.2 branch changes are small enough to get that test more stable... |
@rallytime I think this is ready for review. |
@s0undt3ch @DmitryKuzmenko can either of you review and sign off here? |
What does this PR do?
fixes implementation of IPv6 address handling by minion and zeromq transport to enable minions to connect to a master identified only by IPv6 address or address/port
Work:
What issues does this PR fix or reference?
#49754, possibly #40515
Tests written?
Yes, or rather test coverage added to existing tests.
Commits signed with GPG?
Yes