Project

Profile

Help

Issue #3013

Content is not downloaded after switching from on_demand to immediate policy

Added by ttereshc almost 3 years ago. Updated about 1 year ago.

Status:
NEW
Priority:
High
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:

Description

Steps to reproduce:

  • create repo
  • create importer with on_demand policy
  • sync
  • update importer, set policy to immediate
  • sync again

Observe that no files were downloaded.

My guess is that importer looks into pulp_file_filecontent only and builds inventory based on the data from it without checking an existence of corresponding artifact in case of immediate policy.

History

#1 Updated by ttereshc almost 3 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High
  • Triaged changed from No to Yes

#2 Updated by jortel@redhat.com almost 3 years ago

The basic problem is that the importer is determining there is no content in the remote repository that needs to be added to the local (pulp) repository. Nothing to do.

We need to take a holistic approach here.

Few options:

  1. The user is responsible for triggering a repository-download task when changing the policy to immediate.
  2. The policy change (to immediate) could trigger a repository-download task automatically. But, what if this fails?
  3. The policy change needs to be noticed by the plugin (perhaps with help from the platform). Upon noticing this, the plugin needs to attempt to download artifacts just as it does when adding content (to the repository) that already exists.

The last option involving the importer is least desirable. It adds unwanted complexity to every importer. Either 1 or 2 or combination of 1 and 2 seems like the best idea.

Thoughts?

#3 Updated by bmbouter about 1 year ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF