Task #3699
closedStory #3693: Lazy for Pulp3
Make the streamer create an Artifact and update ContentArtifact with the foreign key
100%
Description
If the ContentArtifact has policy="on_demand"
then do the following:
After the streamer streams/downloads the content, an Artifact is created and associated with all ContentArtifact associated with the RemoteArtifact. Make sure right indexes exist to make this snappy.
If the ContentArtifact has policy="cache_only"
then do not create or save anything.
Related issues
Updated by bmbouter over 6 years ago
- Description updated (diff)
Updates to allow for the "cache" versus "on_demand" policy options
Updated by dkliban@redhat.com over 6 years ago
- Related to Task #3698: Make the streamer download using a configured downloader, configured by the correct remote. added
Updated by dkliban@redhat.com over 6 years ago
- Related to deleted (Task #3698: Make the streamer download using a configured downloader, configured by the correct remote.)
Updated by dkliban@redhat.com over 6 years ago
- Blocked by Task #3698: Make the streamer download using a configured downloader, configured by the correct remote. added
Updated by CodeHeeler over 6 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to CodeHeeler
Updated by CodeHeeler about 6 years ago
- Assignee changed from CodeHeeler to bmbouter
Updated by bmbouter about 6 years ago
- Status changed from ASSIGNED to POST
The github.com/bmbouter/pulp_streamer/ master branch currently does this so I'm moving to POST.
We can move to MODIFIED once the repo is moved to the Pulp organization pending a bigger review/test.
Updated by bmbouter almost 6 years ago
PR available here: https://github.com/pulp/pulp/pull/3779
Added by bmbouter almost 6 years ago
Added by bmbouter almost 6 years ago
Revision 8219efd5 | View on GitHub
Adds the content app to pulpcore.content
The Settings can be a lot simpler now that the architecture no longer required redirection. It does need to account for the content being served on a different HOST. This PR handles that.
Since the settings are now single values, they are much easier to override using Dynaconf, which is great.
The content app can be removed now that the streamer code is handling it all.
This PR is a prototype and has no docs. Use Pulp as normal , but run the streamer from github.com/bmbouter/pulp_streamer/ and run the streamer with:
gunicorn pulpcore.streamer:server --bind localhost:8080 --worker-class aiohttp.GunicornWebWorker -w 2
This PR needs pulp-smash changes from pulp_file so it requires the PR below:
Required PR: https://github.com/pulp/pulp_file/pull/140
https://pulp.plan.io/issues/4239 closes #4239
https://pulp.plan.io/issues/3698 closes #3698
https://pulp.plan.io/issues/3699 closes #3699
Updated by bmbouter almost 6 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|8219efd59098fc5e883ea831d4fb38b7ae15422d.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Adds the content app to pulpcore.content
The Settings can be a lot simpler now that the architecture no longer required redirection. It does need to account for the content being served on a different HOST. This PR handles that.
Since the settings are now single values, they are much easier to override using Dynaconf, which is great.
The content app can be removed now that the streamer code is handling it all.
This PR is a prototype and has no docs. Use Pulp as normal , but run the streamer from github.com/bmbouter/pulp_streamer/ and run the streamer with:
gunicorn pulpcore.streamer:server --bind localhost:8080 --worker-class aiohttp.GunicornWebWorker -w 2
This PR needs pulp-smash changes from pulp_file so it requires the PR below:
Required PR: https://github.com/pulp/pulp_file/pull/140
https://pulp.plan.io/issues/4239 closes #4239
https://pulp.plan.io/issues/3698 closes #3698
https://pulp.plan.io/issues/3699 closes #3699
https://pulp.plan.io/issues/4181 closes #4181
https://pulp.plan.io/issues/4243 closes #4243