Project

Profile

Help

Issue #2754

closed

RPM uploads appear to be missing metadata information

Added by daviddavis almost 7 years ago. Updated about 5 years ago.

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

Description

Specifically, the fields Size, Summary, Source RPM, and Group appear to be missing.

Steps:

$ wget ftp://195.220.108.108/linux/fedora-secondary/development/rawhide/Everything/aarch64/os/Packages/v/vim-enhanced-8.0.596-1.fc27.aarch64.rpm
$ rpm -qip vim-enhanced-8.0.596-1.fc27.aarch64.rpm
...
Group       : Applications/Editors
Size        : 3028853
...
Source RPM  : vim-8.0.596-1.fc27.src.rpm
...
Summary     : A version of the VIM editor which includes recent enhancements
...
$ pulp-admin rpm repo uploads rpm --file vim-enhanced-8.0.596-1.fc27.aarch64.rpm --repo-id zoo
$ phttp https://localhost/pulp/api/v2/repositories/zoo/search/units/ criteria:='{"fields": {"unit": ["name", "summary", "size", "group", "sourcerpm"]}, "type_ids": ["rpm"], "filters": {"unit": {"name"
: "vim-enhanced"}}}'                                                                                                                                                                                             
[
    {
        "_id": {
            "$oid": "5915aac507425414f84ec276"
        },
        "created": "2017-05-12T12:29:57Z",
        "metadata": {
            "_content_type_id": "rpm",
            "_id": "939240d9-2071-451d-8749-c10cac057f31",
            "name": "vim-enhanced"
        },
        "repo_id": "zoo",
        "unit_id": "939240d9-2071-451d-8749-c10cac057f31",
        "unit_type_id": "rpm",
        "updated": "2017-05-12T12:29:57Z"
    }
]

I checked the database too and the fields aren't there.

Since this is also a Katello issue, we should notify them if they need to be setting particular metadata fields on their import upload request too.

Also available in: Atom PDF