fix for bug 3509482: use SNs ip addresses known by compute nodes as the replication list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11941 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
690377bc42
commit
cc8a9e645e
@ -10562,7 +10562,7 @@ sub mkdsklsnode
|
||||
}
|
||||
my $xcatmasterip = xCAT::NetworkUtils->getipaddr((keys %xcatmasterhash)[0]);
|
||||
my @allips = xCAT::Utils->gethost_ips();
|
||||
if (!grep(/$xcatmasterip/, @allips))
|
||||
if (!grep(/^$xcatmasterip$/, @allips))
|
||||
{
|
||||
$setuphanfserr++;
|
||||
my $rsp;
|
||||
@ -10575,7 +10575,7 @@ sub mkdsklsnode
|
||||
foreach my $snhost (keys %snhash)
|
||||
{
|
||||
my $snip = xCAT::NetworkUtils->getipaddr($snhost);
|
||||
if (grep(/$snip/, @allips))
|
||||
if (grep(/^$snip$/, @allips))
|
||||
{
|
||||
$snlocal = $snhost;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user