Project

Profile

Help

Issue #4056

module information missing from errata search api

Added by paji@redhat.com about 1 year ago. Updated 7 months ago.

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

Description

  • create & sync a rpm repo with feed pointing to https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-modules
  • Notice that the update info has an errata with some modules in it.
  • Run the following. Replace 77f1e927-1286-4b8d-8e64-c88e8911e094 with your repo id
    $ curl -i -k -u admin:admin  -H "Content-Type: application/json" -X POST -d '{"criteria": {"type_ids":["erratum"]}}' https://localhost/pulp/api/v2/repositories/77f1e927-1286-4b8d-8e64-c88e8911e094/search/units/ 
    

Notice that module information is missing from here. This is essential for indexing content in katello.

$ rpm -qa|grep pulp
python-pulp-deb-common-1.8.0-0.3.beta.el7.noarch
python-pulp-bindings-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-selinux-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-puppet-admin-extensions-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
python-pulp-puppet-common-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-nodes-admin-extensions-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
rubygem-smart_proxy_pulp-1.3.0-1.el7.noarch
python-pulp-ostree-common-1.3.1-0.1.beta.el7.noarch
pulp-deb-plugins-1.8.0-0.3.beta.el7.noarch
python-pulp-docker-common-3.3.0-0.1.beta.git.93.d98e730.el7.noarch
python-pulp-client-lib-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-nodes-common-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-puppet-plugins-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-rpm-admin-extensions-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-python-admin-extensions-2.0.3-1.el7.noarch
pulp-deb-admin-extensions-1.8.0-0.3.beta.el7.noarch
python-pulp-repoauth-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
python-pulp-oid_validation-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-server-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-rpm-plugins-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-docker-admin-extensions-3.3.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-katello-1.0.2-1.el7.noarch
python-pulp-python-common-2.0.3-1.el7.noarch
pulp-ostree-plugins-1.3.1-0.1.beta.el7.noarch
pulp-ostree-admin-extensions-1.3.1-0.1.beta.el7.noarch
python-pulp-rpm-common-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-docker-plugins-3.3.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-client-1.0-1.noarch
python-pulp-common-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
pulp-admin-client-2.18.0-0.1.beta.git.93.d98e730.el7.noarch
python-pulp-streamer-2.18.0-0.1.beta.git.93.d98e730.el7.noarch

Related issues

Related to Pulp - Test #4112: Verify module information on errata search api CLOSED - COMPLETE Actions
Related to RPM Support - Issue #4477: Duplicated empty collections are published with subsequent sync/publish of modular errata CLOSED - CURRENTRELEASE Actions

Associated revisions

Revision 045e9453 View on GitHub
Added by milan about 1 year ago

Expose module info thru the Errata serializer

The Errata serializer used Errata.get_unique_pkglists() that wouldn't
provide module data due to aggregation.
This patch introduces a custom aggregation in the Errata serializer that
provides the module data.

Fixes: #4056
https://pulp.plan.io/issues/4056

History

#1 Updated by milan about 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to milan

Just reproduced with a repo feed from: https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-modules/ ; no module info shown:


{                                                                                                                                                                                                    [218/1642]
        "_id": {                                                                                                                                                                                                   
            "$oid": "5bb4aaecfd5dad3919a46045"                                                                                                                                                                     
        },                                                                                                                                                                                                         
        "created": "2018-10-03T11:41:32Z",                                                                                                                                                                         
        "metadata": {                                                                                                                                                                                              
            "_content_type_id": "erratum",                                                                                                                                                                         
            "_id": "897fbf94-05cc-4c4d-ac4c-331ea81d7c67",                                                                                                                                                         
            "_last_updated": 1538566892,                                                                                                                                                                           
            "_ns": "units_erratum",                                                                                                                                                                                
            "description": "Duck_Kangaro_Erratum description",                                                                                                                                                     
            "from": "errata@redhat.com",                                                                                                                                                                           
            "id": "RHEA-2012:0059",                                                                                                                                                                                
            "issued": "2018-01-27 16:08:09",                                                                                                                                                                       
            "pkglist": [                                                                                                                                                                                           
                {                                                                                                                                                                                                  
                    "name": "collection-0",                                                                                                                                                                        
                    "packages": [                                                                                                                                                                                  
                        {                                                                                                                                                                                          
                            "arch": "noarch",                                                                                                                                                                      
                            "epoch": null,                                                                                                                                                                         
                            "filename": "kangaroo-0.3-1.noarch.rpm",                                                                                                                                               
                            "name": "kangaroo",                                                                                                                                                                    
                            "release": "1",                                                                                                                                                                        
                            "src": "http://www.fedoraproject.org",                                                                                                                                                 
                            "sum": null,                                                                                                                                                                           
                            "version": "0.3"                                                                                                                                                                       
                        }                                                                                                                                                                                          
                    ],                                                                                                                                                                                             
                    "short": ""                                                                                                                                                                                    
                },                                                                                                                                                                                                 
                {                                                                                                                                                                                                  
                    "name": "collection-1",                                                                                                                                                                        
                    "packages": [                                                                                                                                                                                  
                        {                                                                                                                                                                                          
                            "arch": "noarch",                                                                                                                                                                      
                            "epoch": null,                                                                                                                                                                         
                            "filename": "duck-0.7-1.noarch.rpm",                                                                                                                                                   
                            "name": "duck",                                                                                                                                                                        
                            "release": "1",                                                                                                                                                                        
                            "src": "http://www.fedoraproject.org",                                                                                                                                                 
                            "sum": null,
                            "version": "0.7" 
                        }
                    ],
                    "short": "" 
                }
            ]
}

#2 Updated by ttereshc about 1 year ago

  • Sprint set to Sprint 43

#3 Updated by milan about 1 year ago

  • Status changed from ASSIGNED to POST

#4 Updated by ttereshc about 1 year ago

  • Platform Release set to 2.18.0

#5 Updated by milan about 1 year ago

  • Status changed from POST to MODIFIED

#6 Updated by ttereshc about 1 year ago

  • Sprint/Milestone set to 2.18.0

#7 Updated by kersom about 1 year ago

  • Related to Test #4112: Verify module information on errata search api added

#8 Updated by ttereshc 12 months ago

  • Status changed from MODIFIED to ON_QA

#9 Updated by ttereshc 11 months ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

#10 Updated by kersom 9 months ago

  • Related to Issue #4477: Duplicated empty collections are published with subsequent sync/publish of modular errata added

#11 Updated by bmbouter 7 months ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF