Project

Profile

Help

Issue #5516

plugin managed repositories not found

Added by fabricio.aguiar 6 months ago. Updated 4 months ago.

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

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')

Associated revisions

Revision bb324bea View on GitHub
Added by Fabricio Aguiar 6 months ago

removing plugin_managed repository filter

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

Revision 82bce8e8 View on GitHub
Added by Fabricio Aguiar 6 months ago

Removing repository from Addon/Variant serializers

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

History

#1 Updated by fabricio.aguiar 6 months ago

  • Status changed from NEW to POST
  • Assignee set to fabricio.aguiar

#2 Updated by fabricio.aguiar 6 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 60

#3 Updated by daviddavis 6 months 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

#4 Updated by Anonymous 6 months ago

  • Status changed from POST to MODIFIED

#5 Updated by bmbouter 4 months ago

  • Sprint/Milestone set to 3.0.0

#6 Updated by bmbouter 4 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF