Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
/ pulp Public archive

ref #1195 - Implement the pulp-streamer. #2065

Merged
merged 1 commit into from
Oct 7, 2015

Conversation

jeremycline
Copy link
Contributor

This commit adds the 'lazy' module inside of pulp.server.
It also adds streamer settings to Pulp's server.conf.

@jeremycline
Copy link
Contributor Author

This is very bare-bones right now since the things left to do depend on the incoming URL format which is not clear to me yet, the catalog, and the pulp task to dispatch upon completion.

@jortel
Copy link
Contributor

jortel commented Oct 7, 2015

General comment: Linux configuration files traditionally don't contain '_'. I know we do this in pulp (which I find annoying and odd) so I guess it's best to follow pulp convention. Just complaining, I guess.

# redirect_path: /streamer/
# streamer_port: 8751
# streamer_interfaces: localhost
# streamer_cache_timeout: 86400
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of namespacing with streamer_, consider:

[streamer]
interfaces: localhost
port: 8751
cache_timeout: 86400

mock_repo_controller.get_importer_by_id.assert_called_once_with(mock_catalog.plugin_id)

# Validate building and invoking the downloader
mock_importer.get_downloader.assert_called_once_with(mock_config, mock_catalog.url, k='v')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line length.

@jortel
Copy link
Contributor

jortel commented Oct 7, 2015

Looks good overall but would like to discuss Streamer._download().

@@ -94,6 +94,9 @@
'redirect_host': '',
'redirect_port': '',
'redirect_path': '',
'streamer_port': '8751',
'streamer_interfaces': 'localhost',
'streamer_cache_timeout': '86400',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as other comment. consider separate section.

This commit adds the 'lazy' module inside of pulp.server.
It also adds streamer settings to Pulp's server.conf.
jeremycline added a commit that referenced this pull request Oct 7, 2015
ref #1195 - Implement the pulp-streamer.
@jeremycline jeremycline merged commit 9b0436a into pulp:lazy-content Oct 7, 2015
@jeremycline jeremycline deleted the task-1195 branch April 14, 2016 14:13
parthaa added a commit to parthaa/pulp that referenced this pull request Jul 6, 2016
Fixed a bug that caused the wrong repo destination path to be verified on a
ostree pull.

Look at https://pulp.plan.io/issues/2065 for more info
parthaa added a commit to parthaa/pulp that referenced this pull request Jul 6, 2016
Fixed a bug that caused the wrong repo destination path to be verified on a
ostree pull.

Look at https://pulp.plan.io/issues/2065 for more info
parthaa added a commit to parthaa/pulp that referenced this pull request Jul 6, 2016
Fixed a bug that caused the wrong repo destination path to be verified on a
ostree pull.

Look at https://pulp.plan.io/issues/2065 for more info
parthaa added a commit to parthaa/pulp that referenced this pull request Jul 6, 2016
Fixed a bug that caused the wrong repo destination path to be verified on a
ostree pull.

Look at https://pulp.plan.io/issues/2065 for more info
jeremycline pushed a commit to jeremycline/pulp that referenced this pull request Jul 8, 2016
Fixed a bug that caused the wrong repo destination path to be verified on a
ostree pull.

Look at https://pulp.plan.io/issues/2065 for more info
jeremycline added a commit to jeremycline/pulp that referenced this pull request Jul 8, 2016
The prefix stripping method used in the oid_validator failed if the
prefix was _not_ found in the path. This fixes that particular issue,
improves readability, and adds a unit test.

fixes pulp#2065
jeremycline added a commit to jeremycline/pulp that referenced this pull request Jul 11, 2016
The prefix stripping method used in the oid_validator failed if the
prefix was _not_ found in the path. This fixes that particular issue,
improves readability, and adds a unit test.

fixes pulp#2065
jeremycline pushed a commit to jeremycline/pulp that referenced this pull request Jul 11, 2016
Fixed a bug that caused the wrong repo destination path to be verified on a
ostree pull.

Look at https://pulp.plan.io/issues/2065 for more info
jeremycline added a commit to jeremycline/pulp that referenced this pull request Jul 11, 2016
The prefix stripping method used in the oid_validator failed if the
prefix was _not_ found in the path. This fixes that particular issue,
improves readability, and adds a unit test.

fixes pulp#2065
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants