Project

Profile

Help

Issue #5400

creating publication fails

Added by jaymzh about 2 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version - Python:
Platform Release:
Blocks Release:
Target Release - Python:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

I created a python repo and uploaded a single pip to it.

I then put that content into a repository which worked, and I think tried to create a publicaiton:

$ http post $pulp/pulp/api/v3/publications/python/pypi/ repository=/pulp/api/v3/repositories/6c635fe8-616d-41d9-b69b-27c682dbe6b9/

but the resulting task failed with:

"description": "[Errno 36] File name too long: \"simple/[{'name': 'development status :: 3 - alpha'}, {'name': 'intended audience :: developers'}, {'name': 'topic :: software development :: libraries :: python modules'}, {'name': 'license :: osi approved :: mit license'}, {'name': 'programming language :: python :: 2'}, {'name': 'programming language :: python :: 2-6'}, {'name': 'programming language :: python :: 2-7'}, {'name': 'programming language :: python :: 3'}, {'name': 'programming language :: python :: 3-3'}, {'name': 'programming language :: python :: 3-4'}, {'name': 'programming language :: python :: 3-5'}, {'name': 'programming language :: python :: 3-6'}]/\"",
"traceback": " File \"/var/pulp/pulpvenv/lib/python3.6/site-packages/rq/worker.py\", line 822, in perform_job\n rv = job.perform()\n File \"/var/pulp/pulpvenv/lib/python3.6/site-packages/rq/job.py\", line 605, in perform\n self._result = self._execute()\n File \"/var/pulp/pulpvenv/lib/python3.6/site-packages/rq/job.py\", line 611, in _execute\n return self.func(*self.args, **self.kwargs)\n File \"/var/pulp/pulpvenv/lib/python3.6/site-packages/pulp_python/app/tasks/publish.py\", line 65, in publish\n write_simple_api(publication)\n File \"/var/pulp/pulpvenv/lib/python3.6/site-packages/pulp_python/app/tasks/publish.py\", line 112, in write_simple_api\n os.mkdir(project_dir)\n"
},

Further, if I use `repository_version` instead, the task fails the same way.

Please register to edit this issue

Also available in: Atom PDF