On 04/06/2016 02:51 AM, James Oguya wrote:
> I've also experienced the same problem 15.08.x. I run both slurmdbd &
> slurmctld on the same head node but I've explicitly configured slurm to use
> non-localhost IP address as the ControlAddr.
>
> - slurm.conf -> /etc/slurm/slurm.conf
> ControlMachine=hpc
> ControlAddr=192.168.5.3
The new docs claim you should use a hostname for ControlAddr so it can be passed
to gethostbyname(). Seems like either the docs, the variable name, or the code
should be changed to be more consistent.
In my case using a hostname the problem and I can now add, delete, or modify
users and the changes take effect immediately
Gene Soudlenkov sent me a change to fix it, but I'm just using a hostname for
ControlAddr for now.
Here's what Gene sent:
Well, it seems to be true. It is actually quite easy to fix: add this at
line 94 (before if(h_err)):
else
{
struct in_addr addr;
if (!inet_aton(name,&addr) && (hptr = gethostbyaddr((const char *)&addr,
sizeof(addr),AF_INET)))
n = copy_hostent(hptr, buf, buflen);
}