Error handling errors in validation workflows. Task 'check_flavors' error=Can not evaluate YAQL expression

Bug #1723170 reported by Dougal Matthews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Dougal Matthews

Bug Description

In the check_flavors workflow, the following error will happen if the check_flavors action fails.

YaqlEvaluationException: Can not evaluate YAQL expression [expression=task(check_flavors).result.errors, error=Unknown function "#property#errors", data={}]

The YAQL is....

    errors: <% $.errors + task(collect_flavors).result.errors %>

I think on error, the result value might be a string. Meaning that we can't access an errors property.

I also suspect the error handling in some of the other tasks here might not be correct.

Tags: workflows
Dougal Matthews (d0ugal)
summary: - Error handling errors in validation workflows
+ Error handling errors in validation workflows. Task 'check_flavors'
+ error=Can not evaluate YAQL expression
Revision history for this message
Dougal Matthews (d0ugal) wrote :
Changed in tripleo:
milestone: queens-2 → queens-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/535912

Changed in tripleo:
assignee: Dougal Matthews (d0ugal) → Brad P. Crochet (brad-9)
status: Triaged → In Progress
Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
assignee: Brad P. Crochet (brad-9) → Dougal Matthews (d0ugal)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/535912
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=25170a889ac834cfde84b988061838b35891dcce
Submitter: Zuul
Branch: master

commit 25170a889ac834cfde84b988061838b35891dcce
Author: Brad P. Crochet <email address hidden>
Date: Fri Jan 19 14:36:27 2018 -0500

    Make the validations workflow a bit more robust

    The validations workflows would fail in strange ways in certain
    conditions. This refactors the workflows a bit and makes the result
    checking more robust by using the get() yaql function.

    Change-Id: I6e37df8989cab507c4f404094d127db1bac51c1b
    Closes-Bug: #1723170

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 8.5.0

This issue was fixed in the openstack/tripleo-common 8.5.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.