Issue #9587
closedmanually upload rpm packages
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:
<package type="rpm">
<name>amsd</name>
<arch>x86_64</arch>
<version epoch="0" ver="2.5.0" rel="1675.24.rhel8"/>
<checksum type="sha256" pkgid="YES">554b4534999d9e0b778c8c1825f1ae098fe858b36daeaa5ac7c38b81804ffb4a</checksum>
<summary>Agentless Management Service</summary>
<description>This package contains the helper daemon that provides information for iLO5
embedded health and alerting.</description>
<packager>Hewlett-Packard Enterprise</packager>
<url>http://www.hpe.com/go/proliantlinux</url>
<time file="1637837726" build="1630381441"/>
<size package="3026011" installed="8620992" archive="8632796"/>
<location href="Packages/f/fcbdc174-f1f4-4277-8913-3e2ce843e028"/>
<format>
<rpm:license>MIT and BSD</rpm:license>
<rpm:vendor>Hewlett-Packard Enterprise</rpm:vendor>
<rpm:group>System Environment/Daemons</rpm:group>
<rpm:buildhost>ablrh7ex6416.sde.rdlabs.hpecorp.net</rpm:buildhost>
<rpm:sourcerpm>amsd-2.5.0-1675.24.rhel8.src.rpm</rpm:sourcerpm>
<rpm:header-range start="872" end="55032"/>
<rpm:provides>
<rpm:entry name="config(amsd)" flags="EQ" epoch="0" ver="2.5.0" rel="1675.24.rhel8"/>
<rpm:entry name="amsd(x86-64)" flags="EQ" epoch="0" ver="2.5.0" rel="1675.24.rhel8"/>
<rpm:entry name="amsd" flags="EQ" epoch="0" ver="2.5.0" rel="1675.24.rhel8"/>
</rpm:provides>
<rpm:requires>
<rpm:entry name="libc.so.6(GLIBC_2.17)(64bit)"/>
<rpm:entry name="/bin/sh"/>
<rpm:entry name="/bin/sh" pre="1"/>
<rpm:entry name="systemd"/>
<rpm:entry name="rtld(GNU_HASH)"/>
<rpm:entry name="pciutils"/>
<rpm:entry name="lsof"/>
<rpm:entry name="libsystemd.so.0(LIBSYSTEMD_209)(64bit)"/>
<rpm:entry name="libsystemd.so.0()(64bit)"/>
<rpm:entry name="libstdc++.so.6(GLIBCXX_3.4.21)(64bit)"/>
<rpm:entry name="libstdc++.so.6(GLIBCXX_3.4.20)(64bit)"/>
<rpm:entry name="libstdc++.so.6(GLIBCXX_3.4)(64bit)"/>
<rpm:entry name="libstdc++.so.6(CXXABI_1.3)(64bit)"/>
<rpm:entry name="libstdc++.so.6()(64bit)"/>
<rpm:entry name="librt.so.1(GLIBC_2.2.5)(64bit)"/>
<rpm:entry name="librt.so.1()(64bit)"/>
<rpm:entry name="librpmio.so.8()(64bit)"/>
<rpm:entry name="librpm.so.8()(64bit)"/>
<rpm:entry name="libpthread.so.0(GLIBC_2.2.5)(64bit)"/>
<rpm:entry name="libpthread.so.0()(64bit)"/>
<rpm:entry name="libm.so.6(GLIBC_2.2.5)(64bit)"/>
<rpm:entry name="libm.so.6()(64bit)"/>
<rpm:entry name="libjson-c.so.4()(64bit)"/>
<rpm:entry name="libgcc_s.so.1(GCC_3.0)(64bit)"/>
<rpm:entry name="libgcc_s.so.1()(64bit)"/>
<rpm:entry name="libdl.so.2(GLIBC_2.2.5)(64bit)"/>
<rpm:entry name="libdl.so.2()(64bit)"/>
<rpm:entry name="coreutils"/>
<rpm:entry name="bash"/>
<rpm:entry name="/bin/sh"/>
</rpm:requires>
<rpm:conflicts>
<rpm:entry name="hp-ams"/>
</rpm:conflicts>
<file>/sbin/smad_rev</file>
<file>/sbin/smad</file>
<file>/sbin/mr_cpqScsi_rev</file>
<file>/sbin/mr_cpqScsi</file>
<file>/sbin/cpqiScsi</file>
<file>/sbin/cpqScsi_rev</file>
<file>/sbin/cpqScsi</file>
<file>/sbin/cpqIde_rev</file>
<file>/sbin/cpqIde</file>
<file>/sbin/cpqFca_rev</file>
<file>/sbin/cpqFca</file>
<file>/sbin/amsd_rev</file>
<file>/sbin/amsd</file>
<file>/sbin/ahslog</file>
<file>/etc/sysconfig/smad_rev</file>
<file>/etc/sysconfig/smad</file>
<file>/etc/sysconfig/mr_cpqScsi_rev</file>
<file>/etc/sysconfig/mr_cpqScsi</file>
<file>/etc/sysconfig/cpqiScsi</file>
<file>/etc/sysconfig/cpqScsi_rev</file>
<file>/etc/sysconfig/cpqScsi</file>
<file>/etc/sysconfig/cpqIde_rev</file>
<file>/etc/sysconfig/cpqIde</file>
<file>/etc/sysconfig/cpqFca_rev</file>
<file>/etc/sysconfig/cpqFca</file>
<file>/etc/sysconfig/amsd_rev</file>
<file>/etc/sysconfig/amsd</file>
<file>/etc/sysconfig/ahslog</file>
</format>
</package>
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.
Related issues