When you perform manual healing on a resource with Start transition, the first healing (Stop/Start) succeeds and the resource is deleted/created again. Subsequent healing (Stop/Start) fails due to a Duplicate key error. Moreover, Uninstall also fails - the resource cannot be stopped anymore.

See execution history:

Steps to reproduce the bug:
- Generate.an empty resource with
lmctl project create
- Add the
Start transition with the same object as in Create (a ConfigMap) to Lifecycle/kubernetes/kegd.yaml
- Add the
Start and the Stop transition to Definitions/lm/resource.yaml.
- Create an assembly for that resource.
- Create an assembly instance
- Heal the resource - it should succeed. Verify that the ConfigMap was indeed deleted and created anew.
- Heal the resource - it will fail.
When you perform manual healing on a resource with Start transition, the first healing (Stop/Start) succeeds and the resource is deleted/created again. Subsequent healing (Stop/Start) fails due to a
Duplicate keyerror. Moreover,Uninstallalso fails - the resource cannot be stopped anymore.See execution history:
Steps to reproduce the bug:
lmctl project createStarttransition with the same object as inCreate(a ConfigMap) toLifecycle/kubernetes/kegd.yamlStartand theStoptransition toDefinitions/lm/resource.yaml.