From 2a68c3c5d7de99df663e59e6859bca27070741c2 Mon Sep 17 00:00:00 2001
From: Pierre Jacquot <pierre.jacquot@inria.fr>
Date: Fri, 16 Feb 2024 09:17:27 +0100
Subject: [PATCH] [lyon][hydra] Add Hydra cluster (Grace Hopper machines)

---
 .../sites/lyon/clusters/hydra/hydra.json      |  18 +++
 .../lyon/clusters/hydra/nodes/hydra-1.json    | 137 ++++++++++++++++++
 .../lyon/clusters/hydra/nodes/hydra-2.json    | 137 ++++++++++++++++++
 .../lyon/clusters/hydra/nodes/hydra-3.json    | 137 ++++++++++++++++++
 .../lyon/clusters/hydra/nodes/hydra-4.json    | 137 ++++++++++++++++++
 .../lyon/network_equipments/sneowise.json     |  16 ++
 input/grid5000/disks.yaml                     |   3 +
 input/grid5000/ipv4.yaml                      |   2 +
 .../sites/lyon/clusters/hydra/hydra.yaml      |  44 ++++++
 .../sites/lyon/clusters/hydra/nodes.yaml.erb  |  93 ++++++++++++
 .../sites/lyon/networks/sneowise.yaml         |   4 +
 lib/refrepo/net_names_mapping.yaml            |   3 +
 12 files changed, 731 insertions(+)
 create mode 100644 data/grid5000/sites/lyon/clusters/hydra/hydra.json
 create mode 100644 data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-1.json
 create mode 100644 data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-2.json
 create mode 100644 data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-3.json
 create mode 100644 data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-4.json
 create mode 100644 input/grid5000/sites/lyon/clusters/hydra/hydra.yaml
 create mode 100644 input/grid5000/sites/lyon/clusters/hydra/nodes.yaml.erb

diff --git a/data/grid5000/sites/lyon/clusters/hydra/hydra.json b/data/grid5000/sites/lyon/clusters/hydra/hydra.json
new file mode 100644
index 00000000000..1bcda2f4687
--- /dev/null
+++ b/data/grid5000/sites/lyon/clusters/hydra/hydra.json
@@ -0,0 +1,18 @@
+{
+  "boot_type": "uefi",
+  "created_at": "Thu, 15 Feb 2024 00:00:00 GMT",
+  "exotic": true,
+  "kavlan": false,
+  "manufactured_at": "2024-02-15",
+  "metrics": [
+
+  ],
+  "model": "NVIDIA Grace Hopper",
+  "queues": [
+    "admin",
+    "testing"
+  ],
+  "type": "cluster",
+  "uid": "hydra",
+  "warranty_end": "2027-02-15"
+}
\ No newline at end of file
diff --git a/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-1.json b/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-1.json
new file mode 100644
index 00000000000..abdfa505a01
--- /dev/null
+++ b/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-1.json
@@ -0,0 +1,137 @@
+{
+  "architecture": {
+    "cpu_core_numbering": "contiguous",
+    "nb_cores": 72,
+    "nb_procs": 1,
+    "nb_threads": 72,
+    "platform_type": "aarch64"
+  },
+  "bios": {
+    "release_date": "01/01/2000",
+    "vendor": "Unknown",
+    "version": 1
+  },
+  "bmc_version": "v1",
+  "chassis": {
+    "manufactured_at": "2024-02-15",
+    "manufacturer": "Unknown",
+    "name": "Unknown",
+    "warranty_end": "2027-02-15"
+  },
+  "exotic": true,
+  "main_memory": {
+    "ram_size": 8
+  },
+  "management_tools": {
+    "bmc_vendor_tool": "ipmitool",
+    "ipmitool": {
+      "retries": 5
+    }
+  },
+  "memory_devices": [
+    {
+      "device": "dimm_proc 1 dimm 1",
+      "size": 8,
+      "technology": "dram"
+    }
+  ],
+  "network_adapters": [
+    {
+      "device": "eth0",
+      "driver": "mlx5_core",
+      "enabled": true,
+      "interface": "Ethernet",
+      "ip": "172.16.57.1",
+      "ip6": "2001:660:4406:400:a::1",
+      "kavlan": false,
+      "mac": "a0:88:c2:98:fc:82",
+      "management": false,
+      "mountable": true,
+      "mounted": true,
+      "name": "enp1s0f0np0",
+      "network_address": "hydra-1.lyon.grid5000.fr",
+      "rate": 10000000000,
+      "switch": "sneowise",
+      "switch_port": "1/11"
+    },
+    {
+      "device": "bmc",
+      "enabled": true,
+      "interface": "Ethernet",
+      "ip": "172.17.57.1",
+      "kavlan": false,
+      "mac": "74:d4:dd:47:1e:21",
+      "management": true,
+      "mountable": false,
+      "mounted": false,
+      "network_address": "hydra-1-bmc.lyon.grid5000.fr"
+    }
+  ],
+  "nodeset": "hydra",
+  "operating_system": {
+    "cstate_driver": "unknown",
+    "cstate_governor": "unknown",
+    "ht_enabled": true,
+    "pstate_driver": "unknwon",
+    "pstate_governor": "unknown",
+    "turboboost_enabled": true
+  },
+  "performance": {
+    "core_flops": 55152000000,
+    "node_flops": 3970944000000
+  },
+  "processor": {
+    "cache_l1": null,
+    "cache_l1d": 8,
+    "cache_l1i": 8,
+    "cache_l2": 8,
+    "cache_l3": 8,
+    "clock_speed": 3447000000,
+    "ht_capable": true,
+    "instruction_set": "x86-64",
+    "microarchitecture": "Haswell",
+    "microcode": "0xd000001",
+    "model": "Unknown",
+    "other_description": "description",
+    "vendor": "vendor",
+    "version": "vendor"
+  },
+  "software": {
+    "forced-deployment-timestamp": 202007300948,
+    "postinstall-version": "1.2024052820",
+    "standard-environment": "debiangh11-arm64-std"
+  },
+  "storage_devices": [
+    {
+      "by_id": "",
+      "by_path": "/dev/disk/by-path/pci-0004:01:00.0-nvme-1",
+      "id": "disk0",
+      "interface": "NVME",
+      "model": "unknown",
+      "size": 8,
+      "storage": "SSD",
+      "vendor": "Unknown"
+    },
+    {
+      "by_id": "",
+      "by_path": "/dev/disk/by-path/pci-0006:01:00.0-scsi-0:2:0:0",
+      "id": "disk1",
+      "interface": "SCSI",
+      "model": "unknown",
+      "size": 8,
+      "storage": "SSD",
+      "vendor": "Unknown"
+    }
+  ],
+  "supported_job_types": {
+    "besteffort": true,
+    "deploy": true,
+    "max_walltime": 0,
+    "queues": [
+      "admin",
+      "testing"
+    ]
+  },
+  "type": "node",
+  "uid": "hydra-1"
+}
\ No newline at end of file
diff --git a/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-2.json b/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-2.json
new file mode 100644
index 00000000000..4bbe0d48a7d
--- /dev/null
+++ b/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-2.json
@@ -0,0 +1,137 @@
+{
+  "architecture": {
+    "cpu_core_numbering": "contiguous",
+    "nb_cores": 72,
+    "nb_procs": 1,
+    "nb_threads": 72,
+    "platform_type": "aarch64"
+  },
+  "bios": {
+    "release_date": "01/01/2000",
+    "vendor": "Unknown",
+    "version": 1
+  },
+  "bmc_version": "v1",
+  "chassis": {
+    "manufactured_at": "2024-02-15",
+    "manufacturer": "Unknown",
+    "name": "Unknown",
+    "warranty_end": "2027-02-15"
+  },
+  "exotic": true,
+  "main_memory": {
+    "ram_size": 8
+  },
+  "management_tools": {
+    "bmc_vendor_tool": "ipmitool",
+    "ipmitool": {
+      "retries": 5
+    }
+  },
+  "memory_devices": [
+    {
+      "device": "dimm_proc 1 dimm 1",
+      "size": 8,
+      "technology": "dram"
+    }
+  ],
+  "network_adapters": [
+    {
+      "device": "eth0",
+      "driver": "mlx5_core",
+      "enabled": true,
+      "interface": "Ethernet",
+      "ip": "172.16.57.2",
+      "ip6": "2001:660:4406:400:a::2",
+      "kavlan": false,
+      "mac": "a0:88:c2:98:6c:a0",
+      "management": false,
+      "mountable": true,
+      "mounted": true,
+      "name": "enp1s0f0np0",
+      "network_address": "hydra-2.lyon.grid5000.fr",
+      "rate": 10000000000,
+      "switch": "sneowise",
+      "switch_port": "1/12"
+    },
+    {
+      "device": "bmc",
+      "enabled": true,
+      "interface": "Ethernet",
+      "ip": "172.17.57.2",
+      "kavlan": false,
+      "mac": "74:d4:dd:47:1e:cd",
+      "management": true,
+      "mountable": false,
+      "mounted": false,
+      "network_address": "hydra-2-bmc.lyon.grid5000.fr"
+    }
+  ],
+  "nodeset": "hydra",
+  "operating_system": {
+    "cstate_driver": "unknown",
+    "cstate_governor": "unknown",
+    "ht_enabled": true,
+    "pstate_driver": "unknwon",
+    "pstate_governor": "unknown",
+    "turboboost_enabled": true
+  },
+  "performance": {
+    "core_flops": 55152000000,
+    "node_flops": 3970944000000
+  },
+  "processor": {
+    "cache_l1": null,
+    "cache_l1d": 8,
+    "cache_l1i": 8,
+    "cache_l2": 8,
+    "cache_l3": 8,
+    "clock_speed": 3447000000,
+    "ht_capable": true,
+    "instruction_set": "x86-64",
+    "microarchitecture": "Haswell",
+    "microcode": "0xd000001",
+    "model": "Unknown",
+    "other_description": "description",
+    "vendor": "vendor",
+    "version": "vendor"
+  },
+  "software": {
+    "forced-deployment-timestamp": 202007300948,
+    "postinstall-version": "1.2024052820",
+    "standard-environment": "debiangh11-arm64-std"
+  },
+  "storage_devices": [
+    {
+      "by_id": "",
+      "by_path": "/dev/disk/by-path/pci-0004:01:00.0-nvme-1",
+      "id": "disk0",
+      "interface": "NVME",
+      "model": "unknown",
+      "size": 8,
+      "storage": "SSD",
+      "vendor": "Unknown"
+    },
+    {
+      "by_id": "",
+      "by_path": "/dev/disk/by-path/pci-0006:01:00.0-scsi-0:2:0:0",
+      "id": "disk1",
+      "interface": "SCSI",
+      "model": "unknown",
+      "size": 8,
+      "storage": "SSD",
+      "vendor": "Unknown"
+    }
+  ],
+  "supported_job_types": {
+    "besteffort": true,
+    "deploy": true,
+    "max_walltime": 0,
+    "queues": [
+      "admin",
+      "testing"
+    ]
+  },
+  "type": "node",
+  "uid": "hydra-2"
+}
\ No newline at end of file
diff --git a/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-3.json b/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-3.json
new file mode 100644
index 00000000000..cf885cfe4df
--- /dev/null
+++ b/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-3.json
@@ -0,0 +1,137 @@
+{
+  "architecture": {
+    "cpu_core_numbering": "contiguous",
+    "nb_cores": 72,
+    "nb_procs": 1,
+    "nb_threads": 72,
+    "platform_type": "aarch64"
+  },
+  "bios": {
+    "release_date": "01/01/2000",
+    "vendor": "Unknown",
+    "version": 1
+  },
+  "bmc_version": "v1",
+  "chassis": {
+    "manufactured_at": "2024-02-15",
+    "manufacturer": "Unknown",
+    "name": "Unknown",
+    "warranty_end": "2027-02-15"
+  },
+  "exotic": true,
+  "main_memory": {
+    "ram_size": 8
+  },
+  "management_tools": {
+    "bmc_vendor_tool": "ipmitool",
+    "ipmitool": {
+      "retries": 5
+    }
+  },
+  "memory_devices": [
+    {
+      "device": "dimm_proc 1 dimm 1",
+      "size": 8,
+      "technology": "dram"
+    }
+  ],
+  "network_adapters": [
+    {
+      "device": "eth0",
+      "driver": "mlx5_core",
+      "enabled": true,
+      "interface": "Ethernet",
+      "ip": "172.16.57.3",
+      "ip6": "2001:660:4406:400:a::3",
+      "kavlan": false,
+      "mac": "a0:88:c2:99:18:42",
+      "management": false,
+      "mountable": true,
+      "mounted": true,
+      "name": "enp1s0f0np0",
+      "network_address": "hydra-3.lyon.grid5000.fr",
+      "rate": 10000000000,
+      "switch": "sneowise",
+      "switch_port": "1/13"
+    },
+    {
+      "device": "bmc",
+      "enabled": true,
+      "interface": "Ethernet",
+      "ip": "172.17.57.3",
+      "kavlan": false,
+      "mac": "74:d4:dd:47:e4:7f",
+      "management": true,
+      "mountable": false,
+      "mounted": false,
+      "network_address": "hydra-3-bmc.lyon.grid5000.fr"
+    }
+  ],
+  "nodeset": "hydra",
+  "operating_system": {
+    "cstate_driver": "unknown",
+    "cstate_governor": "unknown",
+    "ht_enabled": true,
+    "pstate_driver": "unknwon",
+    "pstate_governor": "unknown",
+    "turboboost_enabled": true
+  },
+  "performance": {
+    "core_flops": 55152000000,
+    "node_flops": 3970944000000
+  },
+  "processor": {
+    "cache_l1": null,
+    "cache_l1d": 8,
+    "cache_l1i": 8,
+    "cache_l2": 8,
+    "cache_l3": 8,
+    "clock_speed": 3447000000,
+    "ht_capable": true,
+    "instruction_set": "x86-64",
+    "microarchitecture": "Haswell",
+    "microcode": "0xd000001",
+    "model": "Unknown",
+    "other_description": "description",
+    "vendor": "vendor",
+    "version": "vendor"
+  },
+  "software": {
+    "forced-deployment-timestamp": 202007300948,
+    "postinstall-version": "1.2024052820",
+    "standard-environment": "debiangh11-arm64-std"
+  },
+  "storage_devices": [
+    {
+      "by_id": "",
+      "by_path": "/dev/disk/by-path/pci-0004:01:00.0-nvme-1",
+      "id": "disk0",
+      "interface": "NVME",
+      "model": "unknown",
+      "size": 8,
+      "storage": "SSD",
+      "vendor": "Unknown"
+    },
+    {
+      "by_id": "",
+      "by_path": "/dev/disk/by-path/pci-0006:01:00.0-scsi-0:2:0:0",
+      "id": "disk1",
+      "interface": "SCSI",
+      "model": "unknown",
+      "size": 8,
+      "storage": "SSD",
+      "vendor": "Unknown"
+    }
+  ],
+  "supported_job_types": {
+    "besteffort": true,
+    "deploy": true,
+    "max_walltime": 0,
+    "queues": [
+      "admin",
+      "testing"
+    ]
+  },
+  "type": "node",
+  "uid": "hydra-3"
+}
\ No newline at end of file
diff --git a/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-4.json b/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-4.json
new file mode 100644
index 00000000000..fbfa2664abd
--- /dev/null
+++ b/data/grid5000/sites/lyon/clusters/hydra/nodes/hydra-4.json
@@ -0,0 +1,137 @@
+{
+  "architecture": {
+    "cpu_core_numbering": "contiguous",
+    "nb_cores": 72,
+    "nb_procs": 1,
+    "nb_threads": 72,
+    "platform_type": "aarch64"
+  },
+  "bios": {
+    "release_date": "01/01/2000",
+    "vendor": "Unknown",
+    "version": 1
+  },
+  "bmc_version": "v1",
+  "chassis": {
+    "manufactured_at": "2024-02-15",
+    "manufacturer": "Unknown",
+    "name": "Unknown",
+    "warranty_end": "2027-02-15"
+  },
+  "exotic": true,
+  "main_memory": {
+    "ram_size": 8
+  },
+  "management_tools": {
+    "bmc_vendor_tool": "ipmitool",
+    "ipmitool": {
+      "retries": 5
+    }
+  },
+  "memory_devices": [
+    {
+      "device": "dimm_proc 1 dimm 1",
+      "size": 8,
+      "technology": "dram"
+    }
+  ],
+  "network_adapters": [
+    {
+      "device": "eth0",
+      "driver": "mlx5_core",
+      "enabled": true,
+      "interface": "Ethernet",
+      "ip": "172.16.57.4",
+      "ip6": "2001:660:4406:400:a::4",
+      "kavlan": false,
+      "mac": "a0:88:c2:99:19:02",
+      "management": false,
+      "mountable": true,
+      "mounted": true,
+      "name": "enp1s0f0np0",
+      "network_address": "hydra-4.lyon.grid5000.fr",
+      "rate": 10000000000,
+      "switch": "sneowise",
+      "switch_port": "1/14"
+    },
+    {
+      "device": "bmc",
+      "enabled": true,
+      "interface": "Ethernet",
+      "ip": "172.17.57.4",
+      "kavlan": false,
+      "mac": "74:d4:dd:47:e4:67",
+      "management": true,
+      "mountable": false,
+      "mounted": false,
+      "network_address": "hydra-4-bmc.lyon.grid5000.fr"
+    }
+  ],
+  "nodeset": "hydra",
+  "operating_system": {
+    "cstate_driver": "unknown",
+    "cstate_governor": "unknown",
+    "ht_enabled": true,
+    "pstate_driver": "unknwon",
+    "pstate_governor": "unknown",
+    "turboboost_enabled": true
+  },
+  "performance": {
+    "core_flops": 55152000000,
+    "node_flops": 3970944000000
+  },
+  "processor": {
+    "cache_l1": null,
+    "cache_l1d": 8,
+    "cache_l1i": 8,
+    "cache_l2": 8,
+    "cache_l3": 8,
+    "clock_speed": 3447000000,
+    "ht_capable": true,
+    "instruction_set": "x86-64",
+    "microarchitecture": "Haswell",
+    "microcode": "0xd000001",
+    "model": "Unknown",
+    "other_description": "description",
+    "vendor": "vendor",
+    "version": "vendor"
+  },
+  "software": {
+    "forced-deployment-timestamp": 202007300948,
+    "postinstall-version": "1.2024052820",
+    "standard-environment": "debiangh11-arm64-std"
+  },
+  "storage_devices": [
+    {
+      "by_id": "",
+      "by_path": "/dev/disk/by-path/pci-0004:01:00.0-nvme-1",
+      "id": "disk0",
+      "interface": "NVME",
+      "model": "unknown",
+      "size": 8,
+      "storage": "SSD",
+      "vendor": "Unknown"
+    },
+    {
+      "by_id": "",
+      "by_path": "/dev/disk/by-path/pci-0006:01:00.0-scsi-0:2:0:0",
+      "id": "disk1",
+      "interface": "SCSI",
+      "model": "unknown",
+      "size": 8,
+      "storage": "SSD",
+      "vendor": "Unknown"
+    }
+  ],
+  "supported_job_types": {
+    "besteffort": true,
+    "deploy": true,
+    "max_walltime": 0,
+    "queues": [
+      "admin",
+      "testing"
+    ]
+  },
+  "type": "node",
+  "uid": "hydra-4"
+}
\ No newline at end of file
diff --git a/data/grid5000/sites/lyon/network_equipments/sneowise.json b/data/grid5000/sites/lyon/network_equipments/sneowise.json
index 0d9559d080b..9d51376d27b 100644
--- a/data/grid5000/sites/lyon/network_equipments/sneowise.json
+++ b/data/grid5000/sites/lyon/network_equipments/sneowise.json
@@ -72,12 +72,28 @@
           "uid": "neowise-10"
         },
         {
+          "kind": "node",
+          "port": "eth0",
+          "snmp_name": "1/11",
+          "uid": "hydra-1"
         },
         {
+          "kind": "node",
+          "port": "eth0",
+          "snmp_name": "1/12",
+          "uid": "hydra-2"
         },
         {
+          "kind": "node",
+          "port": "eth0",
+          "snmp_name": "1/13",
+          "uid": "hydra-3"
         },
         {
+          "kind": "node",
+          "port": "eth0",
+          "snmp_name": "1/14",
+          "uid": "hydra-4"
         },
         {
         },
