Ticket 13280

Summary: getaddrinfo fails even if network-online.target is complete
Product: Slurm Reporter: Gennaro Oliva <gennaro.oliva>
Component: slurmctldAssignee: Tim Wickberg <tim>
Status: OPEN --- QA Contact:
Severity: C - Contributions    
Priority: ---    
Version: 21.08.5   
Hardware: Linux   
OS: Linux   
Site: -Other- Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed:
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---
Attachments: patch

Description Gennaro Oliva 2022-01-27 14:33:21 MST
Created attachment 23175 [details]
patch

On Debian systems, when using ifupdown for network configuration with allow-hotplug interfaces (which the installer uses by default) and both slurmd and slurmctld are installed, they fail to start. This happens because allow-hotplug do not guarantee that getaddrinfo succeed after network-online.target is complete [2].
The patch attached retry getaddrinfo five times before giving up and exiting SLURM deamons.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23984928
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868650