ceph integration's failure to parse invalid JSON in NodeDataLookup error message should be more helpful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Low
|
John Fulton |
Bug Description
When using NodeDataLookup [1], JSON is pasted into THT and it's possible that the user might supply invalid JSON [2]. In this scenario, the error handling of the tripleo-common workbook ceph-ansible.yaml could provide a more helpful error message. When investigating the Mistral task which failed, only a message about being unable to evaluate a YAQL expression is seen. Because this happens when JSON from node data look up is parsed, it would be more helpful to have an on-error statement in the parse_node_
[stack@b08-h02-r620 workbooks]$ mistral task-get 18d0daf2-
...
| Name | parse_node_
| State info | Failed to handle action completion [error=Can not evaluate YAQL expression [expression=
| | YaqlEvaluationE
...
[2]
parameter_defaults:
NodeDataLookup: |
{ # c05-h01-6048r is missing scsi-0:2:35:0 <--------- this comment makes the JSON invalid
"00000000-
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
"/dev/
]
}
}
tags: | added: queens-backport-potential |
Changed in tripleo: | |
milestone: | rocky-rc1 → stein-1 |
Fix proposed to branch: master /review. openstack. org/588109
Review: https:/