Actions
Issue #2224
closedCannot sync from mirrorlists
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Master
Platform Release:
2.11.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 8
Quarter:
Description
$ pulp-admin -vv rpm repo create --repo-id mirror --feed "http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os" --relative-url mirror
2016-09-02 18:47:26,295 - DEBUG - sending POST request to /pulp/api/v2/repositories/
2016-09-02 18:47:27,464 - INFO - POST request to /pulp/api/v2/repositories/ with parameters {"display_name": null, "description": null, "distributors": [{"distributor_id": "yum_distributor", "auto_publish": true, "distributor_config": {"http": false, "relative_url": "mirror", "https": true}, "distributor_type_id": "yum_distributor"}, {"distributor_id": "export_distributor", "auto_publish": false, "distributor_config": {"http": false, "relative_url": "mirror", "https": true}, "distributor_type_id": "export_distributor"}], "notes": {"_repo-type": "rpm-repo"}, "importer_type_id": "yum_importer", "importer_config": {"feed": "http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os"}, "id": "mirror"}
2016-09-02 18:47:27,464 - INFO - Response status : 201
2016-09-02 18:47:27,464 - INFO - Response body :
{
"scratchpad": {},
"display_name": null,
"description": null,
"last_unit_added": null,
"notes": {
"_repo-type": "rpm-repo"
},
"last_unit_removed": null,
"content_unit_counts": {},
"_ns": "repos",
"_id": {
"$oid": "57c9ad1f45ef480c8e715874"
},
"id": "mirror",
"_href": "/pulp/api/v2/repositories/mirror/"
}
Successfully created repository [mirror]
$ pulp-admin rpm repo sync run --repo-id=mirror
+----------------------------------------------------------------------+
Synchronizing Repository [mirror]
+----------------------------------------------------------------------+
The following sync configuration options will be used:
This command may be exited via ctrl+c without affecting the request.
Downloading metadata...
[\]
... completed
Downloading repository content...
[-]
[==================================================] 100%
RPMs: 0/0 items
Delta RPMs: 0/0 items
... completed
Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
Errors encountered during distribution sync:
Importing errata...
[-]
... completed
Importing package groups/categories...
[-]
... completed
Cleaning duplicate packages...
[-]
... completed
Task Succeeded
I'm afraid this change broke the mirrorlist sync support https://github.com/pulp/pulp_rpm/commit/221e97797f093191101658114b48c49a45b2eeb5#diff-5185b3f1e5a02c40a5d198fe779c75fbL328
Actions
Fixes a bug that broke mirrorlist sync support.
https://pulp.plan.io/issues/2224 fixes #2224