Execution error when running with the same workflow in parallel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Critical
|
Nikolay Makhotkin | ||
Kilo |
Fix Released
|
Critical
|
Nikolay Makhotkin | ||
Liberty |
Fix Released
|
Critical
|
Nikolay Makhotkin |
Bug Description
my workflow:
---
version: '2.0'
create_vm:
type: direct
input:
- vm_name
- image_ref
- flavor_ref
output:
vm_id: <% $.vm_id %>
tasks:
create_server:
action: nova.servers_create name=<% $.vm_name %> image=<% $.image_ref %> flavor=<% $.flavor_ref %>
publish:
vm_id: <% $.create_server.id %>
on-success:
- check_server_exists
check_
action: nova.servers_get server=<% $.vm_id %>
publish:
on-success:
- wait_instance
wait_instance:
action: nova.servers_find id=<% $.vm_id %> status='ACTIVE'
retry:
delay: 5
count: 15
create 2 executions with the workflow, run in parallel, 1 of the 2 executions will be ERROR, the trace log:
2015-04-25 05:51:36.990 14491 DEBUG mistral.
2015-04-25 05:51:36.992 14491 ERROR mistral.
NovaAction.
2015-04-25 05:51:36.992 14491 TRACE mistral.
2015-04-25 05:51:36.992 14491 TRACE mistral.
2015-04-25 05:51:36.992 14491 TRACE mistral.
2015-04-25 05:51:36.992 14491 TRACE mistral.
2015-04-25 05:51:36.992 14491 TRACE mistral.
2015-04-25 05:51:36.992 14491 TRACE mistral.
2015-04-25 05:51:36.992 14491 TRACE mistral.
or
2015-04-25 05:34:38.163 14175 ERROR mistral.
NovaAction.
2015-04-25 05:34:38.163 14175 TRACE mistral.
2015-04-25 05:34:38.163 14175 TRACE mistral.
2015-04-25 05:34:38.163 14175 TRACE mistral.
2015-04-25 05:34:38.163 14175 TRACE mistral.
2015-04-25 05:34:38.163 14175 TRACE mistral.
2015-04-25 05:34:38.163 14175 TRACE mistral.
2015-04-25 05:34:38.163 14175 TRACE mistral.
root cause:
client_method_name is OpenStackAction class variable, it will be overrided by other executors during action class construction.
def construct_
# Rebuild action class and restore attributes.
action_class = importutils.
for name, value in attributes.items():
Changed in mistral: | |
assignee: | nobody → Lingxian Kong (kong) |
Changed in mistral: | |
status: | Confirmed → In Progress |
Changed in mistral: | |
milestone: | 1.0.0 → none |
Fix proposed to branch: master /review. openstack. org/177739
Review: https:/