diff --git a/input/grid5000/disks.yaml b/input/grid5000/disks.yaml
index c5e3cbcc90c..4628301826a 100644
--- a/input/grid5000/disks.yaml
+++ b/input/grid5000/disks.yaml
@@ -22,6 +22,8 @@ disk_vendor_model_mapping:
       - unknown
 
   SCSI:
+    Samsung:
+      - SAMSUNG MZTL21T9
     Seagate:
       - ST373207LC
       - ST373307LC
@@ -136,6 +138,7 @@ disk_vendor_model_mapping:
       - Dell Ent NVMe AGN MU AIC 1.6TB
       - Dell Ent NVMe v2 AGN MU U.2 1.6TB
     Samsung:
+      - SAMSUNG MZ1L2960HCJR-00A07
       - SAMSUNG MZ1LB1T9HALS-00007
       - Samsung SSD 970 EVO Plus 2TB
     Kioxia:
diff --git a/input/grid5000/ipv4.yaml b/input/grid5000/ipv4.yaml
index 7042dcec123..99597064f27 100644
--- a/input/grid5000/ipv4.yaml
+++ b/input/grid5000/ipv4.yaml
@@ -40,6 +40,8 @@ ipv4:
       lyon neowise eth0 0 0 7 0
       lyon neowise eth1 0 0 7 10
       lyon sirius eth0 0 0 8 0
+      lyon hydra eth0 0 0 9 0
+      lyon hydra eth1 0 0 9 4
       nancy graffiti eth2 0 0 0 0
       nancy gros eth0 0 0 2 0
       nancy gros eth1 0 0 2 128
diff --git a/input/grid5000/sites/lyon/clusters/hydra/hydra.yaml b/input/grid5000/sites/lyon/clusters/hydra/hydra.yaml
new file mode 100644
index 00000000000..27154699aab
--- /dev/null
+++ b/input/grid5000/sites/lyon/clusters/hydra/hydra.yaml
@@ -0,0 +1,44 @@
+---
+model: NVIDIA Grace Hopper
+created_at: 2024-02-15
+kavlan: false
+boot_type: uefi
+exotic: true
+queues:
+  - admin
+  - testing
+nodes:
+  hydra-[1-4]:
+    nodeset: hydra
+    chassis:
+      manufactured_at: 2024-02-15 # TODO: retrieve info from manufacturer
+      warranty_end: 2027-02-15 # TODO: retrieve info from manufacturer
+    supported_job_types:
+      deploy: true
+      besteffort: true
+      max_walltime: 0
+    processor:
+      microarchitecture: Haswell # TODO: replace with 'Grace'
+      clock_speed: 3447000000
+    network_adapters:
+      bmc:
+        enabled: true
+        mountable: false
+        mounted: false
+      eth0:
+        enabled: true
+        mountable: true
+        mounted: true
+    storage_devices:
+      pci-0004:01:00.0-nvme-1:
+        id: disk0
+        interface: NVME
+        by_path: "/dev/disk/by-path/pci-0004:01:00.0-nvme-1"
+      pci-0006:01:00.0-scsi-0:2:0:0:
+        id: disk1
+        interface: SCSI
+        by_path: "/dev/disk/by-path/pci-0006:01:00.0-scsi-0:2:0:0"
+    software:
+      standard-environment: debiangh11-arm64-std
+    management_tools:
+      bmc_vendor_tool: ipmitool
diff --git a/input/grid5000/sites/lyon/clusters/hydra/nodes.yaml.erb b/input/grid5000/sites/lyon/clusters/hydra/nodes.yaml.erb
new file mode 100644
index 00000000000..365822b0726
--- /dev/null
+++ b/input/grid5000/sites/lyon/clusters/hydra/nodes.yaml.erb
@@ -0,0 +1,93 @@
+<%
+  SITE_IPV4_INDEX = 57
+  NODES_NUMBER = 4
+  # MAC addresses declaration
+  #  TODO: Add primary interfaces MAC addresses in this list
+  #        and uncomment this section
+  MAC_ETH0_LIST = %w(
+    a0:88:c2:98:fc:82
+    a0:88:c2:98:6c:a0
+    a0:88:c2:99:18:42
+    a0:88:c2:99:19:02
+  )
+
+  MAC_BMC_LIST = %w(
+    74:d4:dd:47:1e:21
+    74:d4:dd:47:1e:cd
+    74:d4:dd:47:e4:7f
+    74:d4:dd:47:e4:67
+  )
+%>
+---
+nodes:
+<% (1..NODES_NUMBER).each { |i| %>
+  hydra-<%= i %>:
+    architecture:
+      nb_procs: 1 
+      nb_cores: 72 
+      nb_threads: 72
+      platform_type: aarch64 
+      cpu_core_numbering: contiguous 
+    bios:
+      release_date: 01/01/2000 # Fake date, will be replaced by g5k-checks
+      vendor: Unknown # Fake vendor, will be replaced by g5k-checks
+      version: 1 # Fake version, will be replaced by g5k-checks
+    bmc_version: v1 # Fake version, will be replaced by g5k-checks
+    chassis:
+      manufacturer: Unknown # Fake manufacturer, will be replaced by g5k-checks
+      name: Unknown # Fake name, will be replaced by g5k-checks
+    main_memory:
+      ram_size: 8 # Fake size, will be replaced by g5k-checks
+    memory_devices:
+      dimm:
+        size: 8 # Fake size, will be replaced by g5k-checks
+        technology: dram # Common memory technology, will be replaced by g5k-checks
+    processor:
+      model: Unknown # Fake model name, will be replaced by g5k-checks
+      other_description: description # Fake description, will be replaced by g5k-checks
+      vendor: vendor # Fake vendor, will be replaced by g5k-checks
+      version: vendor # Fake version, will be replaced by g5k-checks
+      cache_l1d: 8 # Fake cache, will be replaced by g5k-checks
+      cache_l1i: 8 # Fake cache, will be replaced by g5k-checks
+      cache_l2: 8 # Fake cache, will be replaced by g5k-checks
+      cache_l3: 8 # Fake cache, will be replaced by g5k-checks
+      instruction_set: x86-64 # Common instruction set, will be replaced by g5k-checks
+      microcode: '0xd000001' # Fake microcode, will be replaced by g5k-checks
+      ht_capable: true # Default ht capable value, will be replaced by g5k-checks 
+    main_memory:
+      ram_size: 8 # Fake ram size, will be replaced by g5k-checks
+    memory_devices:
+      dimm_proc 1 dimm 1: # Fake dimm name, will be replaced by g5k-checks
+        size: 8 # Fake dimm size, will be replaced by g5k-checks
+        technology: dram # Default dimm technology, will be replaced by g5k-checks
+    operating_system:
+      cstate_driver: unknown # Fake driver, will be replaced by g5k-checks
+      cstate_governor: unknown # Fake governor, will be replaced by g5k-checks
+      ht_enabled: true # common value for hyper threading, will be replaced by g5k-checks
+      pstate_driver: unknwon # Fake driver, will be replaced by g5k-checks
+      pstate_governor: unknown # Fake driver, will be replaced by g5k-checks
+      turboboost_enabled: true # Default value for turboboost, will be replaced by g5k-checks 
+    network_adapters:
+      bmc:
+        interface: Ethernet
+        management: true
+        mac: <%= MAC_BMC_LIST[i - 1] %>
+        ip: 172.17.<%= SITE_IPV4_INDEX %>.<%= i %>
+      eth0:
+        interface: Ethernet
+        management: false
+        driver: mlx5_core
+        name: enp1s0f0np0
+        rate: 10000000000
+        mac: <%= MAC_ETH0_LIST[i - 1] %>
+        ip: 172.16.<%= SITE_IPV4_INDEX %>.<%= i %>
+    storage_devices:
+      pci-0004:01:00.0-nvme-1:
+        storage: SSD # Common value, will be replaced by g5k-checks
+        model: unknown # fake value,  
+        size: 8 # Fake value, will be replaced by g5k-checks
+      pci-0006:01:00.0-scsi-0:2:0:0:
+        storage: SSD # Common value, will be replaced by g5k-checks
+        model: unknown # fake value,  
+        size: 8 # Fake value, will be replaced by g5k-checks
+<% } %>
diff --git a/input/grid5000/sites/lyon/networks/sneowise.yaml b/input/grid5000/sites/lyon/networks/sneowise.yaml
index a4124112690..d48c52caab4 100644
--- a/input/grid5000/sites/lyon/networks/sneowise.yaml
+++ b/input/grid5000/sites/lyon/networks/sneowise.yaml
@@ -27,6 +27,10 @@ sneowise:
         8: neowise-8-eth1
         9: neowise-9-eth1
         10: neowise-10-eth1
+        11: hydra-1
+        12: hydra-2
+        13: hydra-3
+        14: hydra-4
         48:
           uid: gw
           kind: router
diff --git a/lib/refrepo/net_names_mapping.yaml b/lib/refrepo/net_names_mapping.yaml
index 0e16604e3b3..fa22bace341 100644
--- a/lib/refrepo/net_names_mapping.yaml
+++ b/lib/refrepo/net_names_mapping.yaml
@@ -192,6 +192,9 @@ hercule:
   eno2: eth3
   enp130s0f0: eth0
   enp130s0f1: eth1
+hydra:
+  enp1s0f0np0: eth0
+  enp1s0f1np1: eth1
 montcalm:
   ens10f0np0: eth0
   ens10f1np1: eth1
-- 
GitLab