https://pulp.plan.io/https://pulp.plan.io/favicon.ico2017-09-15T14:43:56ZPulpFile Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=218932017-09-15T14:43:56Zttereshcttereshc@redhat.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li><li><strong>Severity</strong> changed from <i>2. Medium</i> to <i>3. High</i></li><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=220362017-09-25T15:14:02Zjortel@redhat.comjortel@redhat.com
<ul></ul><p>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.</p>
<p>We need to take a holistic approach here.</p>
<p>Few options:</p>
<ol>
<li>The user is responsible for triggering a repository-download task when changing the policy to <em>immediate</em>.</li>
<li>The policy change (to <em>immediate</em>) could trigger a repository-download task automatically. But, what if this fails?</li>
<li>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.</li>
</ol>
<p>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.</p>
<p>Thoughts?</p> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=428302019-04-26T20:37:51Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> deleted (<del><i>Pulp 3</i></del>)</li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=719282021-06-14T16:51:30Zdalleydalley@redhat.com
<ul><li><strong>Sprint</strong> set to <i>Sprint 98</i></li></ul><p>This might be fixed already but we definitely need to verify that, and if it's not fixed then it will need attention soon.</p> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=719292021-06-14T17:04:39Zggainey
<ul></ul><p>I just did the following on my core-master et al dev system:</p>
<pre><code>pulp rpm remote create --name dell --url http://linux.dell.com/repo/hardware/dsu/os_independent/ --policy on_demand
pulp rpm repository create --name dell --remote dell
ppulp rpm repository sync --name dell
pulp rpm remote update --name dell --download-concurrency 5 --policy immediate
pulp rpm repository sync --name dell
</code></pre>
<p>The second sync downloaded all the content, as you can see from the task output:</p>
<pre><code>pulp task show --href /pulp/api/v3/tasks/395fec3f-1a2e-4965-baa0-9fad2d09afb6/
{
"pulp_href": "/pulp/api/v3/tasks/395fec3f-1a2e-4965-baa0-9fad2d09afb6/",
"pulp_created": "2021-06-14T16:57:18.061465Z",
"state": "running",
"name": "pulp_rpm.app.tasks.synchronizing.synchronize",
"logging_cid": "b6023513cb594a98b51dcc71870e6ecc",
"started_at": "2021-06-14T16:57:18.180855Z",
"finished_at": null,
"error": null,
"worker": "/pulp/api/v3/workers/49e49578-edd5-4c67-b3f3-dbf9fde8a4a1/",
"parent_task": null,
"child_tasks": [],
"task_group": null,
"progress_reports": [
{
"message": "Associating Content",
"code": "associating.content",
"state": "running",
"total": null,
"done": 0,
"suffix": null
},
{
"message": "Downloading Metadata Files",
"code": "sync.downloading.metadata",
"state": "completed",
"total": null,
"done": 4,
"suffix": null
},
{
"message": "Parsed Packages",
"code": "sync.parsing.packages",
"state": "completed",
"total": 634,
"done": 634,
"suffix": null
},
{
"message": "Downloading Artifacts",
"code": "sync.downloading.artifacts",
"state": "running",
"total": null,
"done": 454,
"suffix": null
}
],
"created_resources": [
null
],
"reserved_resources_record": [
"/pulp/api/v3/remotes/rpm/rpm/f4b27411-a886-4d8b-85f1-06d3925f8282/",
"/pulp/api/v3/repositories/rpm/rpm/c146463f-6dc0-46a2-b50f-896996a9ed6e/"
]
}
</code></pre>
<p>I think we're good - but additional testing would be great.</p> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=721322021-06-18T21:14:05Zrchan
<ul><li><strong>Sprint</strong> changed from <i>Sprint 98</i> to <i>Sprint 99</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=727452021-07-02T19:23:47Zrchan
<ul><li><strong>Sprint</strong> changed from <i>Sprint 99</i> to <i>Sprint 100</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=732752021-07-15T21:08:07Zrchan
<ul><li><strong>Sprint</strong> changed from <i>Sprint 100</i> to <i>Sprint 101</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=740702021-08-02T17:44:13Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Sprint</strong> changed from <i>Sprint 101</i> to <i>Sprint 102</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=744442021-08-12T15:23:34Zrchan
<ul><li><strong>Sprint</strong> changed from <i>Sprint 102</i> to <i>Sprint 103</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=749962021-08-27T15:08:42Zrchan
<ul><li><strong>Sprint</strong> changed from <i>Sprint 103</i> to <i>Sprint 104</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=753392021-09-08T12:26:52Zlmjachky
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>ASSIGNED</i></li><li><strong>Assignee</strong> set to <i>lmjachky</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=753412021-09-08T14:13:48Zlmjachky
<ul></ul><p>Since the issue description is referring to <code>importer</code>, I am not sure whether this is really a pulp3 thing. I also tried to reproduce the error on pulp3 with the file plugin (similarly to Grant) and I could not reproduce it while having the pulp_file and pulpcore master branches checked out. If it is related to pulp3, then we can close this issue.</p> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=753422021-09-08T14:48:33Zlmjachky
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> File Support - Issue #3013: Content is not downloaded after switching from on_demand to immediate policyhttps://pulp.plan.io/issues/3013?journal_id=753682021-09-08T22:17:11Zlmjachky
<ul><li><strong>Status</strong> changed from <i>CLOSED - CURRENTRELEASE</i> to <i>CLOSED - WORKSFORME</i></li></ul><p>Works for the 3.16.0.dev pulpcore version.</p>