Project

General

Profile

Bug #34530

Failed to docker pull image with "Error: image <image name> not found" error

Added by Ryan Verdile about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Description of problem:
After setting the "Unauthenticated Pull: Yes", it is not taking effect in Capsule until user performs a Complete Capsule sync. Publish/Promote a new version of CV won't help if no content is changed.

Steps to Reproduce:
1. Create and sync a container repo
2. Create a CV and add the container repo to it
3. Publish and Promote the CV and make sure Capsule sync is triggered.
4. Wait for the Capsule sync to finish
5. Go the the LCE page and set "Unauthenticated Pull: Yes".
6. From any host run docker pull

docker pull capsule.example.com/mycontainer:latest

Actual results:
Image not found error

  1. On Capsule:
  2. sqlite3 /var/lib/foreman-proxy/smart_proxy_container_gateway.db
    sqlite> .header on
    sqlite> select * from repositories;
    id|name|auth_required
    6|busybox|1 <============ should be 0

Expected results:
Refresh the database in the smart proxy container gateway immediately after setting the "Unauthenticated Pull", such as trigger a foreman-task to refresh the data.

Image can be pulled successfully from Capsule.

Associated revisions

Revision 3963952e (diff)
Added by Ryan Verdile about 1 year ago

Fixes #34530 - update smart proxy after setting unauthenticated pull (#9987)

History

#1 Updated by The Foreman Bot about 1 year ago

  • Assignee set to Ryan Verdile
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9987 added

#2 Updated by Samir Jha about 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.5.0

#3 Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases Katello 4.5.0 added

#4 Updated by Ryan Verdile about 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF