Rabbitfixture does not work with rabbitmq >= 3.3

Bug #1322868 reported by Daniel Widerin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rabbitfixture
Fix Released
High
Gavin Panella

Bug Description

RabbitMQ >= 3.3 provides Cluster Support.

The 'RABBITMQ_NODE_PORT' which is auto-generated by rabbitfixture using the allocate_ports method may acquire a port > 2^16-20.000 which will cause an error on startup because rabbitmq adds the value 20.000 by default to RABBITMQ_NODE_PORT to auto generate its RABBITMQ_DIST_PORT.

See: https://www.rabbitmq.com/configure.html#define-environment-variables

Related branches

Revision history for this message
Daniel Widerin (saily) wrote :

Setting the RABBITMQ_DIST_PORT fixes the startup issue. See attached patch.

Gavin Panella (allenap)
Changed in rabbitfixture:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Daniel Widerin (saily) wrote :

Another idea would be to disable rabbitmq clustering in tests to avoid two ports beeing blocked.

Revision history for this message
Gavin Panella (allenap) wrote :

Daniel, I think I'll go with your patch. Thanks for that by the way, and sorry for my slow response; my bug subscription was... well, I don't know, but I didn't get any notification of this bug. I've fixed that, I hope.

Revision history for this message
Gavin Panella (allenap) wrote :

Thanks again for your bug and patch Daniel. I've uploaded 0.3.5 to PyPI which contains this fix.

Changed in rabbitfixture:
assignee: nobody → Gavin Panella (allenap)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.