Juju fails to deploy mysql-k8s charm with its image resource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Harry Pidcock |
Bug Description
When deploying the mysql-k8s charm in microk8s and run:
$ juju deploy mysql-k8s
I get in juju debug-log:
unit-mysql-k8s-0: 18:39:40 ERROR juju.worker.uniter pebble poll failed for container "mysql": failed to get pebble info: cannot obtain system details: cannot communicate with server: Get "http://
But seems that the real issue here is:
$ microk8s.kubectl describe pod mysql-k8s-0 -n mysql-k8s
Normal Pulling 19s (x3 over 67s) kubelet Pulling image "registry.
Warning Failed 16s (x3 over 63s) kubelet Failed to pull image "registry.
Some minutes before I uploaded the charm and the resource to charmhub:
2021-06-30 18:32:45,293 charmcraft.
2021-06-30 18:32:45,293 charmcraft.
Note the digest is the same: sha256:
and the charm and resource are uploaded:
$ charmcraft revisions mysql-k8s
Revision Version Created at Status
2 2 2021-06-29 released
1 1 2021-06-29 approved
$ charmcraft resources mysql-k8s
Charm Rev Resource Type Optional
2 mysql-image oci-image True
1 mysql-image oci-image True
summary: |
- Juju fails to get charm resources (oci image) + Juju fails to deploy mysql-k8s charm with its image resource |
Changed in juju: | |
milestone: | none → 2.9.8 |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Harry Pidcock (hpidcock) |
Changed in juju: | |
milestone: | 2.9.8 → 2.9.9 |
Changed in juju: | |
milestone: | 2.9.9 → 2.9.8 |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Attached you'll find the output of:
$ microk8s.kubectl describe pod mysql-k8s-0 -n mysql-k8s > out.txt