image corruption with docker-registry charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Docker Registry Charm |
Fix Released
|
High
|
Kevin W Monroe |
Bug Description
We have a instance of docker-registry charm configured as a pull-through cache for dockerhub.
The juju machine disk is used as storage.
Recently, we have encountered an issue when pulling a image will always results in failure. Upon investigation it seems one layer of the image was missing. When pulling that layer the docker-registry always returns an empty file.
We have `juju ssh` into the machine and using `docker exec -it sh` to poke around the docker-registry container. Most of the image layers are found under the corresponding directory name after the first 2 character of their hash, however one layer was missing on the disk.
This seems to be a docker-registry problem and not the charm itself.
We ended up removing the docker-registry container with the juju action (https:/
This has resolved our issue.
We are wondering if there are some settings or configuration the charm has to offset this issue.
E.g., is there a time-to-live for the cached images? Or some better solution?
Changed in layer-docker-registry: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Kevin W Monroe (kwmonroe) |
milestone: | none → 1.29+ck1 |
Changed in layer-docker-registry: | |
status: | In Progress → Fix Committed |
Changed in layer-docker-registry: | |
status: | Fix Committed → Fix Released |
Changed to the docker-registry charm project. The ticket previously was filed under the wrong project.