inconsistent message on unit teardown
Bug #1979292 reported by
Pietro Pasotti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Nicolas Vinuesa |
Bug Description
After doing juju remove-application, the unit status shows 'agent lost' and the message tells me to check status-log, but when I do that I get an error "no status history available".
To reproduce: (on microk8s)
juju deploy something
juju remove-application something
(wait for unknown/lost)
juju show-status-log something
(get error)
Changed in juju: | |
importance: | Undecided → Medium |
milestone: | none → 3.0.0 |
status: | New → Triaged |
Changed in juju: | |
milestone: | 3.0.0 → 3.0.1 |
Changed in juju: | |
milestone: | 3.0.1 → 3.0.2 |
Changed in juju: | |
milestone: | 3.0.2 → 3.0.3 |
Changed in juju: | |
assignee: | nobody → Nicolas Vinuesa (nvinuesa) |
Changed in juju: | |
milestone: | 3.0.3 → 2.9.39 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | 2.9.39 → 2.9.42 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've been trying to reproduce this bug with no success.
For the microk8s setup I followed https:/ /juju.is/ docs/olm/ get-started- with-juju (using the microk8s sections) and only deployed `postgresql-k8s`.
After waiting for the app to be correctly started and in a correct state, I removed the application and waited until the app was fully removed.
``` tutorial- vm:~$ juju bootstrap microk8s tutorial-controller
ubuntu@
Creating Juju controller "tutorial- controller" on microk8s/localhost tutorial- controller"
Bootstrap to Kubernetes cluster identified as microk8s/localhost
Creating k8s resources for controller "controller-
Downloading images
Starting controller pod
Bootstrap agent now started
Contacting Juju controller at 10.152.183.27 to verify accessibility...
Bootstrap complete, controller "tutorial- controller" is now available in namespace "controller- tutorial- controller"
Now you can run tutorial- vm:~$ juju add-model tutorial-model tutorial- vm:~$ juju deploy postgresql-k8s tutorial- vm:~$ juju remove-application postgresql-k8s tutorial- vm:~$ juju show-status-log postgresql-k8s
juju add-model <model-name>
to create a new model to deploy k8s workloads.
ubuntu@
Added 'tutorial-model' model on microk8s/localhost with credential 'microk8s' for user 'admin'
ubuntu@
Located charm "postgresql-k8s" in charm-hub, revision 20
Deploying "postgresql-k8s" from charm-hub charm "postgresql-k8s", revision 20 in channel stable on ubuntu@20.04/stable
ubuntu@
removing application postgresql-k8s
- will detach storage logs/0
- will detach storage pgdata/1
ubuntu@
ERROR "postgresql-k8s" is not a valid name for a unit
```
Since the app was correctly removed, the unit status didn't show anything else, so of course `$ juju show-status-log postgresql-k8s` failed with `ERROR "postgresql-k8s" is not a valid name for a unit`.
I tried reproducing it both with 2.9 and 3.0 versions of juju, in microk8s and lxd localhost.
Am I missing something? What was the exact setup (juju version, microk8s version, application + version) used to reproduce this bug?