Bug #19982
closedDocker repository not immediately available on local registry after sync
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1452149
Description of problem:
After syncing a docker repository using hammer:
`hammer repository synchronize --id="666"`
the `repository info` subcommand reports sync status as success and reports
'published at: sat6.server.com:5000/foo-bar-baz,
however, if you try to pull the repo using docker: `docker pull sat6.server.com:5000/foo-bar-baz`, you'll get:
Using default tag: latest
Trying to pull repository sat6.server.com:5000/foo-bar-baz ...
unknown: Not Found
Foreman takes some time before the repo is really available.
I believe, the sync task should finish AFTER the repo is really available.
How reproducible:
always on pulling the repo just after syncing it.
Steps to Reproduce:
1. hammer repository create --product-id="1" --docker-upstream-name="busybox" --name="foo" --publish-via-http="true" --url="https://registry-1.docker.io" --content-type="docker"
2. hammer repository synchronize --id=1
3. (on a docker host with katello consumer ca installed): docker pull sat6-server.com:5000/foo-bar-baz
Actual results:
unknown: Not Found
Expected results:
repo available and pull finishes successfully
Additional info:
workaround: give foreman some time to publish the repo.
Updated by Thomas McKay over 7 years ago
- Blocks Tracker #19682: container image and registry tracker added
Updated by Thomas McKay over 7 years ago
- Subject changed from Docker repository not immediately available on local registry after sync to Docker repository not immediately available on local registry after sync
https://github.com/pulp/crane/blob/master/docs/index.rst#configuration
It is likely that this is just a case of crane not having yet polled for the new data. Perhaps the data_dir_polling_interval should be decreased from the default of 60 seconds.
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release set to 250
Updated by Justin Sherrill over 7 years ago
- Translation missing: en.field_release changed from 250 to 114
Updated by Thomas McKay over 6 years ago
- Status changed from New to Closed
- Translation missing: en.field_release changed from 114 to 166