Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 452ae0ac authored by JONGLEZ Baptiste's avatar JONGLEZ Baptiste
Browse files

Merge branch 'bug_12454' into 'master'

[oar-properties] Set initial state of new nodes to Absent (bug 12454)

See merge request !154
parents a9e62a39 5f0dc96f
No related branches found
No related tags found
1 merge request!154[oar-properties] Set initial state of new nodes to Absent (bug 12454)
Pipeline #192363 passed
......@@ -268,9 +268,9 @@ def export_rows_as_oar_command(generated_hierarchy, site_name, site_properties,
if resource_id == -1 or resource_id.nil?
# Add the resource to the OAR DB
if gpu == ''
result += "oarnodesetting -a -h '#{host}' -p host='#{host}' -p cpu=#{cpu} -p core=#{core} -p cpuset=#{cpuset}\n"
result += "oarnodesetting -a -h '#{host}' -s Absent -p host='#{host}' -p cpu=#{cpu} -p core=#{core} -p cpuset=#{cpuset}\n"
else
result += "oarnodesetting -a -h '#{host}' -p host='#{host}' -p cpu=#{cpu} -p core=#{core} -p cpuset=#{cpuset} -p gpu=#{gpu} -p gpu_model='#{gpumodel}' -p gpudevice=#{gpudevice} # This GPU is mapped on #{gpudevicepath}\n"
result += "oarnodesetting -a -h '#{host}' -s Absent -p host='#{host}' -p cpu=#{cpu} -p core=#{core} -p cpuset=#{cpuset} -p gpu=#{gpu} -p gpu_model='#{gpumodel}' -p gpudevice=#{gpudevice} # This GPU is mapped on #{gpudevicepath}\n"
end
else
# Update the resource
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment