You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The nightly registry collection fails until a first image is pushed #573
The nightly collection of the registry (registry-gc.sh, run by shipkeep-registry-gc.timer, #553) fails on every installation where no build has pushed an image yet. Distribution's garbage-collect refuses a registry that has no repositories:
Path not found: /docker/registry/v2/repositories
The service ends in failure every night until a first image is pushed. Nothing is lost, since there is nothing to collect, but systemctl --failed reports it and so does any monitoring that watches failed units.
Found while upgrading a lab installation from v0.1.0-alpha.7 to v0.1.0-alpha.8 by following docs/INSTALL.md: the timer installed, and its first run failed.
Expected
On a registry with no pushed image, the collection says there is nothing to collect and ends in success. It does so without making the registry read-only.
A fix is ready on the fix/registry-gc-empty branch, with a test that fails without it. In the lab, the same machine then ended in success with "nothing was pushed to the registry yet, so there is nothing to collect."
Activity