Description of problem: If enable-ssh-admin.sh workflow fails the script will loop forever, because it only checks if the workflow is SUCCESSFUL ######################## function workflow_finished { local execution_id="$1" openstack workflow execution show -f shell $execution_id | grep 'state="SUCCESS"' > /dev/null } ........................ echo -n "Waiting for the workflow execution to finish (id $EXECUTION_ID)." while ! workflow_finished $EXECUTION_ID; do sleep $SLEEP_TIME echo -n . done ######################## Actual results: Stuck in a loop that never times out Expected results: To exit if the workflow fails or time out
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text. If this bug does not require doc text, please set the 'requires_doc_text' flag to '-'.
When I tried to verify BZ the heat_agent.log contained these msgs: No recognized column names in ['state']. Recognized columns are ['ID', 'Workflow ID', 'Workflow name', 'Workflow namespace', 'Description', 'Task Execution ID', 'Root Execution ID', 'State', 'State info', 'Created at', 'Updated at']. enable-ssh-admin.sh is executing this command: openstack workflow execution show -f value -c state $execution_id Believe it needs to look for a capital S instead of lowercase s in State.
Moving to ON_DEV. When trying to verify this error message was seen in heat_agent.log: Waiting for the workflow execution to finish (id e862c392-1470-4367-a0d1-50a1b43c6bd8).Workflow e862c392-1470-4367-a0d1-50a1b43c6bd8 finished with error. Check mistral logs.
This is seen in heat_agent.log when timeout occurs: Workflow e4d6b815-880d-4aab-9df6-3fd6099b0221 did not finish after 600 seconds. In addition the errors: No recognized column names in ['state']. Recognized columns are ['ID', 'Workflow ID', 'Workflow name', 'Workflow namespace', 'Description', 'Task Execution ID', 'Root Execution ID', 'State', 'State info', 'Created at', 'Updated at']. and Waiting for the workflow execution to finish (id e862c392-1470-4367-a0d1-50a1b43c6bd8).Workflow e862c392-1470-4367-a0d1-50a1b43c6bd8 finished with error. Check mistral logs. are no longer seen in heat_agent.log
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.3 bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:5413