Commit 54359159 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[spec] Add checks for removal/addition of GPU

parent 61a5b4bd
Pipeline #155093 passed with stages
in 4 minutes and 35 seconds
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -115,4 +115,25 @@ describe 'OarProperties2' do
check_oar_properties({ :oar => 'oar_grue-without-gpus', :data => 'data_grue', :case => 'grue_nogpus' })
end
it 'generates an identical output for graffiti when all GPUs are there' do
check_oar_properties({ :oar => 'oar_graffiti-with-all-gpus', :data => 'data_graffiti2', :case => 'graffiti-all-gpus' })
end
it 'generates an output for graffiti when a GPU has been removed, but OAR not updated' do
check_oar_properties({ :oar => 'oar_graffiti-with-all-gpus', :data => 'data_graffiti2-missing-gpu', :case => 'graffiti-gpu-removed' })
end
it 'generates an output for graffiti when a GPU has been removed, and OAR updated' do
check_oar_properties({ :oar => 'oar_graffiti-with-missing-gpus', :data => 'data_graffiti2-missing-gpu', :case => 'graffiti-gpu-removed-OAR-updated' })
end
it 'generates an output for graffiti when a GPU has been removed then re-added, OAR not yet re-updated' do
check_oar_properties({ :oar => 'oar_graffiti-with-missing-gpus', :data => 'data_graffiti2', :case => 'graffiti-gpu-removed-OAR-updated-gpu-re-added' })
end
it 'generates an output for graffiti when a GPU has been removed then re-added, OAR updated' do
check_oar_properties({ :oar => 'oar_graffiti-with-all-gpus', :data => 'data_graffiti2', :case => 'graffiti-gpu-removed-OAR-updated-gpu-re-added-OAR-updated' })
end
end
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Output format: [ '-', 'key', 'value'] for missing, [ '+', 'key', 'value'] for added, ['~', 'key', 'old value', 'new value'] for changed
clustera-1: OK
clustera-2: OK
clustera-3: OK
clustera-4: OK
clustera-5: OK
clustera-6: OK
clustera-7: OK
clustera-8: OK
clustera-9: OK
clustera-10: OK
clustera-11: OK
clustera-12: OK
clustera-13: OK
Properties existing on the fakesite server but not managed/known by the generator: disk, diskpath.
Hint: you can delete properties with 'oarproperty -d <property>' or add them to the ignore list in lib/lib-oar-properties.rb.
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
This diff is collapsed.
This diff is collapsed.
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Output format: [ '-', 'key', 'value'] for missing, [ '+', 'key', 'value'] for added, ['~', 'key', 'old value', 'new value'] for changed
clustera-1: OK
clustera-2: OK
clustera-3: OK
clustera-4: OK
clustera-5: OK
clustera-6: OK
clustera-7: OK
clustera-8: OK
clustera-9: OK
clustera-10: OK
clustera-11: OK
clustera-12: OK
clustera-13: OK
Properties existing on the fakesite server but not managed/known by the generator: disk, diskpath.
Hint: you can delete properties with 'oarproperty -d <property>' or add them to the ignore list in lib/lib-oar-properties.rb.
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
GPU has an unexpected number of resources (current:51 vs expected:52).
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
Output format: [ '-', 'key', 'value'] for missing, [ '+', 'key', 'value'] for added, ['~', 'key', 'old value', 'new value'] for changed
clustera-1: OK
clustera-2:
["~", "gpu_count", 3, 4]
clustera-3: OK
clustera-4: OK
clustera-5: OK
clustera-6: OK
clustera-7: OK
clustera-8: OK
clustera-9: OK
clustera-10: OK
clustera-11: OK
clustera-12: OK
clustera-13: OK
Properties existing on the fakesite server but not managed/known by the generator: disk, diskpath.
Hint: you can delete properties with 'oarproperty -d <property>' or add them to the ignore list in lib/lib-oar-properties.rb.
Downloading resources properties from https://api.grid5000.fr/stable/sites/fakesite/internal/oarapi/resources/details.json?limit=999999 ...
... done
# Error: Resource 9679 (host=clustera-2.nancy.grid5000.fr cpu=1618 core=8555 cpuset=9 gpu=59 gpudevice=2) has a mismatch for ressource GPU: OAR API gives 59, generator wants 60.
# Error: Resource 9679 (host=clustera-2.nancy.grid5000.fr cpu=1618 core=8555 cpuset=9 gpu=59 gpudevice=2) has a mismatch for ressource GPUDEVICE: OAR API gives 2, generator wants 3.
# Error: Resource 9680 (host=clustera-2.nancy.grid5000.fr cpu=1618 core=8556 cpuset=11 gpu=59 gpudevice=2) has a mismatch for ressource GPU: OAR API gives 59, generator wants 60.
# Error: Resource 9680 (host=clustera-2.nancy.grid5000.fr cpu=1618 core=8556 cpuset=11 gpu=59 gpudevice=2) has a mismatch for ressource GPUDEVICE: OAR API gives 2, generator wants 3.
# Error: Resource 9681 (host=clustera-2.nancy.grid5000.fr cpu=1618 core=8557 cpuset=13 gpu=59 gpudevice=2) has a mismatch for ressource GPU: OAR API gives 59, generator wants 60.
# Error: Resource 9681 (host=clustera-2.nancy.grid5000.fr cpu=1618 core=8557 cpuset=13 gpu=59 gpudevice=2) has a mismatch for ressource GPUDEVICE: OAR API gives 2, generator wants 3.
# Error: Resource 9682 (host=clustera-2.nancy.grid5000.fr cpu=1618 core=8558 cpuset=15 gpu=59 gpudevice=2) has a mismatch for ressource GPU: OAR API gives 59, generator wants 60.
# Error: Resource 9682 (host=clustera-2.nancy.grid5000.fr cpu=1618 core=8558 cpuset=15 gpu=59 gpudevice=2) has a mismatch for ressource GPUDEVICE: OAR API gives 2, generator wants 3.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment