Project

Profile

Help

Issue #5516

closed

plugin managed repositories not found

Added by fao89 over 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 60
Quarter:

Description

When trying to get a plugin managed repository or its versions:

(pulp) [vagrant@pulp3-source-fedora30 pulp_rpm]$ http  http://localhost:24817/pulp/api/v3/repositories/be8dd773-9215-4430-908f-70b642a36b17/ 
HTTP/1.1 404 Not Found                                                                         
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS                                                  
Connection: close                                                                              
Content-Length: 23                                                                             
Content-Type: application/json                                                                 
Date: Mon, 30 Sep 2019 20:13:42 GMT                                                            
Server: gunicorn/19.9.0                                                                        
Vary: Accept, Cookie                                                                           
X-Frame-Options: SAMEORIGIN                                                                    

{                                                                                              
    "detail": "Not found."                                                                     
}                         
(pulp) [vagrant@pulp3-source-fedora30 pulp_rpm]$ http http://localhost:24817/pulp/api/v3/repositories/be8dd773-9215-4430-908f-70b642a36b17/versions/1/
HTTP/1.1 404 Not Found
Allow: GET, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 23
Content-Type: application/json
Date: Mon, 30 Sep 2019 20:10:41 GMT
Server: gunicorn/19.9.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "detail": "Not found."
}

But the repository exists:

Python 3.7.3 (default, Mar 27 2019, 13:36:35) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: RepositoryVersion                      
Out[1]: pulpcore.app.models.repository.RepositoryVersion

In [2]: RepositoryVersion.objects.all()        
Out[2]: <QuerySet [<Repository: cbab8000-4ebf-465c-8498-4c0c0bcb761e; Version: 1>, <Repository: ../../../AppStream/x86_64/kickstart/-196467645ecee245f5a523e68f42e14b38140ba5e76d6a1bf912f35aa
4f4face; Version: 1>]>

In [3]: RepositoryVersion.objects.all()[1].pk  
Out[3]: UUID('a2d61439-5251-4fdf-a778-b0d3dd3a065a')

In [4]: RepositoryVersion.objects.all()[1].repository.pk                                       
Out[4]: UUID('be8dd773-9215-4430-908f-70b642a36b17')
Actions #1

Updated by fao89 over 4 years ago

  • Status changed from NEW to POST
  • Assignee set to fao89
Actions #2

Updated by fao89 over 4 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 60
Actions #3

Updated by daviddavis over 4 years ago

So after discussions with jsherrill, ttereshc, and bmbouter, we have decided to have core hide plugin_managed repos. Instead, it will be up to plugins to expose these repos.

Filing an issue for kickstart repos: https://pulp.plan.io/issues/5556

Added by Fabricio Aguiar over 4 years ago

Revision bb324bea | View on GitHub

removing plugin_managed repository filter

closes #5516 https://pulp.plan.io/issues/5516

Added by Fabricio Aguiar over 4 years ago

Revision 82bce8e8 | View on GitHub

Removing repository from Addon/Variant serializers

ref #5516 https://pulp.plan.io/issues/5516

Actions #4

Updated by Anonymous over 4 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by bmbouter over 4 years ago

  • Sprint/Milestone set to 3.0.0
Actions #6

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF