Skip to content

App status not cleared after backup actions with no relation #759

@smethnani

Description

@smethnani

Steps to reproduce

Set up large deployment
1.

juju deploy opensearch main --channel 2/edge --config profile="testing"
juju deploy opensearch data --channel 2/edge --config profile="testing" --config init_hold="true" --config roles="data"
juju deploy self-signed-certificates --config ca-common-name="Test CA" --channel="latest/stable"
juju integrate self-signed-certificates main
juju integrate self-signed-certificates data
juju integrate main:peer-cluster-orchestrator data:peer-cluster
  1. Run a backup action on a subcluster application
juju run data/leader list-backups

Expected behavior

The action should fail with a message. The app status should eventually be cleared (or not be shown at all, given the message is already returned in the action)

Actual behavior

The actions fails but the app status will not be cleared if it was run on a subcluster application. The only way to clear it is to establish an incorrect relation between the subcluster application and backup integrator and then remove it.

Image

If the action was run on the main orchestrator application, the status is cleared if it is related with a backup integrator, which may not happen.

After running list-backups action on main application, before relating with a backup integrator:

Image

After relating the main-orchestrator with the backup integrator:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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