Project

General

Profile

Actions

Bug #39162

closed

Importing content from an URL generates repositories with download_policy on-demand

Added by Pavan Soma Shekar 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

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
Actions #2

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases Katello 4.21.0 added
Actions #3

Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

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
Actions

Also available in: Atom PDF