Bug #39162
closedImporting content from an URL generates repositories with download_policy on-demand
Description
Description of problem:
When importing content and using an URL instead of a path from a local filesystem, satellite will create the root repositories with download_policy set to on-demand, instead of immediate.
How reproducible:
Always
Is this issue a regression from an earlier version:
Steps to Reproduce:
1. Export a repository with syncable format
hammer content-export complete repository --id <ID> --format syncable
2. Place the exported content in to a URL. Can be the satellite itself at /var/www/html/pub/import/
3. Import from URL:
hammer content-import repository --path http://localhost/pub/import/1.0/2025-03-14T12-26-56-04-00/ --organization-id 1
Actual behavior:
Import will be done, but download_policy will be set to on-demand:
2025-03-14T15:16:32 [I|aud|17fedd9e] Katello::RootRepository (340) create event on download_policy on_demand
Expected behavior:
Download policy to be set to immediate
Business Impact / Additional info:
What happens is that the repository is created with the value defined at default_redhat_download_policy
Workaround is to to set default_redhat_download_policy to immediate
Updated by The Foreman Bot 4 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/11682 added
Updated by Anonymous 4 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|a26e5d936c24c3594a3ec817cced803eb6c1b01f.
Updated by Pavan Soma Shekar 4 months ago
- Target version changed from Katello 5.0.0 to Katello 4.21.0
- Triaged changed from No to Yes