deploy workflow executions aren't visible via mistral CLI

Bug #1756362 reported by Steven Hardy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Invalid
Undecided
Unassigned
tripleo
Expired
Wishlist
Unassigned

Bug Description

I had a deploy fail, but the status is SUCCESS, so I need to debug the individual executions to figure out what went wrong running the workflow, but it seems the data is either hidden or not recorded by mistral, e.g:

(undercloud) [stack@undercloud ~]$ openstack workflow execution show 28673f6c-d6ce-414c-ae7b-fcb28aa842af
+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| ID | 28673f6c-d6ce-414c-ae7b-fcb28aa842af |
| Workflow ID | 000abed5-20c2-4d18-84e2-7c982addb552 |
| Workflow name | tripleo.deployment.v1.deploy_plan |
| Workflow namespace | |
| Description | |
| Task Execution ID | <none> |
| State | SUCCESS |
| State info | None |
| Created at | 2018-03-16 13:49:17 |
| Updated at | 2018-03-16 13:50:30 |
+--------------------+--------------------------------------+
(undercloud) [stack@undercloud ~]$ openstack workflow execution list | grep 28673f6c-d6ce-414c-ae7b-fcb28aa842af
(undercloud) [stack@undercloud ~]$ openstack action execution list | grep tripleo.deployment.v1.deploy_plan
(undercloud) [stack@undercloud ~]$

Looking in the DB it seems we do have a record for the workflow execution, but no action executions at all associated with the workflow execution ID:

MariaDB [mistral]> select * from workflow_executions_v2 where id like '28673f6c-d6ce-414c-ae7b-fcb28aa842af';
...
1 row in set (0.00 sec)

MariaDB [mistral]> select * from action_executions_v2 where workflow_id like '28673f6c-d6ce-414c-ae7b-fcb28aa842af';
Empty set (0.27 sec)

So this is inconsistent with the CLI which doesn't list this record in workflow execution list.

I'm not sure how you can debug a failing workflow with this information ommitted, particularly the task execution so you can reconstruct the graph and figure out why the output wasn't as expected?

Revision history for this message
Dougal Matthews (d0ugal) wrote :

Are you looking for this? I think it might give you the output you want?

    openstack action execution list 28673f6c-d6ce-414c-ae7b-fcb28aa842af

When debugging I usually use these commands (I tend to prefer the shorter non-openstack commands)

mistral execution-list
mistral execution-get
mistral task-list
mistral action-exection-list

Revision history for this message
Dougal Matthews (d0ugal) wrote :

It is also worth noting that the task-list and action-execution-list are paginated (but exection-list isn't, because reasons). They will only show the first 100 by default

Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → rocky-1
Revision history for this message
Dougal Matthews (d0ugal) wrote :

I believe this didn't show up due to the pagination, and thus isn't a bug in Mistral. It is best to filter with the Mistral API or CLI args rather than grep.

Changed in mistral:
status: New → Invalid
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
milestone: stein-3 → stein-rc1
Changed in tripleo:
milestone: stein-rc1 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
status: Triaged → Incomplete
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Changed in tripleo:
milestone: victoria-1 → victoria-3
Changed in tripleo:
importance: High → Wishlist
Changed in tripleo:
milestone: victoria-3 → wallaby-1
Changed in tripleo:
milestone: wallaby-1 → wallaby-2
Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Revision history for this message
Marios Andreou (marios-b) wrote :

This is an automated action. Bug status has been set to 'Incomplete' and target milestone has been removed due to inactivity. If you disagree please re-set these values and reach out to us on freenode #tripleo

Changed in tripleo:
milestone: wallaby-3 → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tripleo because there has been no activity for 60 days.]

Changed in tripleo:
status: Incomplete → Expired
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.