Skip to content

Stopping a resource works only once #20

@vadimeisenbergibm

Description

@vadimeisenbergibm

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.

Screen Shot 2020-09-24 at 7 08 20

See execution history:

Screen Shot 2020-09-24 at 7 08 36

Steps to reproduce the bug:

  1. Generate.an empty resource with lmctl project create
  2. Add the Start transition with the same object as in Create (a ConfigMap) to Lifecycle/kubernetes/kegd.yaml
  3. Add the Start and the Stop transition to Definitions/lm/resource.yaml.
  4. Create an assembly for that resource.
  5. Create an assembly instance
  6. Heal the resource - it should succeed. Verify that the ConfigMap was indeed deleted and created anew.
  7. Heal the resource - it will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions