Restart Worfklow does not execute start

Description

The restart workflow is supposed to execute stop/start workflow functions in plugins/workflows.py. However, it only executes stop.
This is because start/stop both call the execute_operation workflow which has a fixed name="execute_operation". The added decorator "make_or_get_graph' uses this name to lookup if a graph has already been generated for the workflow. Since the same name is used for both start and stop, when start executes, the function _make_execute_operation_grpah does not execute and instead the same graph from the stop workflow funciton is used. Since that graph has already been executed, no action is taken and start is skipped.

Steps to Reproduce

Environment:
OS (CLI), HA cluster, cloud provider
------------------------------------

Steps to reproduce:
------------------
1.
2.
3.

Expected result:
---------------

Actual result:
-------------

Why Propose Close?

None

Activity

Show:
Łukasz Maksymczuk
July 22, 2019, 11:05 AM

This is closely related to CY-1411, and will be done when is done

Łukasz Maksymczuk
August 5, 2019, 6:52 AM

Done together with

Done

Assignee

Łukasz Maksymczuk

Reporter

Jonathan Abramsohn

Labels

Severity

Medium

Target Version

5.0.5

Premium Only

no

Found In Version

4.5

QA Owner

None

Bug Type

new feature bug

Customer Encountered

Yes

Customer Name

c458

Release Notes

yes

Priority

None

Priority

Unprioritized
Configure