From 09fd2d1da5af3eb56cc12101ec06093184f2d237 Mon Sep 17 00:00:00 2001
From: Nicolas Perrin <nicolas.perrin@inria.fr>
Date: Mon, 27 Jan 2025 10:25:04 +0100
Subject: [PATCH] [sophia][musa] move to production queue

---
 data/grid5000/accesses/nodesets.json          | 66 +++++++++++++++++++
 .../sites/sophia/clusters/musa/musa.json      |  2 +-
 .../sophia/clusters/musa/nodes/musa-1.json    |  4 +-
 .../sophia/clusters/musa/nodes/musa-2.json    |  4 +-
 .../sophia/clusters/musa/nodes/musa-3.json    |  4 +-
 .../sophia/clusters/musa/nodes/musa-4.json    |  4 +-
 .../sophia/clusters/musa/nodes/musa-5.json    |  4 +-
 .../sophia/clusters/musa/nodes/musa-6.json    |  4 +-
 input/grid5000/access/sophia.yaml             |  8 +++
 .../sites/sophia/clusters/musa/musa.yaml      |  4 +-
 10 files changed, 89 insertions(+), 15 deletions(-)
 create mode 100644 input/grid5000/access/sophia.yaml

diff --git a/data/grid5000/accesses/nodesets.json b/data/grid5000/accesses/nodesets.json
index 72fa89978cd..2d6f546dd4f 100644
--- a/data/grid5000/accesses/nodesets.json
+++ b/data/grid5000/accesses/nodesets.json
@@ -2201,6 +2201,72 @@
       ]
     }
   },
