Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#45345 - [zeromq] upgrade to version 4.1.x breaks IPv6 support in salt-zmq

Attached to Project: Community Packages
Opened by Moritz Bunkus (mbunkus) - Tuesday, 16 June 2015, 07:52 GMT
Last edited by Sébastien Luttringer (seblu) - Wednesday, 01 July 2015, 11:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Sébastien Luttringer (seblu)
Daniel Wallace (gtmanfred)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I started to report on this in https://bugs.archlinux.org/task/45316 but it seems that these are two separate issues, hence the new report.

After upgrading zeromq (4.0.5-1 -> 4.1.1-1) and python2-pyzmq (14.6.0-1 -> 14.6.0-2) salt-zmq does not work anymore. The client gets stuck in an infinite loop with the uninformative error message »invalid argument«. Downgrading both packages makes the same setup work again instantly.

I've tried with the just-released zeromq 4.1.2-1 and python2-pyzmq 14.6.0-3, but no dice.

I've narrowed it down to the problem only occurring if IPv6 support is enabled and used. Otherwise salt-zmq seems to work just fine.

Here's a minimal test case which I've just verified produces the problem:

1. pacstrap a minimal installation, e.g. »mkdir ~/tmp/salt-zeromq-test && pacstrap -c -d ~/tmp/salt-zeromq-test base«
2. set a password for root in side the container
3. start a container with that installation: »systemd-nspawn -bD ~/tmp/salt-zeromq-test«
4. Login in as root
5. Install salt-zmq, don't start salt just yet
6. make sure »localhost« resolves to both IPv4 and IPv6 addresses
7. configure salt-master to use IPv6, e.g. create /etc/salt/master.d/test.conf with the following content:

ipv6: true
listen: "::"

8. Start salt-master
9. configure salt-minion to use »localhost« as the master, but no IPv6 yet, e.g. create /etc/salt/minion.d/test.conf with the following content:

master: localhost

10. Start the minion; accept the minion's key with »salt-key -A«
11. Stop the minion and configure it to use IPv6 by adjusting the content of /etc/salt/minion.d/test.conf to the following content:

master: localhost
ipv6: true

12. start the minion and observe the aforementioned »invalid argument« message

If you want to verify that the downgrade fixes things: stop the master and the minion, downgrade zeromq to 4.0.5-x and python2-pyzmq to 14.6.0-1, start the master, start the minion.
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Wednesday, 01 July 2015, 11:58 GMT
Reason for closing:  Fixed
Comment by Daniel Wallace (gtmanfred) - Tuesday, 16 June 2015, 16:57 GMT
I have reported this to salt to see if they can fix it.

https://github.com/saltstack/salt/issues/24712
Comment by Daniel Wallace (gtmanfred) - Tuesday, 16 June 2015, 17:21 GMT
According to salt, 4.1.2 should fix the problems with zmq.

Is there any other information you can provide us with?

https://github.com/saltstack/salt/issues/24630#issuecomment-111844056
Comment by Thomas S Hatch (thatch45) - Wednesday, 17 June 2015, 17:54 GMT
Looks like there may still be some issues with 4.1.2. I have commented on the upstream salt issue and once we nail it down we will send the info upstream to zmq as well.

- CTO/Founder SaltStack
Comment by Michael Steed (msteed68) - Monday, 22 June 2015, 20:45 GMT Comment by Kyle Keen (keenerd) - Wednesday, 01 July 2015, 10:35 GMT
Patch applied in zeromq-4.1.2-2
Comment by Sébastien Luttringer (seblu) - Wednesday, 01 July 2015, 11:57 GMT
Thx it works now!

Loading...