#41 random port allocation
Opened 3 years ago by slev. Modified 3 years ago

In IPA CI I noticed a rare failure(actually first time seen).
389-ds fails to start with:

[03/Jun/2021:14:11:17.470839768 +0000] - INFO - bdb_pre_close - Waiting for 4 database threads to stop
[03/Jun/2021:14:11:19.508650257 +0000] - INFO - bdb_pre_close - All database threads now stopped
[03/Jun/2021:14:11:19.522674511 +0000] - DEBUG - NSMMReplicationPlugin - replica_destroy
[03/Jun/2021:14:11:19.524130417 +0000] - DEBUG - NSMMReplicationPlugin - replica_destroy
[03/Jun/2021:14:11:19.526881528 +0000] - INFO - ldbm_back_instance_set_destructor - Set of instances destroyed
[03/Jun/2021:14:11:19.528027032 +0000] - INFO - connection_post_shutdown_cleanup - slapd shutting down - freed 8 work q stack objects - freed 12 op stack objects
[03/Jun/2021:14:11:19.528351733 +0000] - INFO - main - slapd stopped.
[03/Jun/2021:14:11:20.648689471 +0000] - ERR - slapd_system_isFIPS - Can not access /proc/sys/crypto/fips_enabled - assuming FIPS is OFF
[03/Jun/2021:14:11:20.649680475 +0000] - ERR - slapd_system_isFIPS - Can not access /proc/sys/crypto/fips_enabled - assuming FIPS is OFF
[03/Jun/2021:14:11:20.868549922 +0000] - ERR - nis-plugin - error connecting rpcbind client socket to the service
[03/Jun/2021:14:11:20.869454326 +0000] - ERR - nis-plugin - error binding tcp6 socket to port 953 for incoming NIS requests: Address already in use
[03/Jun/2021:14:11:20.869796727 +0000] - ERR - plugin_setup - Init function "nis_plugin_init" for "NIS Server" plugin in library "/usr/lib64/dirsrv/plugins/nisserver-plugin.so" failed
[03/Jun/2021:14:11:20.870107728 +0000] - ERR - load_plugin_entry - Unable to load plugin "cn=NIS Server,cn=plugins,cn=config"

953 usually is taken by rndc.

CI run:
https://dev.azure.com/slev0538/slev_/_build/results?buildId=222&view=logs&j=29e0ac2b-77b4-5770-0f74-ab655e4ae1a6&t=c23aec21-1662-5b21-4df6-6d31a184a35d, though I can't guarantee the long live of the link.


I have seen that in Azure as well. The logic in NIS plugin to choose a privileged port is here: https://pagure.io/slapi-nis/blob/master/f/src/portmap.c#_559. Sadly, it needs a privileged port.

What we see, most likely, is a race as both 389-ds and rndc start in parallel...

Log in to comment on this ticket.

Metadata