Project

Profile

Help

Issue #9587

manually upload rpm packages

Added by TiagodCC 13 days ago. Updated 6 days ago.

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

Description

Hello All

I am currently developing an Ansible playbook to upload custom RPM packages to specific pulp repositories. It uses the pulp.squeezer collection and some API calls. For this I have used the following documentations: https://docs.pulpproject.org/pulp_rpm/workflows/upload.html & https://docs.pulpproject.org/pulp_rpm/restapi.html#operation/

Following the upload of the file, the creation of rpm content and the association of the content with the desired repository, the change to the repository is published and distributed. However, when Pulp is invoked via the browser, it becomes apparent that the package is not displayed with the actual package name, but with its "location_href" from the metadata.

Below you can find a snippet from the metadata of one of the affected packages:

amsd x86_64 554b4534999d9e0b778c8c1825f1ae098fe858b36daeaa5ac7c38b81804ffb4a Agentless Management Service This package contains the helper daemon that provides information for iLO5 embedded health and alerting. Hewlett-Packard Enterprise http://www.hpe.com/go/proliantlinux MIT and BSD Hewlett-Packard Enterprise System Environment/Daemons ablrh7ex6416.sde.rdlabs.hpecorp.net amsd-2.5.0-1675.24.rhel8.src.rpm /sbin/smad_rev /sbin/smad /sbin/mr_cpqScsi_rev /sbin/mr_cpqScsi /sbin/cpqiScsi /sbin/cpqScsi_rev /sbin/cpqScsi /sbin/cpqIde_rev /sbin/cpqIde /sbin/cpqFca_rev /sbin/cpqFca /sbin/amsd_rev /sbin/amsd /sbin/ahslog /etc/sysconfig/smad_rev /etc/sysconfig/smad /etc/sysconfig/mr_cpqScsi_rev /etc/sysconfig/mr_cpqScsi /etc/sysconfig/cpqiScsi /etc/sysconfig/cpqScsi_rev /etc/sysconfig/cpqScsi /etc/sysconfig/cpqIde_rev /etc/sysconfig/cpqIde /etc/sysconfig/cpqFca_rev /etc/sysconfig/cpqFca /etc/sysconfig/amsd_rev /etc/sysconfig/amsd /etc/sysconfig/ahslog

The package is located at (as mentioned in the metadata). The desired place would look something like this:

The package can be found and installed via clients, but this makes it more difficult to understand. I unfortunately didn't find anything in the documentation about this.

I therefore wanted to ask what the reason for this is and how to fix it.

Thanks in advance for the answer.

History

#1 Updated by TiagodCC 6 days ago

To rule out an Ansible issue with displaying the location HREFs of self-uploaded packages, I uploaded a package to a repository using the pulp-cli commands below:

pulp artifact upload --file "amsd-2.3.1-1459.1.rhel7.x86_64.rpm" pulp rpm content create --sha256 "SHA256XXXXX" --relative-path "XXXXX" pulp rpm repository content add --repository "REPONAME" --package-href "/pulp/api/v3/content/rpm/packages/XXXXX" pulp rpm publication create --repository "REPONAME" pulp rpm distribution update --publication "/pulp/api/v3/publications/rpm/rpm/XXXXX/" --base-path "XXXXX" --name "XXXXX"

Here are the package information:

{ "pulp_href": "/pulp/api/v3/content/rpm/packages/XXXXX/", "pulp_created": "2021-12-02T10:29:09.270535Z", "sha256": "XXXXX", "name": "amsd", "epoch": "0", "version": "2.3.1", "release": "1459.1.rhel7", "arch": "x86_64", "checksum_type": "sha256", "summary": "Agentless Management Service", "description": "This package contains the helper daemon that provides information for iLO5\nembedded health and alerting.", "url": http://www.hpe.com/go/proliantlinux, "changelogs": [ [ "HP Linux Development 2.3.1-1459.1.rhel7", 1280318400, "- ENHANCEMENTS" ] ], "obsoletes": [], "suggests": [], "enhances": [], "recommends": [], "supplements": [], "location_base": "", "location_href": "fdf5a41c-7efb-4e77-b94b-dce447d706dc", "rpm_buildhost": "ablrh7ex6413.sde.rdlabs.hpecorp.net", "rpm_group": "System Environment/Daemons", "rpm_license": "MIT and BSD", "rpm_packager": "Hewlett-Packard Enterprise", "rpm_sourcerpm": "amsd-2.3.1-1459.1.rhel7.src.rpm", "rpm_vendor": "Hewlett-Packard Enterprise", "rpm_header_start": 872, "rpm_header_end": 52791, "is_modular": false, "size_archive": 6340864, "size_installed": 6333816, "size_package": 2901377, "time_build": 1616643775, "time_file": 1638440949 }

The package is still displayed as location HREF (in this case "fdf5a41c-7efb-4e77-b94b-dce447d706dc") in the web browser. Therefore, I assume that this behavior is not associated with the use of Ansible.

Please register to edit this issue

Also available in: Atom PDF