Whamcloud - gitweb
LU-17498 tests: show NIDs in node summary page 00/52500/4
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 25 Sep 2023 17:53:18 +0000 (11:53 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Feb 2024 07:14:13 +0000 (07:14 +0000)
Instead of only showting the network type for each node, list
show the full NID in the YAML file to help with debugging and
identifying nodes in the logs.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I7ee39b08c5cae5a3f9ee4ea4dbee001a6d889fbb
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52500
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Lee Ochoa <lochoa@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Alex Deiter
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/yaml.sh

index 8440996..3319fda 100644 (file)
@@ -127,8 +127,12 @@ cat <<EOF
     architecture: $(uname -m)
     networks:
 EOF
-    for nw in $(lctl list_nids | grep -v @lo | cut -f 2 -d '@' | uniq); do
-        printf "        - $nw\n"
+    for nid in $(lctl list_nids | grep -v @lo ); do
+        printf "        - ${nid##*@}\n"
+    done | sort -u
+    echo "    nids:"
+    for nid in $(lctl list_nids | grep -v @lo ); do
+        printf "        - $nid\n"
     done
 }