All TripleO validations are broken due to: Failed to find workflow [name=tripleo.message.v1.send]

Bug #1779884 reported by Carlos Camacho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Carlos Camacho

Bug Description

All TripleO validations are broken due to: Failed to find workflow [name=tripleo.message.v1.send]

How to reproduce:

100%, deploy latest master and execute:

(undercloud) [stack@undercloud ~]$ openstack workflow execution create tripleo.validations.v1.run_validation '{"validation_name": "undercloud-ram"}'
+--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ID | 71d9db69-0619-4080-968e-5a6f6d55a79b |
| Workflow ID | ebde3124-0fac-4a43-bffe-b0aba5ae4db1 |
| Workflow name | tripleo.validations.v1.run_validation |
| Workflow namespace | |
| Description | |
| Task Execution ID | <none> |
| State | ERROR |
| State info | Failed to run task [error=Failed to find workflow [name=tripleo.message.v1.send] [namespace=], wf=tripleo.validations.v1.run_validation, task=notify_running]: |
| | Traceback (most recent call last): |
| | File "/usr/lib/python2.7/site-packages/mistral/engine/task_handler.py", line 63, in run_task |
| | task.run() |
| | File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 158, in wrapper |
| | result = f(*args, **kwargs) |
| | File "/usr/lib/python2.7/site-packages/mistral/engine/tasks.py", line 390, in run |
| | self._run_new() |
| | File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 158, in wrapper |
| | result = f(*args, **kwargs) |
| | File "/usr/lib/python2.7/site-packages/mistral/engine/tasks.py", line 419, in _run_new |
| | self._schedule_actions() |
| | File "/usr/lib/python2.7/site-packages/mistral/engine/tasks.py", line 494, in _schedule_actions |
| | timeout=self._get_timeout() |
| | File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 158, in wrapper |
| | result = f(*args, **kwargs) |
| | File "/usr/lib/python2.7/site-packages/mistral/engine/actions.py", line 551, in schedule |
| | wf_spec_name=self.wf_name |
| | File "/usr/lib/python2.7/site-packages/mistral/engine/utils.py", line 91, in resolve_workflow_definition |
| | (wf_spec_name, namespace) |
| | WorkflowException: Failed to find workflow [name=tripleo.message.v1.send] [namespace=] |
| | |
| Created at | 2018-07-03 14:38:09 |
| Updated at | 2018-07-03 14:38:09 |
+--------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+

Workaround, update correctly the messaging workflow name.

(undercloud) [stack@undercloud tripleo-common]$ openstack workflow execution create tripleo.validations.v1.run_validation '{"validation_name": "undercloud-ram"}'
+--------------------+---------------------------------------+
| Field | Value |
+--------------------+---------------------------------------+
| ID | 8416b1f2-e8c2-47da-b942-f88a762b05c8 |
| Workflow ID | ebde3124-0fac-4a43-bffe-b0aba5ae4db1 |
| Workflow name | tripleo.validations.v1.run_validation |
| Workflow namespace | |
| Description | |
| Task Execution ID | <none> |
| State | RUNNING |
| State info | None |
| Created at | 2018-07-03 14:55:25 |
| Updated at | 2018-07-03 14:55:25 |
+--------------------+---------------------------------------+

Changed in tripleo:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Carlos Camacho (ccamacho)
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/579896

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Carlos Camacho (ccamacho) wrote :
Download full text (5.6 KiB)

After some more debugging, I was able to run the validations:

# Let's make a validation to fail (xfs ftype=0)
(undercloud) [stack@undercloud ~]$ dd if=/dev/zero of=~/wakawaka.img bs=100M count=10
(undercloud) [stack@undercloud ~]$ du -sh ~/wakawaka.img
(undercloud) [stack@undercloud ~]$ sudo sudo losetup -fP ~/wakawaka.img
(undercloud) [stack@undercloud ~]$ sudo mkfs.xfs -n ftype=0 -m crc=0 ~/wakawaka.img -f
(undercloud) [stack@undercloud ~]$ mkdir ~/fs_test
(undercloud) [stack@undercloud ~]$ sudo mount ~/wakawaka.img ~/fs_test

# Run the XFS validation
(undercloud) [stack@undercloud ~]$ openstack workflow execution create tripleo.validations.v1.run_validation '{"validation_name": "check-ftype"}' -f json
{
  "Task Execution ID": "<none>",
  "Description": "",
  "Workflow name": "tripleo.validations.v1.run_validation",
  "Created at": "2018-07-03 15:12:18",
  "State": "RUNNING",
  "State info": null,
  "Updated at": "2018-07-03 15:12:18",
  "Workflow namespace": "",
  "ID": "c293135a-24f0-465c-a102-81ba37906b22",
  "Workflow ID": "ebde3124-0fac-4a43-bffe-b0aba5ae4db1"
}

# Show the validation state
(undercloud) [stack@undercloud ~]$ mistral execution-get c293135a-24f0-465c-a102-81ba37906b22
+--------------------+-----------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------+-----------------------------------------------------------------------------------------------------------+
| ID | c293135a-24f0-465c-a102-81ba37906b22 |
| Workflow ID | ebde3124-0fac-4a43-bffe-b0aba5ae4db1 |
| Workflow name | tripleo.validations.v1.run_validation |
| Workflow namespace | |
| Description | |
| Task Execution ID | <none> |
| State | ERROR |
| State info | Failure caused by error in tasks: send_message |
| | |
| | send_message [task_ex_id=46052c11-3794-424d-95c3-032b3a73ed1c] -> Workflow failed due to message status |
| | [wf_ex_id=6946578b-b04c-4f29-9133-e7e779e19302, idx=0]: Workflow failed due to message status |
| | |
| Created at ...

Read more...

Changed in tripleo:
importance: High → Critical
milestone: none → rocky-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

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

commit b3f901d3efa04d28ceafc13f92c8117c6da9a881
Author: Carlos Camacho <email address hidden>
Date: Tue Jul 3 14:58:30 2018 +0000

    Fix the messaging workflow name for the validations workflow.

    The messaging workflow is wrong in the validations workflow,
    thus all the validations are failing.

    Change-Id: If632004063f2fedd6e925a0b22111d4d2e998c23
    Closes-Bug: 1779884

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

This issue was fixed in the openstack/tripleo-common 9.2.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.