Bug 2001517
Summary: | [RFE] Allow "on_demand" download policy for repositories of content_type docker | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Eric Nothen <enothen> |
Component: | Repositories | Assignee: | Ryan Verdile <rverdile> |
Status: | CLOSED ERRATA | QA Contact: | Cole Higgins <chiggins> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.9.0 | CC: | ajoseph, bbuckingham, ddf-bot, mdolezel, rchan, rverdile, saydas, thadzhie, ttereshc |
Target Milestone: | 6.12.0 | Keywords: | FutureFeature, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-16 13:32:46 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
This is supported in Pulp 3 upstream, needs to be exposed on the Katello side. @rverdile should this issue https://projects.theforeman.org/issues/34217 be linked to this bz? Connecting redmine issue https://projects.theforeman.org/issues/34217 from this bug (In reply to Robin Chan from comment #2) > @rverdile should this issue > https://projects.theforeman.org/issues/34217 be linked to this bz? Yes, thank you. Should be linked now. Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34217 has been resolved. Hello everyone, I don't see a target milestone for this BZ. Can some tell on which version of Satellite this feature is expected to be released? Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8506 *** Bug 1772887 has been marked as a duplicate of this bug. *** *** Bug 1504789 has been marked as a duplicate of this bug. *** |
Description of problem: When creating a repository of content_type docker, it is not possible to define download_policy to "on_demand", as it is the case and correctly documented for the content_type yum: [root@satellite ~]# hammer repository update --help |grep -A1 download-policy --download-policy DOWNLOAD_POLICY Download policy for yum repos (either 'immediate', 'on_demand', or 'background (deprecated)') Example on one single repository, in which the initial sync downloaded all blobs: [root@satellite ~]# du -sk /var/lib/pulp ; hammer repository sync --id 16 --organization-id 1 ; du -sk /var/lib/pulp 3147168 /var/lib/pulp [....................................................................................................................] [100%] New blobs: 924. 9165392 /var/lib/pulp [root@satellite ~]# That's roughly 5.7GB used by one single container, out of 117 different ones required by RHOSP 16.1. The downloaded tags include not only older versions that will never be used, but also others with tags such as *-source. Being able to download images as they are pulled would save a lot of space (> 100GB on the initial sync of RHOSP 16.1) and also make the initial sync way faster. Only when an image is being pulled from satellite, the required blobs would be downloaded, depending on the tag specified as part of the pull. Version-Release number of selected component (if applicable): Satellite 6.9.5 or earlier How reproducible: Reproducible via web or hammer cli Steps to Reproduce: 1. Create a product [root@satellite ~]# hammer product create --organization-id 1 --name "OSP16.1 Containers" Product created. [root@satellite ~]# 2. Attempt to create repository using donwload-policy: [root@satellite ~]# hammer repository create \ > --name base \ > --organization-id 1 \ > --product "OSP16.1 Containers" \ > --content-type docker \ > --url https://registry.redhat.io \ > --docker-upstream-name rhosp-rhel8/openstack-base \ > --upstream-username $USERNAME \ > --upstream-password $PASSWORD \ > --download-policy on_demand Could not create the repository: Validation failed: Download policy Cannot set attribute download_policy for content type docker [root@satellite ~]# Actual results: Can not use download_policy "on_demand" for content type "docker" Expected results: Can use download_policy "on_demand" for content type "docker"