Pulp: Issueshttps://pulp.plan.io/https://pulp.plan.io/favicon.ico2021-07-09T14:43:26ZPulp
Planio RPM Support - Issue #9055 (CLOSED - CURRENTRELEASE): package group pulls in newer version of packagehttps://pulp.plan.io/issues/90552021-07-09T14:43:26Zquartsize
<p>I have a package exclusion filter in Katello to reject newer kernels for which I don't yet have compatible versions of out-of-tree modules, but I end up with the latest versions of the perf and kernel-tools packages because they are listed in the @performance and @core package groups, respectively.</p>
<p>So I'd like to propose that package groups only cause a package to be added if some version of the package wasn't already requested. I'm working on a patch.</p>
<p>I will also say, FWIW, that I wasn't expecting these sort of additions to be processed without depsolving enabled, such that my initial line of investigation started with the assumption that I must be accidentally enabling it somehow.</p> RPM Support - Issue #8287 (CLOSED - WORKSFORME): Rhel8 remote redhat repo showing Malformed repos...https://pulp.plan.io/issues/82872021-02-22T07:42:32Zmidhuhk
<p>Remote repo:
appstream-rhel8</p>
<p>data": {
"reason": "metadata is missing for some packages in filelists.xml and in other.xml"
},
"description": "Malformed repository: metadata is missing for some packages in filelists.xml and in other.xml",</p> RPM Support - Issue #8223 (CLOSED - CURRENTRELEASE): Remove # coding=utf-8 from our testshttps://pulp.plan.io/issues/82232021-02-08T16:35:49Zggainey
<p>Python3 defaults to utf8 now.</p> RPM Support - Issue #8009 (CLOSED - CURRENTRELEASE): Documentation Issuehttps://pulp.plan.io/issues/80092020-12-18T11:12:58Zwibbit
<p><a href="https://pulp-rpm.readthedocs.io/en/3.4/workflows/copy.html" class="external">https://pulp-rpm.readthedocs.io/en/3.4/workflows/copy.html</a></p>
<p>!Note associated with Dependancy Solving</p>
<p>This note states that dependency_solving currently is set to false by default.</p>
<p><a href="https://pulp-rpm.readthedocs.io/en/latest/restapi.html#operation/copy_content" class="external">https://pulp-rpm.readthedocs.io/en/latest/restapi.html#operation/copy_content</a></p>
<p>States that the default is True</p> RPM Support - Issue #6981 (CLOSED - CURRENTRELEASE): Broken Documentation Linkshttps://pulp.plan.io/issues/69812020-06-16T11:54:25Zwibbit
<p>The following page has a couple of links that appear broken.</p>
<p><a href="https://pulp-rpm.readthedocs.io/en/latest/bindings.html" class="external">https://pulp-rpm.readthedocs.io/en/latest/bindings.html</a></p>
<p>Namely.
<a href="https://pulp-rpm.readthedocs.io/en/restapi.html" class="external">https://pulp-rpm.readthedocs.io/en/restapi.html</a>
<a href="https://docs.pulpproject.org/en/3.0/nightly/restapi.html" class="external">https://docs.pulpproject.org/en/3.0/nightly/restapi.html</a></p> RPM Support - Issue #5449 (CLOSED - WONTFIX): Multiple source repos copy of errata produces diffe...https://pulp.plan.io/issues/54492019-09-13T19:12:35Zkersom
<p>Repos used in this issue:</p>
<p>Repo 1 - Contains an errata, and it is missing a RPM version required by the errata.<br>
Repo 2 - Contains the RPM version required by the errata.<br>
Repo 3 - Destination repository.</p>
<p>When copying the errata from Repo 1 to Repo 3, using the "additional_repos" to add Repo 2 , when execute for the first all the dependency resolution is executed properly.</p>
<p>If all the same steps above are execute again, the final result will be different.</p>
<p>Script used to recreate:</p>
<pre><code class="text syntaxhl" data-language="text">pulp-admin login -u admin -p admin
pulp-admin rpm repo create --repo-id=zoo --relative-url=zoo --feed=https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-modules-modified/
pulp-admin rpm repo sync run --repo-id=zoo
pulp-admin rpm repo create --repo-id=bar --relative-url=bar --feed=https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-unsigned-modified/
pulp-admin rpm repo sync run --repo-id=bar
pulp-admin rpm repo create --repo-id=test1
curl -k -u admin:admin --cert ~/.pulp/user-cert.pem -d '{"source_repo_id":"zoo","criteria":{"type_ids":["erratum"],"filters":{"unit":{"id":"RHEA-2012:0059"}}},"override_config":{"recursive_conservative":true,"additional_repos":{"bar": "test1"}}}' -H "Content-Type: application/json" -X POST https://localhost/pulp/api/v2/repositories/test1/actions/associate/
pulp-admin rpm repo create --repo-id=zoo2 --relative-url=zoo2 --feed=https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-modules-modified/
pulp-admin rpm repo sync run --repo-id=zoo2
pulp-admin rpm repo create --repo-id=bar2 --relative-url=bar2 --feed=https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-unsigned-modified/
pulp-admin rpm repo sync run --repo-id=bar2
pulp-admin rpm repo create --repo-id=test3
curl -k -u admin:admin --cert ~/.pulp/user-cert.pem -d '{"source_repo_id":"zoo2","criteria":{"type_ids":["erratum"],"filters":{"unit":{"id":"RHEA-2012:0059"}}},"override_config":{"recursive_conservative":true,"additional_repos":{"bar2": "test3"}}}' -H "Content-Type: application/json" -X POST https://localhost/pulp/api/v2/repositories/test3/actions/associate/
pulp-admin repo list
</code></pre>
<p>test1 and test3 should have the same content, and number of packages.</p>
<pre><code>Id: test1
Display Name: None
Description: None
Content Unit Counts:
Erratum: 1
Modulemd: 2
Modulemd Defaults: 2
Rpm: 2
Id: zoo2
Display Name: None
Description: None
Content Unit Counts:
Erratum: 6
Modulemd: 10
Modulemd Defaults: 3
Package Category: 1
Package Group: 2
Package Langpacks: 1
Rpm: 32
Id: bar2
Display Name: None
Description: None
Content Unit Counts:
Erratum: 4
Package Category: 1
Package Group: 2
Package Langpacks: 1
Rpm: 34
Id: test3
Display Name: None
Description: None
Content Unit Counts:
Erratum: 1
Modulemd: 2
Modulemd Defaults: 2
Rpm: 1
</code></pre>
<p>RPM packages present in the test1 repository:</p>
<pre><code>['duck-0.7-1.noarch.rpm', 'kangaroo-0.3-1.noarch.rpm']
</code></pre>
<p>RPM packages present in the test3 repository:</p>
<pre><code>['duck-0.7-1.noarch.rpm']
</code></pre>
<p>Pulp Version:</p>
<pre><code>[root@pulpfipsserver ~]# rpm -qa | grep pulp
pulp-ostree-plugins-1.4.0-0.1.alpha.201909110504gitcc1c559.el7.noarch
python-pulp-bindings-2.21.0-0.1.alpha.201909110516git8884300.el7.noarch
pulp-docker-admin-extensions-3.4.0-0.1.alpha.201909110502git5f120a3.el7.noarch
pulp-deb-admin-extensions-1.11.0-0.1.alpha.201909110524git86a8a50.el7.noarch
python-pulp-streamer-2.21.0-0.1.alpha.201909110516git8884300.el7.noarch
python-pulp-puppet-common-2.21.0-0.1.alpha.201909110507gite3a1f28.el7.noarch
python-pulp-ostree-common-1.4.0-0.1.alpha.201909110504gitcc1c559.el7.noarch
python-pulp-python-common-2.1.0-0.1.alpha.201909110501git5e2aa35.el7.noarch
pulp-server-2.21.0-0.1.alpha.201909110516git8884300.el7.noarch
pulp-deb-plugins-1.11.0-0.1.alpha.201909110524git86a8a50.el7.noarch
pulp-docker-plugins-3.4.0-0.1.alpha.201909110502git5f120a3.el7.noarch
pulp-rpm-plugins-2.21.0-0.1.alpha.201909110511gitb9f593d.el7.noarch
pulp-puppet-tools-2.21.0-0.1.alpha.201909110507gite3a1f28.el7.noarch
pulp-admin-client-2.21.0-0.1.alpha.201909110516git8884300.el7.noarch
pulp-ostree-admin-extensions-1.4.0-0.1.alpha.201909110504gitcc1c559.el7.noarch
pulp-puppet-admin-extensions-2.21.0-0.1.alpha.201909110507gite3a1f28.el7.noarch
pulp-rpm-admin-extensions-2.21.0-0.1.alpha.201909110511gitb9f593d.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-pulp-docker-common-3.4.0-0.1.alpha.201909110502git5f120a3.el7.noarch
python-pulp-deb-common-1.11.0-0.1.alpha.201909110524git86a8a50.el7.noarch
pulp-selinux-2.21.0-0.1.alpha.201909110516git8884300.el7.noarch
python-pulp-repoauth-2.21.0-0.1.alpha.201909110516git8884300.el7.noarch
pulp-python-plugins-2.1.0-0.1.alpha.201909110501git5e2aa35.el7.noarch
pulp-puppet-plugins-2.21.0-0.1.alpha.201909110507gite3a1f28.el7.noarch
python-pulp-client-lib-2.21.0-0.1.alpha.201909110516git8884300.el7.noarch
pulp-python-admin-extensions-2.1.0-0.1.alpha.201909110501git5e2aa35.el7.noarch
python-pulp-common-2.21.0-0.1.alpha.201909110516git8884300.el7.noarch
python-pulp-rpm-common-2.21.0-0.1.alpha.201909110511gitb9f593d.el7.noarch
python-pulp-oid_validation-2.21.0-0.1.alpha.201909110516git8884300.el7.no
</code></pre>
<p>OS Version:</p>
<pre><code>[root@pulpfipsserver ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.7 (Maipo)
</code></pre> RPM Support - Issue #3996 (CLOSED - WONTFIX): Documentation: rsync distributor examples refer to ...https://pulp.plan.io/issues/39962018-09-11T03:19:53Zrmcgoverrmcgover@redhat.com
<p>At time of writing, the documentation for rsync distributors refer to an "auth_type" field in examples. That field is not documented outside of the example and seems to be entirely unused by Pulp.</p>
<p>From <a href="https://docs.pulpproject.org/plugins/pulp_rpm/tech-reference/iso-rsync-distributor.html" class="external">https://docs.pulpproject.org/plugins/pulp_rpm/tech-reference/iso-rsync-distributor.html</a></p>
<pre><code>Here is an example iso_rsync_distributor configuration:
{
"distributor_id": "my_iso_rsync_distributor",
"distributor_type_id": "iso_rsync_distributor",
"distributor_config": {
"remote": {
"auth_type": "publickey",
"ssh_user": "foo",
"ssh_identity_file": "/home/user/.ssh/id_rsa",
"host": "192.168.121.1",
"root": "/home/foo/pulp_root_dir"
},
"predistributor_id": "my_iso_distributor"
}
}
</code></pre>
<p>Evidence that auth_type doesn't do anything:</p>
<pre><code># in pulp - no matches at all
$ git log --oneline -n1; git grep auth_type
0697adee6 (HEAD -> 2-master, origin/2-master) Merge pull request #3571 from goosemania/issue3386
# in pulp_rpm - matches only in these docs
$ git log --oneline -n1; git grep auth_type
eb8a6d0d (HEAD -> 2-master, origin/2-master) Merge pull request #1157 from dparalen/issue_3256
docs/tech-reference/iso-rsync-distributor.rst: "auth_type": "publickey",
docs/tech-reference/rsync-distributor.rst: "auth_type": "publickey",
</code></pre>
<a name="Steps-to-reproduce"></a>
<h2 >Steps to reproduce<a href="#Steps-to-reproduce" class="wiki-anchor">¶</a></h2>
<p>Read Pulp documentation for rsync distributors.</p>
<a name="Actual-behavior"></a>
<h2 >Actual behavior<a href="#Actual-behavior" class="wiki-anchor">¶</a></h2>
<p>Documentation refers to options which don't exist.</p>
<a name="Expected-behavior"></a>
<h2 >Expected behavior<a href="#Expected-behavior" class="wiki-anchor">¶</a></h2>
<p>Documentation refers only to options which exist.</p> RPM Support - Issue #3254 (CLOSED - WONTFIX): Documentation - Repository Authenticationhttps://pulp.plan.io/issues/32542018-01-08T12:47:01Zbalonik
<p>Hi,</p>
<p>On the page <a href="https://docs.pulpproject.org/plugins/pulp_rpm/user-guide/configuration.html" class="external">https://docs.pulpproject.org/plugins/pulp_rpm/user-guide/configuration.html</a><br>
in the last section "Individual Repository Authentication"<br>
wrong options are listed.<br>
--feed-ca-cert<br>
--feed-cert<br>
--feed-key<br>
are listed instead of correct ones:<br>
--host-ca<br>
--auth-ca<br>
--auth-cert</p>
<p>Thanks.</p> RPM Support - Issue #3027 (CLOSED - WONTFIX): Pulp doesn't generate prestodelta.xmlhttps://pulp.plan.io/issues/30272017-09-22T13:17:44Zlenny
<p>Hi guys,</p>
<p>let me know how I can help you to find a solution for this.</p>
<p>Kind regards,</p>
<p>Rene</p>
<pre><code class="text syntaxhl" data-language="text">Rene,
please open an issue ticket https://pulp.plan.io/issues/new .
This is a not regular behaviour. I did a quick test on my pulp installation and was not able to observe same issue as you have.
We might need to investigate more on this, so descriptive bug report would be highly appreciated,
Thanks!
--------
Regards,
Ina Panova
Software Engineer| Pulp| Red Hat Inc.
</code></pre>
<pre><code class="text syntaxhl" data-language="text">pulp-admin rpm repo list --details --repo-id testing
Content Unit Counts:
Drpm: 12
Rpm: 224
</code></pre>
<pre><code class="text syntaxhl" data-language="text">pulp-admin rpm repo publish run --force-full --repo-id testing
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Publishing Repository [testing]
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
The following publish configuration options will be used:
Force Full: True
This command may be exited via ctrl+c without affecting the request.
Initializing repo metadata
[-]
... completed
Publishing Distribution files
[-]
... completed
Publishing RPMs
[=======================================================================================================================================] 100%
224 of 224 items
... completed
Publishing Delta RPMs
[=======================================================================================================================================] 100%
12 of 12 items
... completed
Publishing Errata
[-]
... completed
Publishing Comps file
[-]
... completed
Publishing Metadata.
[-]
... completed
Closing repo metadata
[-]
... completed
Generating sqlite files
[\]
... completed
Generating HTML files
[-]
... completed
Publishing files to web
[-]
... completed
Writing Listings File
[-]
... completed
Task Succeeded
</code></pre>
<pre><code class="text syntaxhl" data-language="text">pwd
/var/lib/pulp/published/yum/master/yum_distributor/testing
</code></pre>
<pre><code class="text syntaxhl" data-language="text">ls 1505830494.26/repodata/
40e9fbe54edbc6f9619310a8b80698cc51f96f95d1ec781477071f0195eb9b00-other.xml.gz b84bf5f4dea698bf279b51487b01775396a8ed60124aff26c77d208c26e35b47-filelists.xml.gz
9b12c17f419932e740c55156cde2a35a246c7075a2f98605d288f22ac341bb89-primary.sqlite.bz2 c00913cbd12080fd8c656af9a0cee941e340a44970d53c5c432ab0e87e8f1a07-filelists.sqlite.bz2
9f7e68e69d7e2453caa3865a97f8165c1f34d089010c8eb00e7fef6396a6aafa-comps.xml.gz c0fd9ed7ec4b6f5f95fe22abb80b9b0c6ac95bce172b79168d9898b7042ac866-updateinfo.xml.gz
a27718cc28ec6d71432e0ef3e6da544b7f9d93f6bb7d0a55aacd592d03144b70-comps.xml d3214a780e6137d06d7a005c7b786c69ccc9ba83a372eefe794b1eeba3018b8f-other.sqlite.bz2
ae23bc5aecacc9203b291620c3ad472fc5ad795da09f762542620ccb78fee160-primary.xml.gz repomd.xml
</code></pre> RPM Support - Issue #2871 (CLOSED - WONTFIX): Old references to checksum_type need to be updated ...https://pulp.plan.io/issues/28712017-07-06T20:57:42Zkdelee@redhat.com
<p>API documentation [0] refer to the field<br>
<code>"unit_metadata": {"checksum_type": null}</code></p>
<p>For use in uploading to a repository, but use of this in an API call to upload a drpm results in the error:<br>
<code>"{'errors': ["unexpected error occurred importing uploaded file: The field 'checksum_type' does not exist on the document 'DRPM'"]}"</code></p>
<p>An old reference to <code>'checksum_type'</code> is also found in the yum importer <code>upload.py</code> [1]</p>
<p>This causes an invalid combination of a valid sha256 <code>'checksum'</code> combined with a <code>'checksumtype'</code> OTHER than sha256 to succeed, when the proper behaviour would be failure.</p>
<p>[0] <a href="http://docs.pulpproject.org/dev-guide/integration/rest-api/content/upload.html#creating-an-upload-request" class="external">http://docs.pulpproject.org/dev-guide/integration/rest-api/content/upload.html#creating-an-upload-request</a><br>
[1] <a href="https://github.com/pulp/pulp_rpm/blob/master/plugins/pulp_rpm/plugins/importers/yum/upload.py#L395" class="external">https://github.com/pulp/pulp_rpm/blob/master/plugins/pulp_rpm/plugins/importers/yum/upload.py#L395</a></p> RPM Support - Issue #2761 (CLOSED - WONTFIX): Iso repo with basic auth does not report sync progresshttps://pulp.plan.io/issues/27612017-05-17T19:52:24Zpthomas@redhat.com
<p>When syncing a file repo (iso repo) with basic auth, the sync progress is being reported.</p>
<p>1. Create a repo with basic auth<br>
2. Run repo sync</p>
<pre><code>
[root@qe-blade-12 ~]# rpm -qa |grep pulp sort
grep: sort: No such file or directory
[root@qe-blade-12 ~]#
[root@qe-blade-12 ~]#
[root@qe-blade-12 ~]# rpm -qa |grep pulp |sort
pulp-admin-client-2.13.1-0.1.beta.el7.noarch
pulp-docker-admin-extensions-2.4.0-0.2.rc.el7.noarch
pulp-docker-plugins-2.4.0-0.2.rc.el7.noarch
pulp-ostree-admin-extensions-1.2.1-1.2.rc.el7.noarch
pulp-ostree-plugins-1.2.1-1.2.rc.el7.noarch
pulp-puppet-admin-extensions-2.13.1-0.1.beta.el7.noarch
pulp-puppet-plugins-2.13.1-0.1.beta.el7.noarch
pulp-python-admin-extensions-2.0.0-0.3.rc.el7.noarch
pulp-python-plugins-2.0.0-0.3.rc.el7.noarch
pulp-rpm-admin-extensions-2.13.1-0.1.beta.el7.noarch
pulp-rpm-plugins-2.13.1-0.1.beta.el7.noarch
pulp-selinux-2.13.1-0.1.beta.el7.noarch
pulp-server-2.13.1-0.1.beta.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-kombu-3.0.33-6.pulp.el7.noarch
python-pulp-bindings-2.13.1-0.1.beta.el7.noarch
python-pulp-client-lib-2.13.1-0.1.beta.el7.noarch
python-pulp-common-2.13.1-0.1.beta.el7.noarch
python-pulp-docker-common-2.4.0-0.2.rc.el7.noarch
python-pulp-oid_validation-2.13.1-0.1.beta.el7.noarch
python-pulp-ostree-common-1.2.1-1.2.rc.el7.noarch
python-pulp-puppet-common-2.13.1-0.1.beta.el7.noarch
python-pulp-python-common-2.0.0-0.3.rc.el7.noarch
python-pulp-repoauth-2.13.1-0.1.beta.el7.noarch
python-pulp-rpm-common-2.13.1-0.1.beta.el7.noarch
python-pulp-streamer-2.13.1-0.1.beta.el7.noarch
[root@qe-blade-12 ~]# pulp-admin iso repo create --repo-id protected-file --feed http://<authenticated-repo>
Successfully created repository [protected-file]
[root@qe-blade-12 ~]#
[root@qe-blade-12 ~]#
[root@qe-blade-12 ~]#
[root@qe-blade-12 ~]# pulp-admin rpm repo sync run --repo-id protected-file
+----------------------------------------------------------------------+
Synchronizing Repository [protected-file]
+----------------------------------------------------------------------+
This command may be exited via ctrl+c without affecting the request.
Task Failed
Importer indicated a failed response
[root@qe-blade-12 ~]# pulp-admin rpm repo update --repo-id protected-file --basicauth-user <username> --basicauth-pass <password> --feed http://<protected-repo>
Repository [protected-file] successfully updated
[root@qe-blade-12 ~]#
[root@qe-blade-12 ~]#
[root@qe-blade-12 ~]#
[root@qe-blade-12 ~]# pulp-admin rpm repo sync run --repo-id protected-file
+----------------------------------------------------------------------+
Synchronizing Repository [protected-file]
+----------------------------------------------------------------------+
This command may be exited via ctrl+c without affecting the request.
Task Succeeded
Task Succeeded
[root@qe-blade-12 ~]# pulp-admin iso repo list
+----------------------------------------------------------------------+
ISO Repositories
+----------------------------------------------------------------------+
Id: protected-file
Display Name: None
Description: None
Content Unit Counts:
Iso: 3
</code></pre> RPM Support - Issue #2593 (CLOSED - WONTFIX): Single-package error during sync is not being propo...https://pulp.plan.io/issues/25932017-02-16T20:12:07Zdalleydalley@redhat.com
<a name="Steps-to-Recreate"></a>
<h2 >Steps to Recreate<a href="#Steps-to-Recreate" class="wiki-anchor">¶</a></h2>
<p>1. Create a scenario which will cause an error during sync on a single package<br>
2. Attempt a sync<br>
3. Observe that the "Error" field is empty<br>
4. View the task details via the API to see that the "error_details" field does contain the error message</p>
<pre><code class="text syntaxhl" data-language="text">mkdir zoolander
cd zoolander
wget https://davidd.fedorapeople.org/repos/zoo-lander/cat-1.0-1.noarch.rpm
wget https://davidd.fedorapeople.org/repos/zoo-lander/camel-0.1-1.noarch.rpm
wget https://davidd.fedorapeople.org/repos/zoo-lander/bear-4.1-1.noarch.rpm
createrepo .
chmod 777 *
sudo chown root bear-4.1-1.noarch.rpm
sudo chmod 000 bear-4.1-1.noarch.rpm
pulp-admin rpm repo create --repo-id zoolander --feed file://`pwd`
pulp-admin rpm repo sync run --repo-id zoolander
</code></pre>
<p>Below is the pulp-admin output for the sync command. Notice that while it reports the package for which an individual package error occurred, it does not report the error message. It is left blank.</p>
<pre><code class="text syntaxhl" data-language="text">[vagrant@dev ~]$ pulp-admin rpm repo sync run --repo-id zoolander
+----------------------------------------------------------------------+
Synchronizing Repository [zoolander]
+----------------------------------------------------------------------+
This command may be exited via ctrl+c without affecting the request.
Downloading metadata...
[-]
... completed
Downloading repository content...
[==================================================] 100%
RPMs: 1/1 items
Delta RPMs: 0/0 items
... completed
Individual package errors encountered during sync:
Package: file:///home/vagrant/zoolander/bear-4.1-1.noarch.rpm
Error:
Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
... completed
Importing errata...
[-]
... completed
Importing package groups/categories...
[-]
... completed
Cleaning duplicate packages...
[-]
... completed
Task Succeeded
Task Succeeded
</code></pre>
<p>By viewing the full progress report via the API with one of these commands</p>
<ul>
<li>phttp <a href="https://localhost/pulp/api/v2/tasks/" class="external">https://localhost/pulp/api/v2/tasks/</a>
</li>
</ul>
<ul>
<li>pulp-admin -vv tasks details --task-id <<sync_task_id>></li>
</ul>
<p>We can see that an error message is indeed provided in the full report</p>
<pre><code class="text syntaxhl" data-language="text">........
"result": {
"_ns": "repo_sync_results",
"added_count": 0,
"completed": "2017-02-16T20:07:35Z",
"details": {
"comps": {
"state": "FINISHED"
},
"content": {
"details": {
"drpm_done": 0,
"drpm_total": 0,
"rpm_done": 1,
"rpm_total": 1
},
"error_details": [
{
"errors": [
"[Errno 13] Permission denied: u'///home/vagrant/zoolander/bear-4.1-1.noarch.rpm'"
],
"url": "file:///home/vagrant/zoolander/bear-4.1-1.noarch.rpm"
}
],
........
</code></pre> RPM Support - Issue #2569 (CLOSED - WONTFIX): allowed_keys documented as wrong typehttps://pulp.plan.io/issues/25692017-02-06T06:39:10Zrmcgoverrmcgover@redhat.com
<p>At time of writing, <a href="https://docs.pulpproject.org/plugins/pulp_rpm/tech-reference/yum-plugins.html#yum-importer" class="external">https://docs.pulpproject.org/plugins/pulp_rpm/tech-reference/yum-plugins.html#yum-importer</a> says:</p>
<p>"allowed_keys Comma-separated list of allowed signature key IDs that imported packages can be signed with."</p>
<p>I don't think that's correct, is it? "Comma-separated list" sounds like I should use a string with multiple values separated by commas, as in "a1b2c3d4,b2c3d4e5", but judging from the code and autotests, the field actually accepts an array, so I should use ["a1b2c3d4", "b2c3d4e5"].</p> RPM Support - Issue #2412 (CLOSED - WONTFIX): The --skip option expects the export_distributor to...https://pulp.plan.io/issues/24122016-11-09T12:05:18Zjiri.tyr@gmail.comjiri.tyr@gmail.com
<p>I have created RPM repos only with yum_distributor because I want to create ISO images with the export_distributor. When I run the <code>pulp-admin rpm repo update --repo-id my_repo --skip erratum</code>, I get an error that the export_distributor doesn't exist:</p>
<pre><code>$ pulp-admin rpm repo update --repo-id my_repo --skip erratum
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Updating distributor: yum_distributor
Task Succeeded
[\]
Running...
Updating distributor: export_distributor
Task Failed
Missing resource(s): repo_id=my_repo,
distributor_id=export_distributor
</code></pre>
<p>I believe that this action should walk through existing distributors instead of expecting that the yum and the export distributor exists within every repo.</p> RPM Support - Issue #2364 (CLOSED - WONTFIX): Inconsistent usage of strings and constantshttps://pulp.plan.io/issues/23642016-10-20T21:26:04Zmihai.ibanescu@gmail.commihai.ibanescu@gmail.com
<p>While reading the comments around 2190, I came across the force_full option.</p>
<p>I did a grep in the 2.10 branch.</p>
<p>I found that there is indeed a FORCE_FULL_KEYWORD = 'force_full' defined in common/pulp_rpm/common/constants.py</p>
<p>However, it is used exactly once outside of that file, and that is in plugins/pulp_rpm/plugins/distributors/yum/publish.py</p>
<p>The 'force_full' string itself is used directly in plugins/pulp_rpm/plugins/importers/yum/sync.py and in plugins/pulp_rpm/plugins/distributors/yum/configuration.py</p>
<p>While not a big deal, I am trying to use pulp_rpm as an example of how to write a pulp plugin, and also to update my pulp 2.7 plugins to pulp 2.10, which pulp_rpm has already done. The trials and tribulations around the relatively unstable plugin API are somewhat understandable. Inconsistency, I would hope not.</p>
<p>This is recent too: <a href="https://github.com/pulp/pulp_rpm/commit/df42dea8e46a1a9649727990082f5b13fbb7c6f9" class="external">https://github.com/pulp/pulp_rpm/commit/df42dea8e46a1a9649727990082f5b13fbb7c6f9</a></p>
<p>If my expectation that, by defining a constant in the code, one should use it flawed, can you please provide guidance on when to use a constant vs. a string?</p>