Bug 1659415
| Summary: | The command "openstack overcloud status" hangs, the execution show a YAQL evaluation exception | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Udi Kalifon <ukalifon> |
| Component: | openstack-tripleo-common | Assignee: | Emilien Macchi <emacchi> |
| Status: | CLOSED ERRATA | QA Contact: | grozov |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 14.0 (Rocky) | CC: | beth.white, grozov, jtomasek, mburns, scohen, slinaber |
| Target Milestone: | ga | Keywords: | Triaged |
| Target Release: | 14.0 (Rocky) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-common-9.4.1-0.20181012010886.el7ost.src.rpm | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-01-11 11:55:18 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1615103 | ||
|
Description
Udi Kalifon
2018-12-14 10:33:11 UTC
DeploymentStatusAction fails with:
{
"result": "The action raised an exception [action_ex_id=1ae1dc00-31d3-4ebf-9ad3-40cf32d9e30d, action_cls='<class 'mistral.actions.action_factory.DeploymentStatusAction'>', attributes='{}', params='{u'plan': u'overcloud'}']\n 'deployment_status'"
}
mistral/executor.log:
ges/mistralclient/api/httpclient.py:56
2018-12-14 09:10:13.215 1 WARNING mistral.executors.default_executor [req-2ff735ed-daef-4e9d-b278-ea88217b3584 159bf210c99a4740b948016daa51c83b ef1846f91d5742f4821d440252ed3ac5 - default default] The action raised an exception [action_ex_id=None, action_cls='<class 'mistral.actions.action_factory.DeploymentStatusAction'>', attributes='{}', params='{u'plan': u'overcloud'}']
'deployment_status': KeyError: 'deployment_status'
2018-12-14 09:10:13.215 1 ERROR mistral.executors.default_executor Traceback (most recent call last):
2018-12-14 09:10:13.215 1 ERROR mistral.executors.default_executor File "/usr/lib/python2.7/site-packages/mistral/executors/default_executor.py", line 114, in run_action
2018-12-14 09:10:13.215 1 ERROR mistral.executors.default_executor result = action.run(action_ctx)
2018-12-14 09:10:13.215 1 ERROR mistral.executors.default_executor File "/usr/lib/python2.7/site-packages/tripleo_common/actions/deployment.py", line 379, in run
2018-12-14 09:10:13.215 1 ERROR mistral.executors.default_executor ansible_status = json.loads(cd_exec.output)['deployment_status']
2018-12-14 09:10:13.215 1 ERROR mistral.executors.default_executor KeyError: 'deployment_status'
(undercloud) [stack@undercloud-0 tmp]$ openstack workflow execution list --filter workflow_name='tripleo.deployment.v1.config_download_deploy'
+--------------------------------------+--------------------------------------+----------------------------------------------+--------------------+------------------------+--------------------------------------+--------------------------------------+---------+------------+---------------------+---------------------+
| ID | Workflow ID | Workflow name | Workflow namespace | Description | Task Execution ID | Root Execution ID | State | State info | Created at | Updated at |
+--------------------------------------+--------------------------------------+----------------------------------------------+--------------------+------------------------+--------------------------------------+--------------------------------------+---------+------------+---------------------+---------------------+
| 78dfdcc1-c90d-4206-96ab-fd1565d54c67 | b46263e8-5c34-40e8-b627-0e498f14b1f3 | tripleo.deployment.v1.config_download_deploy | | sub-workflow execution | fb4f5a4c-52c7-4aa4-9cde-94c10ab68389 | 5a65ce01-2f6b-4100-895a-1831458783ff | SUCCESS | None | 2018-12-14 06:31:04 | 2018-12-14 07:03:33 |
| 41c2ff74-be07-425b-a5dc-c09f7fdcf84a | b46263e8-5c34-40e8-b627-0e498f14b1f3 | tripleo.deployment.v1.config_download_deploy | | sub-workflow execution | 0ec1d37d-d4bb-48dd-a242-433cab4ecec2 | 3e59f126-506c-42fd-8810-7500289f095b | RUNNING | None | 2018-12-14 09:05:55 | 2018-12-14 09:05:55 |
+--------------------------------------+--------------------------------------+----------------------------------------------+--------------------+------------------------+--------------------------------------+--------------------------------------+---------+------------+---------------------+---------------------+
(undercloud) [stack@undercloud-0 tmp]$ openstack workflow execution output show 41c2ff74-be07-425b-a5dc-c09f7fdcf84a
{}
In case when the config-download workflow is still running, the execution output is empty^ so a solution is probably
ansible_status = json.loads(cd_exec.output).get('deployment_status', 'RUNNING')
Proposed upstream master fix: https://review.openstack.org/625275 Fix DeploymentStatusAction KeyError returned success and a response for every command 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, 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-2019:0045 |