Project

Profile

Help

Issue #4056

closed

module information missing from errata search api

Added by paji@redhat.com about 6 years ago. Updated over 5 years ago.

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

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 apiCLOSED - COMPLETErochacbrunoActions
Related to RPM Support - Issue #4477: Duplicated empty collections are published with subsequent sync/publish of modular errataCLOSED - CURRENTRELEASEttereshcActions
Actions #1

Updated by milan about 6 years 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": ""
                }
            ]
}
Actions #2

Updated by ttereshc about 6 years ago

  • Sprint set to Sprint 43

Added by milan about 6 years ago

Revision 045e9453 | View on GitHub

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

Actions #3

Updated by milan about 6 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by ttereshc about 6 years ago

  • Platform Release set to 2.18.0
Actions #5

Updated by milan about 6 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by ttereshc about 6 years ago

  • Sprint/Milestone set to 2.18.0
Actions #7

Updated by kersom about 6 years ago

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

Updated by ttereshc about 6 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by ttereshc almost 6 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #10

Updated by kersom over 5 years ago

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

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF