Recently i was testing OMPI in the multi-cluster, heterogeneous
environment. Because of the firewall presence between the two test
machines i wanted to restrict port used by the OMPI daemons by setting
following mca parameters:
oob_tcp_port_min_v4 = 5000
oob_tcp_port_range_v4 = 100
btl_tcp_port_min_v4 = 5000
btl_tcp_port_range_v4 = 100
Unfortunately it didn't work. After looking into source code of the
oob and btl tcp components i noticed that the sin_port member was
initialized without the conversion from host to network byte order.
After adding of the htons call (sample patch attached), the
cross-cluster run start working.