Skip to content

Commit 90c0ef2

Browse files
committed
Merge branch 'bugs/#12760' into 'master'
[oar-properties] add storage (SSD or HDD) to disktype property See merge request grid5000/reference-repository!191
2 parents be03d1b + dd45fc9 commit 90c0ef2

File tree

40 files changed

+21539
-21538
lines changed

40 files changed

+21539
-21538
lines changed

lib/refrepo/gen/oar-properties.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def get_ref_node_properties_internal(cluster_uid, cluster, node_uid, node)
405405
h['cpucore'] = node['architecture']['nb_cores'] / node['architecture']['nb_procs']
406406
h['cputype'] = [node['processor']['model'], node['processor']['version']].join(' ')
407407
h['cpufreq'] = node['processor']['clock_speed'] / 1_000_000_000.0
408-
h['disktype'] = (node['storage_devices'].first || {})['interface']
408+
h['disktype'] = [node['storage_devices'].first['interface'], node['storage_devices'].first['storage']].join('/')
409409
h['chassis'] = [node['chassis']['manufacturer'], node['chassis']['name'], node['chassis']['serial']].join(' ')
410410

411411
# ETH

lib/refrepo/gen/wiki/generators/oar_properties.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def initialize(page_name)
172172
"description" => "The rate of the connected Myrinet interface in Gbps"
173173
},
174174
"disktype" => {
175-
"description" => "What disk's interface family node's disk is member of ?"
175+
"description" => "The node's primary disk interface and storage type (like SATA/SSD)"
176176
},
177177
"disk_reservation_count" => {
178178
"description" => "The number of reservable disks"

0 commit comments

Comments
 (0)