From 1d455ebe4a85035417f816d58365437cffa1a735 Mon Sep 17 00:00:00 2001
From: Nicolas Perrin <nicolas.perrin@inria.fr>
Date: Thu, 11 Apr 2024 11:27:30 +0200
Subject: [PATCH] [grenoble][dahu] dahu-3 disk replacement and dahu-1 BIOS
 update

---
 .../grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.json | 4 ++--
 .../grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.json | 6 +++---
 input/grid5000/disks.yaml                                   | 1 +
 .../grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.yaml | 4 ++--
 .../grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.yaml | 6 +++---
 lib/refrepo/valid/data/homogeneity.yaml.erb                 | 5 +++--
 6 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/data/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.json b/data/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.json
index 3830a05eb12..e06cd159591 100644
--- a/data/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.json
+++ b/data/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.json
@@ -7,9 +7,9 @@
     "platform_type": "x86_64"
   },
   "bios": {
-    "release_date": "06/17/2022",
+    "release_date": "09/19/2023",
     "vendor": "Dell Inc.",
-    "version": "2.15.1"
+    "version": "2.20.1"
   },
   "bmc_version": "5.10.50.00",
   "chassis": {
diff --git a/data/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.json b/data/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.json
index db8eb1931ae..10e7d427eda 100644
--- a/data/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.json
+++ b/data/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.json
@@ -266,12 +266,12 @@
       "vendor": "Samsung"
     },
     {
-      "by_id": "/dev/disk/by-id/wwn-0x5000c500a59bd027",
+      "by_id": "/dev/disk/by-id/wwn-0x5000c500f6c8ba35",
       "by_path": "/dev/disk/by-path/pci-0000:00:11.5-ata-5",
-      "firmware_version": "DB34",
+      "firmware_version": "LC09",
       "id": "disk2",
       "interface": "SATA",
-      "model": "ST4000NM0265-2DC",
+      "model": "ST4000NM018B-2TF",
       "size": 4000787030016,
       "storage": "HDD",
       "vendor": "Seagate"
diff --git a/input/grid5000/disks.yaml b/input/grid5000/disks.yaml
index e754a80d6d0..35b4b9cbf88 100644
--- a/input/grid5000/disks.yaml
+++ b/input/grid5000/disks.yaml
@@ -112,6 +112,7 @@ disk_vendor_model_mapping:
       - ST1000NX0423
       - ST1000NX0443
       - ST4000NM0265-2DC
+      - ST4000NM018B-2TF
     Toshiba:
       - TOSHIBA MG04ACA4
     Western Digital:
diff --git a/input/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.yaml b/input/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.yaml
index da60ad6a4a9..79e8bd421c2 100644
--- a/input/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.yaml
+++ b/input/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-1.yaml
@@ -8,9 +8,9 @@ dahu-1:
     nb_threads: 64
     platform_type: x86_64
   bios:
-    release_date: 06/17/2022
+    release_date: '09/19/2023'
     vendor: Dell Inc.
-    version: 2.15.1
+    version: 2.20.1
   bmc_version: 5.10.50.00
   chassis:
     manufacturer: Dell Inc.
diff --git a/input/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.yaml b/input/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.yaml
index 03645e1b7ce..886a74623a7 100644
--- a/input/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.yaml
+++ b/input/grid5000/sites/grenoble/clusters/dahu/nodes/dahu-3.yaml
@@ -131,10 +131,10 @@ dahu-3:
       size: 480103981056
       storage: SSD
     pci-0000:00:11.5-ata-5:
-      by_id: "/dev/disk/by-id/wwn-0x5000c500a59bd027"
+      by_id: "/dev/disk/by-id/wwn-0x5000c500f6c8ba35"
       by_path: "/dev/disk/by-path/pci-0000:00:11.5-ata-5"
-      firmware_version: DB34
-      model: ST4000NM0265-2DC
+      firmware_version: LC09
+      model: ST4000NM018B-2TF
       size: 4000787030016
       storage: HDD
   supported_job_types:
diff --git a/lib/refrepo/valid/data/homogeneity.yaml.erb b/lib/refrepo/valid/data/homogeneity.yaml.erb
index 6398da3656f..650091139af 100644
--- a/lib/refrepo/valid/data/homogeneity.yaml.erb
+++ b/lib/refrepo/valid/data/homogeneity.yaml.erb
@@ -20,11 +20,12 @@ grenoble:
   drac-[8-9]:
     - ~storage_devices.pci-0009:04:00.0-ata-1.firmware_version
   dahu-[1-2]:
-    - ~bios.release_date
-    - ~bios.version
     - ~bmc_version
     - ~network_adapters.eth0.firmware_version
     - ~network_adapters.eth1.firmware_version
+  dahu-[3-4]:
+    - ~storage_devices.pci-0000:00:11.5-ata-5.model
+    - ~storage_devices.pci-0000:00:11.5-ata-5.firmware_version
   dahu-[7-8]:
     - ~storage_devices.pci-0000:00:11.5-ata-5.firmware_version
   dahu-[16-17]:
-- 
GitLab