If a relation name is invalid then everything is blocked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Unassigned |
Bug Description
I named a relation badly (`pushgatewayXXX`) and noticed it was a bad name when trying to relate the services
$ juju relate prometheus-
ERROR "testingcharm:
Now I'm trying to remove the service(s) to deploy from scratch, and keeps failing:
$ juju remove-application --force --no-wait testingcharm
ERROR "testingcharm:
The status at that point:
App Version Status Scale Charm Channel Rev Address Exposed Message
prometheus-k8s 2.33.5 active 1 prometheus-k8s stable 103 10.152.183.72 no
prometheus-
testingcharm waiting 0/1 testingcharm 5 10.152.183.143 no installing agent
Unit Workload Agent Address Ports Message
prometheus-k8s/0* active idle 10.1.24.193
prometheus-
testingcharm/0 error lost 10.1.24.224 crash loop backoff: back-off 2m40s restarting failed container=charm pod=testingchar
Then I tried with `juju destroy-model welcome --destroy-storage`, it didn't not look good:
Model Controller Cloud/Region Version SLA Timestamp Notes
welcome charm-dev-batteries microk8s/localhost 3.0.2 unsupported 11:07:18-03:00 attempt 1 to destroy model failed (will retry): model not empty, found 3 applications, 10 volumes, 10 filesystems (model not empty)
App Version Status Scale Charm Channel Rev Address Exposed Message
prometheus-k8s 2.33.5 terminated 0/1 prometheus-k8s stable 103 10.152.183.72 no unit stopped by the cloud
prometheus-
testingcharm waiting 0/1 testingcharm 5 10.152.183.143 no installing agent
Unit Workload Agent Address Ports Message
prometheus-k8s/0 unknown lost 10.1.24.193 agent lost, see 'juju show-status-log prometheus-k8s/0'
prometheus-
testingcharm/0 error lost 10.1.24.224 crash loop backoff: back-off 5m0s restarting failed container=charm pod=testingchar
Destroying the controller unblocked me, but we should not reach this stage.
Context:
- juju version: 3.0.2-genericli
- MicroK8s: v1.25.6 revision 4504
- OS: Ubuntu 22.04.1 LTS
The controller/model were created with:
juju bootstrap microk8s charm-dev-batteries
juju add-model --config logging-
tags: | added: integrations relations |
We should allow progression of application destruction through such an error when --force is used.