st2flow icon indicating copy to clipboard operation
st2flow copied to clipboard

Mistral workflow fully qualified action name error

Open jinpingh opened this issue 6 years ago • 2 comments

st2 --version st2 3.0.0, on Python 2.7.6

Created and saved a new mistral workflow with name test_mistral_wf. Execution failed on error message Name of the workflow must be the same as the fully qualified action name "examples.test_mistral_wf"

/opt/stackstorm/packs/examples/actions/test_mistral_wf.meta.yaml
pack: examples
enabled: true
runner_type: mistral-v2
name: test_mistral_wf
entry_point: workflows/test_mistral_wf.yaml
/opt/stackstorm/packs/examples/actions/workflows/test_mistral_wf.yaml
version: '2.0'
main:
  tasks:
    # [246, 304]
    task1:
      action: core.echo
      input:
        message: hello

mistral_wf

jinpingh avatar Apr 25 '19 17:04 jinpingh

Thanks for finding and reporting this.

I confirmed - issue is related to _ in the action (and as such workflow name, if one is not explicitly specified in the workflow definition). - works fine.

This is not a blocker for v3.0.0, but in the future we should fix it to at least throw a more user-friendly exception in such scenario.

Kami avatar Apr 25 '19 17:04 Kami

In the WF definition, main should be <pack>.<name> from action meta. This is limitation of mistral WF definition and due to way that it stores individual workflows and workbooks in DB. Orquesta does not have this limitation.

m4dcoder avatar Apr 25 '19 18:04 m4dcoder