Whamcloud - gitweb
LU-17498 tests: show NIDs in node summary page
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 25 Sep 2023 17:53:18 +0000 (11:53 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 1 May 2024 22:30:47 +0000 (22:30 +0000)
Instead of only showing 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.

Lustre-change: https://review.whamcloud.com/52500
Lustre-commit: 8e1f0cc90785463fb9ea847a8d1362941e82bcae

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

index fc0bccf..31e42b2 100644 (file)
@@ -126,8 +126,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
 }