pulp / pulp_python

A Pulp plugin to support Python packages
GNU General Public License v2.0
37 stars 77 forks source link

pulp to pulp syncs fail with 405 on /pypi #462

Closed jlsherrill closed 2 years ago

jlsherrill commented 3 years ago

Trying to sync one pulp server from another (or even one remote from another on the same instance), results in a 405 when accessing /pypi

"POST /pulp/content/Default_Organization/Library/custom/python/python2/pypi HTTP/1.1" 405 226 "-" "bandersnatch 4.4.0 aiohttp XML-RPC client

The sync doesn't error, but no content is synced

gerrod3 commented 3 years ago

Pulp to Pulp sync is still in tech preview and currently you can't fully sync from another Pulp instance without specifying the includes list. Behind the scenes Bandersnatch uses xmlrpc calls to get the full package list from the remote (typically PyPI), but we don't support the xmlrpc endpoints currently. I haven't looked into how difficult it would be to actually support them, but there are other options like parsing the simple pages for packages present. Here is the note about the current implementation: https://github.com/pulp/pulp_python/blob/47f22a313afa6616b6a21432f31ba148ebff5884/pulp_python/app/tasks/sync.py#L191-L195

jlsherrill commented 3 years ago

ah, interesting, thanks for the update!