charm container crashes resulting in storage-attach hook error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Harry Pidcock |
Bug Description
Unit is in crash loopback off with restarting failed in juju+microk8s environment
snap versions of juju and microk8s
$ snap list | egrep 'juju|microk8s'
juju 3.0-rc2 21049 3.0/beta canonical** -
microk8s v1.25.2 4049 1.25-strict/stable canonical** -
Bundle used: https:/
Status of the application:
```
$ juju status -m openstack glance
Model Controller Cloud/Region Version SLA Timestamp
openstack microk8s-localhost microk8s/localhost 3.0-rc2 unsupported 13:58:08Z
App Version Status Scale Charm Channel Rev Address Exposed Message
glance waiting 0/1 glance-k8s edge 8 10.152.183.227 no installing agent
Unit Workload Agent Address Ports Message
glance/0 error lost 10.1.136.12 crash loop backoff: back-off 5m0s restarting failed container=charm pod=glance-
```
```
$ microk8s.kubectl -n openstack get po glance-0
NAME READY STATUS RESTARTS AGE
glance-0 1/2 CrashLoopBackOff 6 (4m26s ago) 15m
```
Glance charm container logs:
https:/
Log excerpts that are of interest:
unit-glance-0: 13:47:19 INFO juju.worker.
unit-glance-0: 13:47:19 ERROR juju.worker.
unit-glance-0: 13:47:19 INFO juju.worker.uniter awaiting error resolution for "install" hook
...
unit-glance-0: 13:48:45 INFO juju.worker.
unit-glance-0: 13:48:45 ERROR juju.worker.
unit-glance-0: 13:48:45 INFO juju.worker.uniter awaiting error resolution for "storage-attached" hook
unit-glance-0: 13:48:49 INFO juju.worker.uniter awaiting error resolution for "storage-attached" hook
...
unit-glance-0: 13:49:06 INFO juju.worker.uniter hooks are retried true
unit-glance-0: 13:49:06 INFO juju.worker.uniter awaiting error resolution for "storage-attached" hook
unit-glance-0: 13:49:07 INFO juju.worker.uniter awaiting error resolution for "storage-attached" hook
unit-glance-0: 13:49:11 INFO juju.worker.uniter awaiting error resolution for "storage-attached" hook
unit-glance-0: 13:49:11 INFO juju.worker.uniter awaiting error resolution for "storage-attached" hook
unit-glance-0: 13:49:11 ERROR juju.worker.uniter resolver loop error: preparing operation "run storage-attached (local-
unit-glance-0: 13:49:12 INFO juju.worker.uniter unit "glance/0" shutting down: preparing operation "run storage-attached (local-
Changed in juju: | |
milestone: | none → 3.0-rc3 |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju: | |
importance: | High → Critical |
Changed in juju: | |
status: | Triaged → In Progress |
assignee: | nobody → Harry Pidcock (hpidcock) |
Changed in juju: | |
milestone: | 3.0-rc3 → 3.0.1 |
Changed in juju: | |
milestone: | 3.0.1 → 2.9.37 |
Changed in juju: | |
status: | Fix Committed → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
The charm container restarted after 30 sec due to healthcheck failure and if restart happens during execution of storage-attached hook resulting in hook failure, further retries of storage-attached hook resulted in error "storage not found".
There is no special handling on storage-attached hook in the application glance-k8s charm code.