OSMENG-1062: Fix states in VnfInstantiateWorkflow 93/13393/2
authorDario Faccin <dario.faccin@canonical.com>
Mon, 15 May 2023 09:42:06 +0000 (11:42 +0200)
committerDario Faccin <dario.faccin@canonical.com>
Tue, 16 May 2023 09:35:44 +0000 (11:35 +0200)
commit7c0f53c5fff6e3624743c8c778641e005db18357
tree323e028d1d1232fc9b3cd9745e0b976a68a0f1de
parent1963ad16e7cc587c05e1db12d4865c2164376f97
OSMENG-1062: Fix states in VnfInstantiateWorkflow

At the beginning of the workflow, update only VnfInstantiationState
(NOT_INSTANTIATED).
At the end of the workflow, update VnfInstantationState and VnfState:
* if succeeded: INSTANTIATED, STARTED
* if failed: INSTANTIATED, STOPPED

Change-Id: Ifb6df225d4e09f48941ce649ad3195d2b4e8b3b4
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
osm_lcm/temporal/vnf_workflows.py
osm_lcm/tests/test_vnf_workflows.py