https://pulp.plan.io/https://pulp.plan.io/favicon.ico2017-05-30T14:36:57ZPulpRPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=199332017-05-30T14:36:57Zttereshcttereshc@redhat.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=200132017-06-03T11:31:22Zttereshcttereshc@redhat.com
<ul><li><strong>Sprint Candidate</strong> changed from <i>No</i> to <i>Yes</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=226982017-11-02T20:01:12ZIchimonji10jerebear@protonmail.com
<ul></ul><p>According to this issue, if one uploads an RPM with vendor metadata to Pulp, then that vendor metadata is available. As far as I can tell, that's not true. If I upload an RPM with vendor metadata to Pulp, then that vendor metadata is <strong>not</strong> available. This can be demonstrated with a simple script:</p>
<pre><code class="bash syntaxhl" data-language="bash">pulp-admin rpm repo create <span class="nt">--repo-id</span> foo
wget <span class="s1">'https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-vendor/rpm-with-vendor-1-1.fc25.noarch.rpm'</span>
pulp-admin rpm repo uploads rpm <span class="nt">--repo-id</span> foo <span class="nt">--file</span> rpm-with-vendor-1-1.fc25.noarch.rpm
pulp-admin rpm repo content rpm <span class="nt">--repo-id</span> foo <span class="nt">--str-eq</span> <span class="s1">'vendor=Pulp Fixtures'</span>
pulp-admin rpm repo content rpm <span class="nt">--repo-id</span> foo <span class="nt">--str-eq</span> <span class="s1">'license=Public Domain'</span>
</code></pre>
<p>Here's some console output from when running the searches:</p>
<pre><code>$ pulp-admin rpm repo content rpm --repo-id foo --str-eq 'vendor=Pulp Fixtures'
$ pulp-admin rpm repo content rpm --repo-id foo --str-eq 'license=Public Domain'
Arch: noarch
Buildhost: host-172-16-46-37.openstacklocaldocker-np-ci-rhos-20022.localdo
Checksum: 2f69f4bf6958d4c2281888cdf9df85d87f0117e39ff997c67ec4336d184d25b6
Checksumtype: sha256
Description: This RPM has a vendor
Epoch: 0
Filename: rpm-with-vendor-1-1.fc25.noarch.rpm
License: Public Domain
Name: rpm-with-vendor
Provides: rpm-with-vendor = 1-1.fc25-0
Release: 1.fc25
Requires:
Version: 1
</code></pre>
<p>If I reset Pulp and run a script with a feed URL, the same thing happens:</p>
<pre><code class="bash syntaxhl" data-language="bash">pulp-admin rpm repo create <span class="nt">--repo-id</span> bar <span class="nt">--feed</span> <span class="s1">'https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-vendor/'</span>
pulp-admin rpm repo <span class="nb">sync </span>run <span class="nt">--repo-id</span> bar
pulp-admin rpm repo content rpm <span class="nt">--repo-id</span> bar <span class="nt">--str-eq</span> <span class="s1">'vendor=Pulp Fixtures'</span>
pulp-admin rpm repo content rpm <span class="nt">--repo-id</span> bar <span class="nt">--str-eq</span> <span class="s1">'license=Public Domain'</span>
</code></pre>
<p>Here's some console output from when running the searches:</p>
<pre><code>$ pulp-admin rpm repo content rpm --repo-id bar --str-eq 'vendor=Pulp Fixtures'
$ pulp-admin rpm repo content rpm --repo-id bar --str-eq 'license=Public Domain'
Arch: noarch
Buildhost: host-172-16-46-37.openstacklocaldocker-np-ci-rhos-20022.localdo
Checksum: 2f69f4bf6958d4c2281888cdf9df85d87f0117e39ff997c67ec4336d184d25b6
Checksumtype: sha256
Description: This RPM has a vendor
Epoch: 0
Filename: rpm-with-vendor-1-1.fc25.noarch.rpm
License: Public Domain
Name: rpm-with-vendor
Provides: rpm-with-vendor = 1-1.fc25-0
Release: 1.fc25
Requires:
Version: 1
</code></pre>
<p>This behaviour is consistent for Pulp 2.14 and master (2.15). Here's the packages installed on one of my test systems:</p>
<pre><code>[root@rhel-7-pulp-2-14 ~]# rpm -qa | grep pulp | sort
pulp-admin-client-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
pulp-docker-admin-extensions-3.0.3-0.1.alpha.git.13.1abca9e.el7.noarch
pulp-docker-plugins-3.0.3-0.1.alpha.git.13.1abca9e.el7.noarch
pulp-ostree-admin-extensions-1.3.1-0.1.alpha.git.7.f22fcec.el7.noarch
pulp-ostree-plugins-1.3.1-0.1.alpha.git.7.f22fcec.el7.noarch
pulp-puppet-admin-extensions-2.14.3-0.1.alpha.git.7.c75cc6e.el7.noarch
pulp-puppet-plugins-2.14.3-0.1.alpha.git.7.c75cc6e.el7.noarch
pulp-python-admin-extensions-2.0.3-0.1.alpha.git.6.8ffc1e8.el7.noarch
pulp-python-plugins-2.0.3-0.1.alpha.git.6.8ffc1e8.el7.noarch
pulp-rpm-admin-extensions-2.14.3-0.1.alpha.git.6.8d330c9.el7.noarch
pulp-rpm-plugins-2.14.3-0.1.alpha.git.6.8d330c9.el7.noarch
pulp-selinux-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
pulp-server-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-kombu-3.0.33-8.pulp.el7.noarch
python-pulp-bindings-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
python-pulp-client-lib-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
python-pulp-common-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
python-pulp-docker-common-3.0.3-0.1.alpha.git.13.1abca9e.el7.noarch
python-pulp-oid_validation-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
python-pulp-ostree-common-1.3.1-0.1.alpha.git.7.f22fcec.el7.noarch
python-pulp-puppet-common-2.14.3-0.1.alpha.git.7.c75cc6e.el7.noarch
python-pulp-python-common-2.0.3-0.1.alpha.git.6.8ffc1e8.el7.noarch
python-pulp-repoauth-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
python-pulp-rpm-common-2.14.3-0.1.alpha.git.6.8d330c9.el7.noarch
python-pulp-streamer-2.14.3-0.1.alpha.git.14.0437abb.el7.noarch
</code></pre>
<p><code>systemctl status</code> doesn't show anything unusual.</p> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=227412017-11-04T01:17:22Zttereshcttereshc@redhat.com
<ul></ul><p>Interesting catch :)</p>
<p>I believe <a href="https://github.com/pulp/pulp_rpm/commit/62db898a81679b40e3cc3a48af9f3b830f4521cb" class="external">this commit</a> which landed in 2.14.0 introduced the change of the upload behavior. Upload now works in the same way as sync does. That explains why you no longer can see the vendor field for uploaded RPMs. Before that change upload implementation of parsing rpm metadata was custom and vendor field was imported and saved in DB. So my expectation is that if you try to upload rpm with vendor data using Pulp 2.13, you'll see it.</p>
<p>I'm not sure how to treat it. Is it a regression since Pulp 2.14.0? The feature itself (having vendor information in Pulp) has never been fully implemented (only upload worked this way) and thus it was almost not possible to use it.</p>
<p>Thoughts?</p> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=295972018-07-18T14:36:24Zdkliban@redhat.com
<ul><li><strong>Sprint</strong> set to <i>Sprint 40</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=296212018-07-19T02:15:25Zdalleydalley@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>ASSIGNED</i></li><li><strong>Assignee</strong> set to <i>dalley</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=296262018-07-19T12:56:10Zdalleydalley@redhat.com
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>POST</i></li></ul><p>PR: <a href="https://github.com/pulp/pulp_rpm/pull/1138" class="external">https://github.com/pulp/pulp_rpm/pull/1138</a></p> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=296272018-07-19T13:23:34Zdalleydalley@redhat.com
<ul><li><strong>Status</strong> changed from <i>POST</i> to <i>MODIFIED</i></li></ul><p>Applied in changeset <a class="changeset" title="Fix missing vendor metadata closes #2781 https://pulp.plan.io/issues/2781" href="https://pulp.plan.io/projects/pulp_rpm/repository/9/revisions/b10573314e28f34f68bfd7e8289f0083acf9e431">b10573314e28f34f68bfd7e8289f0083acf9e431</a>.</p> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=296912018-07-24T13:30:07Zdalleydalley@redhat.com
<ul><li><strong>Platform Release</strong> set to <i>2.17.0</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=299342018-08-07T16:14:24Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Sprint/Milestone</strong> set to <i>2.17.0</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=299562018-08-07T16:31:16Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Platform Release</strong> changed from <i>2.17.0</i> to <i>master</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=299812018-08-07T16:31:55Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Platform Release</strong> deleted (<del><i>master</i></del>)</li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=300062018-08-07T16:36:43Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Platform Release</strong> set to <i>2.17.0</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=301382018-08-14T21:17:20Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>5</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=301842018-08-16T13:16:42Zdalleydalley@redhat.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-11 priority-6 priority-default closed" href="/issues/3924">Task #3924</a>: Add a migration for the "vendor" field</i> added</li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=304732018-08-31T20:45:03Zipanova@redhat.comipanova@redhat.com
<ul><li><strong>Status</strong> changed from <i>5</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=382602019-04-15T20:17:55Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul> RPM Support - Issue #2781: Vendor field is present in db if RPM is uploaded, it is missed in case of synchttps://pulp.plan.io/issues/2781?journal_id=782982022-01-11T17:18:15Zttereshcttereshc@redhat.com
<ul><li><strong>Sprint/Milestone</strong> deleted (<del><i>2.17.0</i></del>)</li></ul>