Project

Profile

Help

Issue #5400

creating publication fails

Added by jaymzh 9 months ago. Updated 8 days ago.

Status:
CLOSED - WORKSFORME
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version - Python:
Platform Release:
Blocks Release:
Target Release - Python:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
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.

History

#1 Updated by gerrod 9 days ago

  • Status changed from NEW to CLOSED - WORKSFORME

Following the limited instructions OP posted I couldn't recreate the same issue. I found that the command OP used to create the publication was incorrect and would produce a different error (see below). The command is missing python/python/ in the repository href as so : http post :/pulp/api/v3/publications/python/pypi/ repository=/pulp/api/v3/repositories/python/python/2520d915-2928-4468-b568-b45abbacb5a7/

(pulp) [vagrant@pulp3-source-fedora31 pulp_python]$ http post :/pulp/api/v3/publications/python/pypi/ repository=/pulp/api/v3/repositories/2520d915-2928-4468-b568-b45abbacb5a7/
HTTP/1.1 400 Bad Request
Allow: GET, POST, HEAD, OPTIONS
Connection: keep-alive
Content-Length: 52
Content-Type: application/json
Date: Thu, 28 May 2020 17:24:44 GMT
Server: nginx/1.18.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "repository": [
        "Invalid hyperlink - No URL match."
    ]
}

#2 Updated by dalley 8 days ago

@jaymzh, We'll be doing a new Pulp 3 Python plugin beta for the first time in quite awhile by next week, hopefully it fixes a lot of issues that have accumulated.

Please register to edit this issue

Also available in: Atom PDF