+  "musa": {
+    "p1": {
+      "ggas": [
+
+      ],
+      "sites": [
+        "mc-staff-site",
+        "g5k-staff-site"
+      ]
+    },
+    "p2": {
+      "ggas": [
+        "cidre",
+        "kerdata",
+        "magellan",
+        "myriads",
+        "pacap",
+        "wide",
+        "pirat",
+        "coast",
+        "avalon",
+        "chroma",
+        "emeraude",
+        "maracas",
+        "hive",
+        "inriastartupstudio",
+        "sonaide",
+        "feelim",
+        "iss-idiscover",
+        "iss-manta",
+        "inria-chile",
+        "inria-dsi",
+        "inria-sidf",
+        "swh",
+        "tadaam"
+      ],
+      "sites": [
+        "mc-rennes",
+        "mc-nancy",
+        "mc-lyon",
+        "mc-sophia",
+        "mc-lille",
+        "mc-grenoble",
+        "mc-paris",
+        "mc-saclay",
+        "mc-bordeaux"
+      ]
+    },
+    "p4": {
+      "ggas": [
+
+      ],
+      "sites": [
+        "mc-guest",
+        "slices-fr-grenoble",
+        "slices-fr-lille",
+        "slices-fr-lyon",
+        "slices-fr-nancy",
+        "slices-fr-nantes",
+        "slices-fr-rennes",
+        "slices-fr-sophia",
+        "slices-fr-strasbourg",
+        "slices-fr-toulouse"
+      ]
+    }
+  },
   "roazhon1": {
     "p1": {
       "ggas": [
diff --git a/data/grid5000/sites/sophia/clusters/musa/musa.json b/data/grid5000/sites/sophia/clusters/musa/musa.json
index bbddb031463..c6165e565f4 100644
--- a/data/grid5000/sites/sophia/clusters/musa/musa.json
+++ b/data/grid5000/sites/sophia/clusters/musa/musa.json
@@ -1116,7 +1116,7 @@
   "priority": 202512,
   "queues": [
     "admin",
-    "testing"
+    "production"
   ],
   "redfish": true,
   "type": "cluster",
diff --git a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-1.json b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-1.json
index ab3cd8e6472..098832fe30a 100644
--- a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-1.json
+++ b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-1.json
@@ -296,10 +296,10 @@
   "supported_job_types": {
     "besteffort": true,
     "deploy": true,
-    "max_walltime": 0,
+    "max_walltime": 604800,
     "queues": [
       "admin",
-      "testing"
+      "production"
     ],
     "virtual": "amd-v"
   },
diff --git a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-2.json b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-2.json
index b588a75390c..1d87d767b80 100644
--- a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-2.json
+++ b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-2.json
@@ -296,10 +296,10 @@
   "supported_job_types": {
     "besteffort": true,
     "deploy": true,
-    "max_walltime": 0,
+    "max_walltime": 604800,
     "queues": [
       "admin",
-      "testing"
+      "production"
     ],
     "virtual": "amd-v"
   },
diff --git a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-3.json b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-3.json
index 5ebd2189999..0ab0bc852c5 100644
--- a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-3.json
+++ b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-3.json
@@ -296,10 +296,10 @@
   "supported_job_types": {
     "besteffort": true,
     "deploy": true,
-    "max_walltime": 0,
+    "max_walltime": 604800,
     "queues": [
       "admin",
-      "testing"
+      "production"
     ],
     "virtual": "amd-v"
   },
diff --git a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-4.json b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-4.json
index 9daa019881f..15918dfa5be 100644
--- a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-4.json
+++ b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-4.json
@@ -296,10 +296,10 @@
   "supported_job_types": {
     "besteffort": true,
     "deploy": true,
-    "max_walltime": 0,
+    "max_walltime": 604800,
     "queues": [
       "admin",
-      "testing"
+      "production"
     ],
     "virtual": "amd-v"
   },
diff --git a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-5.json b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-5.json
index 7b0fccd8b2c..8453805193a 100644
--- a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-5.json
+++ b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-5.json
@@ -296,10 +296,10 @@
   "supported_job_types": {
     "besteffort": true,
     "deploy": true,
-    "max_walltime": 0,
+    "max_walltime": 604800,
     "queues": [
       "admin",
-      "testing"
+      "production"
     ],
     "virtual": "amd-v"
   },
diff --git a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-6.json b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-6.json
index 05cb27033f5..3649d5c4cc1 100644
--- a/data/grid5000/sites/sophia/clusters/musa/nodes/musa-6.json
+++ b/data/grid5000/sites/sophia/clusters/musa/nodes/musa-6.json
@@ -296,10 +296,10 @@
   "supported_job_types": {
     "besteffort": true,
     "deploy": true,
-    "max_walltime": 0,
+    "max_walltime": 604800,
     "queues": [
       "admin",
-      "testing"
+      "production"
     ],
     "virtual": "amd-v"
   },
diff --git a/input/grid5000/access/sophia.yaml b/input/grid5000/access/sophia.yaml
new file mode 100644
index 00000000000..3b2eebaecee
--- /dev/null
+++ b/input/grid5000/access/sophia.yaml
@@ -0,0 +1,8 @@
+# This is an input file of reference-repository.git/generators/puppet/accesses.rb
+---
+
+# DSI-2024-GPU
+musa:
+    p1: ['@admin']
+    p2: ['@inria_group']
+    p4: ['@other_groups_with_access']
diff --git a/input/grid5000/sites/sophia/clusters/musa/musa.yaml b/input/grid5000/sites/sophia/clusters/musa/musa.yaml
index 5ee1cd23ca7..4333b375260 100644
--- a/input/grid5000/sites/sophia/clusters/musa/musa.yaml
+++ b/input/grid5000/sites/sophia/clusters/musa/musa.yaml
@@ -6,7 +6,7 @@ boot_type: uefi
 exotic: false
 queues:
   - admin
-  - testing
+  - production
 nodes:
   musa-[1-6]:
     chassis:
@@ -15,7 +15,7 @@ nodes:
     supported_job_types:
       deploy: true
       besteffort: true
-      max_walltime: 0
+      max_walltime: 604800
     processor:
       microarchitecture: Zen 4
       clock_speed: 2_900_000_000
-- 
GitLab