[LU-4789] lustre_config fails to Verify network connectivity Created: 20/Mar/14  Updated: 21/Mar/14  Resolved: 21/Mar/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 1.8.9
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Martin Hecht Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None
Environment:

CentOS 5.3


Issue Links:
Duplicate
duplicates LU-1049 lc_net does not parse unexpected outp... Resolved
Severity: 3
Rank (Obsolete): 13184

 Description   

lustre_config: Operating on the following nodes: sfs1,sfs2,sfs3,sfs4
lustre_config: Checking the cluster network connectivity and hostnames...
lc_net: Verifying network connectivity between "sfs1" and "sfs2"...
lc_net: ERROR: remote_check(): Local host resolves sfs2 to IP address "192.168.8.2", while its own resolution is "192.168.8.2
192.168.8.2". They are not the same!

the address is just mentioned once in /etc/hosts

suggested Fix:

in lc_net in remote_check():

— lc_net.orig 2014-03-20 17:32:19.000000000 +0100
+++ lc_net 2014-03-20 17:31:54.000000000 +0100
@@ -171,7 +171,7 @@

  1. Get the IP address of ${HOST_NAMES[i]} from its own ping
    ip_pattern="[0-9] {1,3}\.[0-9]{1,3}

    \.[0-9]

    {1,3}\.[0-9]{1,3}

    "
    ip_addr=`echo "${ret_str}" | egrep -o "${ip_pattern}"`

  • ip_addr=`echo "${ip_addr}" | sed -e 's/^(//' -e 's/)$//'`
    + ip_addr=`echo "${ip_addr}" | sed -e 's/^(//' -e 's/)$//' | sort | uniq`
  1. Compare IP addresses
  2. Check whether ${HOST_NAMES[i]} agrees with the local host


 Comments   
Comment by Andreas Dilger [ 21/Mar/14 ]

This was fixed with http://review.whamcloud.com/2057 for 2.1.2 and later.

Generated at Sat Feb 10 01:45:52 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.