Project

Profile

Help

Issue #2104

Cannot sync repo from root of host

Added by bmbouter about 5 years ago. Updated over 2 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Consider this reproducer:

pulp-admin rpm repo create --repo-id zoo --feed http://localhost/

That will produce the following user visible error in pulp-admin

Value for [relative_url]  must be be a relative path: /zoo

Also this traceback is produced on the server side:

Causes this 500 error:
Jul 25 14:49:27 dev pulp[17151]: pulp.server.controllers.repository:ERROR: (17151-89792) Exception adding distributor to repo [zoo]; the repo will be deleted
Jul 25 14:49:27 dev pulp[17151]: pulp.server.controllers.repository:ERROR: (17151-89792) Traceback (most recent call last):
Jul 25 14:49:27 dev pulp[17151]: pulp.server.controllers.repository:ERROR: (17151-89792)   File "/home/vagrant/devel/pulp/server/pulp/server/controllers/repository.py", line 425, in create_repo
Jul 25 14:49:27 dev pulp[17151]: pulp.server.controllers.repository:ERROR: (17151-89792)     dist_controller.add_distributor(repo_id, type_id, plugin_config, auto_publish, dist_id)
Jul 25 14:49:27 dev pulp[17151]: pulp.server.controllers.repository:ERROR: (17151-89792)   File "/home/vagrant/devel/pulp/server/pulp/server/controllers/distributor.py", line 77, in add_distributor
Jul 25 14:49:27 dev pulp[17151]: pulp.server.controllers.repository:ERROR: (17151-89792)     raise exceptions.PulpDataException(message)
Jul 25 14:49:27 dev pulp[17151]: pulp.server.controllers.repository:ERROR: (17151-89792) PulpDataException: Value for [relative_url]  must be be a relative path: /zoo

History

#1 Updated by dkliban@redhat.com about 5 years ago

  • Triaged changed from No to Yes

The workaround in this case is to specify --relative-url argument when creating a repository with a --feed that is at the root of host.

#2 Updated by bmbouter over 2 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

#3 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF