[2.3] Cannot download multiple test results with API/CLI client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Lee Trager | ||
2.3 |
Fix Released
|
High
|
Lee Trager |
Bug Description
I have run "fio" test with MAAS:
$ maas admin machine test cbk88g testing_scripts=fio
And the results are recorded as "id=108" with 1 NVMe and 5 HDDs. However, when downloading the result of "id=108", it only outputs the result of one NVMe drive. 5 remaining HDDs' results are not exposed with API/CLI client.
$ maas admin node-script-result read cbk88g 108
{
"last_ping": "Sun, 11 Mar 2018 08:27:35 -0000",
"ended": "Sun, 11 Mar 2018 08:27:35 -0000",
"status": 2,
"type": 2,
"started": "Sun, 11 Mar 2018 07:26:39 -0000",
"id": 108,
"resource_uri": "/MAAS/
"runtime": "1:00:56",
"type_name": "Testing",
"status_name": "Passed",
"results": [
{
"id": 750,
...
}
},
"name": "fio",
},
{
...
}
},
...
^^^ Multiple HDDs are there.
$ maas admin node-script-result download cbk88g 108 output=all | grep command:
Running command: sudo -n fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fio_test --bs=4k --iodepth=64 --size=4G --filename=
Running command: sudo -n fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fio_test --bs=4k --iodepth=64 --size=4G --filename=
Running command: sudo -n fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fio_test --bs=4k --iodepth=64 --size=4G --filename=
Running command: sudo -n fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fio_test --bs=4k --iodepth=64 --size=4G --filename=
Running command: sudo -n fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fio_test --bs=4k --iodepth=64 --size=4G --filename=
Running command: sudo -n fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fio_test --bs=4k --iodepth=64 --size=4G --filename=
Running command: sudo -n fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fio_test --bs=4k --iodepth=64 --size=4G --filename=
Running command: sudo -n fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=fio_test --bs=4k --iodepth=64 --size=4G --filename=
^^^ Only NVMe.
Related branches
- Lee Trager (community): Approve
-
Diff: 129 lines (+60/-24)2 files modifiedsrc/maasserver/api/scriptresults.py (+37/-23)
src/maasserver/api/tests/test_scriptresults.py (+23/-1)
- Blake Rouse (community): Approve
- MAAS Lander: Approve
-
Diff: 129 lines (+60/-24)2 files modifiedsrc/maasserver/api/scriptresults.py (+37/-23)
src/maasserver/api/tests/test_scriptresults.py (+23/-1)
Changed in maas: | |
milestone: | 2.4.0beta2 → 2.4.0beta3 |
Changed in maas: | |
milestone: | 2.4.0beta3 → 2.4.0rc1 |
importance: | Medium → High |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
milestone: | 2.4.0rc1 → 2.4.0rc2 |
Changed in maas: | |
milestone: | 2.4.0rc2 → 2.4.0rc1 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
milestone: | 2.4.0rc1 → 2.4.0rc2 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
`maas admin node-script-result download cbk88g 108 output=all`