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
- 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.
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:
After relating the main-orchestrator with the backup integrator:

Steps to reproduce
Set up large deployment
1.
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.
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-backupsaction on main application, before relating with a backup integrator:After relating the main-orchestrator with the backup integrator: