perfsonar-user - [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Brian Candler <>
- To: "" <>
- Subject: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}
- Date: Thu, 5 Sep 2019 13:27:54 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=pobox.com; h=to:from:subject :message-id:date:mime-version:content-type; q=dns; s=sasl; b=dJP GnGJJ9WraKjZZ6DJUuhz2gUqkCBBGzJ5vKxpJG6HR9+Dqx2kwIS+2hvRITka43gs eBbqZYC1GcduII2vB1y9mUr6ik/nVShfKel1Qy08IeWcSio4qv6GOmorNMJErrT6 Y8d+L0+I+qQlSQ00c4aXxdlLJ6aJ3WLfHkeUMvbM=
Another problem with 4.2 :-( After a scheduled test has finished (according to "pscheduler
schedule"), I tried to retrieve its results, and I got an
exception: brian@perf1:~$ pscheduler result
https://localhost/pscheduler/tasks/447cbdae-d922-4190-9032-9232536169c4/runs/5687f64a-0dd0-49d9-9554-05c48e806723 Running 'curl' on that URL gives what seems like a reasonable output: brian@perf1:~$ curl -k
https://localhost/pscheduler/tasks/447cbdae-d922-4190-9032-9232536169c4/runs/5687f64a-0dd0-49d9-9554-05c48e806723 But I note that it explicitly contains: "result-merged": null, which is what is causing the results script to barf: if run_ran: One immediate problem here is that the exception is not being caught properly: since run_json['result_merged'] exists but is null. It needs to test for this, or catch TypeError. However in any case, I know result run was successful. Here are its top-level elements: brian@perf1:~$ curl -sk
https://localhost/pscheduler/tasks/447cbdae-d922-4190-9032-9232536169c4/runs/5687f64a-0dd0-49d9-9554-05c48e806723
| python3 -mjson.tool | grep "^ [^ ]" | awk '{ print $1,$2;
}'
>>> print(j.keys()) Note that there is ["result"]["succeeded"], but not
["result-merged"]["succeeded"]. "result": { And a lot of interval data: "intervals": [ Oddly, result.diags consists of some lines of text followed by
some more JSON (all wrapped in a string) >>> print(j["result"]["diags"])
I tried changing the code to succeeded =
run_json['result']['succeeded']. After this I got the following
returned from pscheduler result: Problem fetching results: Resource Not found. So I changed the code again, to see what resource it was trying
to access: except Exception as ex: Now I get: Problem fetching results from https://localhost/pscheduler/tasks/447cbdae-d922-4190-9032-9232536169c4/runs/5687f64a-0dd0-49d9-9554-05c48e806723/result: Resource Not found. OK, so trying various URLs with curl: brian@perf1:~$ curl -sk
https://localhost/pscheduler/tasks/447cbdae-d922-4190-9032-9232536169c4/runs brian@perf1:~$ curl -sk
https://localhost/pscheduler/tasks/447cbdae-d922-4190-9032-9232536169c4/runs/5687f64a-0dd0-49d9-9554-05c48e806723 brian@perf1:~$ curl -sk
https://localhost/pscheduler/tasks/447cbdae-d922-4190-9032-9232536169c4/runs/5687f64a-0dd0-49d9-9554-05c48e806723/ brian@perf1:~$ curl -sk
https://localhost/pscheduler/tasks/447cbdae-d922-4190-9032-9232536169c4/runs/5687f64a-0dd0-49d9-9554-05c48e806723/result Since I've no idea what to expect here, I can't see if these are
right or not; but it seems to me that there's nothing available at
the URL with the /result suffix. I note that it's only following the "result-href" from the task
JSON. Any ideas from someone who knows how these bits are supposed to hang together? Thanks, Brian Candler. |
- [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Brian Candler, 09/05/2019
- Re: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Brian Candler, 09/05/2019
- Re: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Brian Candler, 09/06/2019
- Re: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Mark Feit, 09/06/2019
- Re: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Brian Candler, 09/06/2019
- Re: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Brian Candler, 09/06/2019
- Re: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Mark Feit, 09/06/2019
- Re: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Brian Candler, 09/06/2019
- Re: [perfsonar-user] "pscheduler result" raises exception {"result-merged": null}, Brian Candler, 09/05/2019
Archive powered by MHonArc 2.6.19.