Pulp: Issueshttps://pulp.plan.io/https://pulp.plan.io/favicon.ico2021-09-09T09:36:39ZPulp
Planio RPM Support - Issue #9365 (CLOSED - CURRENTRELEASE): Missing release notes - pulp-rpm (fix nightl...https://pulp.plan.io/issues/93652021-09-09T09:36:39Zwibbit
<p>No release notes published for 3.14.3</p> RPM Support - Issue #9364 (CLOSED - WONTFIX): feature request: include/exclude/filter packages in...https://pulp.plan.io/issues/93642021-09-09T09:17:10Zwheezer
<p>Hi all,</p>
<p>I'm using reposync to create a local copy of remote rpm repositories, fetching only the latest package release and excluding packages that conflict with other repositories, or including only a few packages I need from that source, i.e.:</p>
<ul>
<li>repository <strong>foo</strong> provides <code>nicepackage-1.2.3-1</code> with is compiled with <code>--nifty-feature</code> but repository <strong>bar</strong> provides <code>nicepackage-1:1.2.3-1</code> which was compiled without <code>--nifty-feature</code>. Because of the epoch the version without <code>--nifty-feature</code> would be installed. I don't want to fetch that rpm at all, so I exclude <code>nicepackage</code> from remote <strong>bar</strong>.</li>
<li>repository <strong>baz</strong> provides lots of packages, most of them are huge disk-space-wasting X-applications (e.g. gnome desktop, firefox browser, stuff you don't need on a headless server), but there are also some nice cli-tools I'd like to mirror locally. Including only <code>niceclitool</code> from that remote is the way to go.</li>
</ul>
<p>Now I'd like to replace it with pulp. Unfortunately a <em>remote</em> cannot be filtered.
So here's my feature request: Could you please implement filters in rpm remotes?</p>
<p>Thanks :)</p> RPM Support - Issue #9363 (CLOSED - NOTABUG): cleaning up orphans doesn't workhttps://pulp.plan.io/issues/93632021-09-09T08:58:13Zwheezer
<p>Hi,</p>
<p>when deleting an rpm repository I'd expect <code>pulp orphan cleanup</code> to purge all artifacts from that repository unless linked elsewhere. Yet this command does nothing.</p>
<p>Using pulp_rpm 3.15.0 with pulp_core 3.15.2.</p>
<p>How to reproduce:</p>
<ol>
<li>start a fresh container</li>
</ol>
<pre><code>mkdir -p "${basedir}"/{settings,pulp_storage,pgsql/data,containers}
cat > "${basedir}/settings/settings.py" <<EOF
CONTENT_ORIGIN='http://$(hostname):8080'
ANSIBLE_API_HOSTNAME='http://$(hostname):8080'
ANSIBLE_CONTENT_HOSTNAME='http://$(hostname):8080/pulp/content'
TOKEN_AUTH_DISABLED=True
EOF
podman run --detach \
--publish 8080:80 \
--name pulp \
--volume "${basedir}/settings":/etc/pulp:Z \
--volume "${basedir}/pulp_storage":/var/lib/pulp:Z \
--volume "${basedir}/pgsql":/var/lib/pgsql:Z \
--volume "${basedir}/containers":/var/lib/containers:Z \
--device /dev/fuse \
pulp/pulp
</code></pre>
<ol start="2">
<li>create and populate an rpm repository</li>
</ol>
<pre><code>pulp rpm remote create \
--name remote-testrepo \
--url https://rspamd.com/rpm-stable/centos-8/x86_64/
pulp rpm repository create \
--name testrepo \
--description "a mirrored repository" \
--remote remote-testrepo \
--retain-package-versions 1
pulp rpm repository sync --name testrepo
</code></pre>
<ol start="3">
<li>take a look at what we have</li>
</ol>
<pre><code>pulp artifact list | jq -r '.[]|.pulp_href'
# /pulp/api/v3/artifacts/7738e5bb-1069-435c-8b1e-acc4a22f7a4d/
# /pulp/api/v3/artifacts/e750dc8c-af81-4a46-84d8-451650a81396/
# /pulp/api/v3/artifacts/34bfa210-b9e4-4426-af85-911c8491f187/
pulp content list | jq -r '.[]|.artifacts|keys[]'
# rspamd-debuginfo-3.0-2.x86_64.rpm
# rspamd-3.0-2.x86_64.rpm
# rspamd-debugsource-3.0-2.x86_64.rpm
</code></pre>
<ol start="4">
<li>destroy everything</li>
</ol>
<pre><code>pulp rpm repository destroy --name testrepo
pulp rpm remote destroy --name remote-testrepo
</code></pre>
<ol start="5">
<li>run the cleanup job</li>
</ol>
<pre><code>pulp orphan cleanup
# {
# "state": "completed",
# "name": "pulpcore.app.tasks.orphan.orphan_cleanup",
# "error": null,
# "progress_reports": [
# {
# "message": "Clean up orphan Content",
# "code": "clean-up.content",
# "state": "completed",
# "total": 0,
# "done": 0,
# "suffix": null
# },
# {
# "message": "Clean up orphan Artifacts",
# "code": "clean-up.content",
# "state": "completed",
# "total": 0,
# "done": 0,
# "suffix": null
# }
# […]
pulp debug task-summary
# {
# "waiting": 0,
# "skipped": 0,
# "running": 0,
# "completed": 6,
# "failed": 0,
# "canceled": 0,
# "canceling": 0
# }
</code></pre>
<ol start="6">
<li>still see the content</li>
</ol>
<pre><code>pulp artifact list | jq -r '.[]|.pulp_href'
# /pulp/api/v3/artifacts/7738e5bb-1069-435c-8b1e-acc4a22f7a4d/
# /pulp/api/v3/artifacts/e750dc8c-af81-4a46-84d8-451650a81396/
# /pulp/api/v3/artifacts/34bfa210-b9e4-4426-af85-911c8491f187/
pulp content list | jq -r '.[]|.artifacts|keys[]'
# rspamd-debuginfo-3.0-2.x86_64.rpm
# rspamd-3.0-2.x86_64.rpm
# rspamd-debugsource-3.0-2.x86_64.rpm
</code></pre> RPM Support - Issue #9132 (CLOSED - DUPLICATE): As an administrator, I'd like to see the actual m...https://pulp.plan.io/issues/91322021-07-23T06:16:18Zwibbit
<p><strong>Ticket moved to GitHub</strong>: "pulp/pulp_rpm/2287":<a href="https://github.com/pulp/pulp_rpm/issues/2287" class="external">https://github.com/pulp/pulp_rpm/issues/2287</a></p>
<hr>
<p>Currently, when pulp3 fails to sync, due to for example an RPM failing to pass a hash check pulp3 reports URL associated with the remote.</p>
<p>When using a mirror list, it would be good to have visibility of the actual mirror we were syncing against at the time of the failure, as opposed to the more generic mirror list.</p>
<p>Ideally this would be reported in the task failure.</p> RPM Support - Story #9131 (CLOSED - DUPLICATE): As an administrator, I'd like RPM repository sync...https://pulp.plan.io/issues/91312021-07-23T06:13:18Zwibbit
<p><strong>Ticket moved to GitHub</strong>: "pulp/pulp_rpm/2286":<a href="https://github.com/pulp/pulp_rpm/issues/2286" class="external">https://github.com/pulp/pulp_rpm/issues/2286</a></p>
<hr>
<p>Currently, though Pulp3 supports mirror lists, it does not currently support re-trying against a different host in the mirror list in the event of a package sync failure.</p>
<p>While attempting to use mirror lists while syncing fedora34 updates, after ~15 attempts I was not able to get to version 1 of the repository, as each time it would try and it would get a new mirror, and there would be a failed package of some kind.</p>
<p>Anecdotally I see this a lot when running a dnf update/upgrade where packages will fail and DNF will happily go off and try a new mirror, without this logic, for larger repositories that may have a lot of change, I'm unsure of the value of supporting mirror lists.</p> RPM Support - Issue #8992 (CLOSED - DUPLICATE): Memory usage when destroy repository; The memory ...https://pulp.plan.io/issues/89922021-06-30T07:11:25Zwilful
<p><strong>Ticket moved to GitHub</strong>: "pulp/pulp_rpm/2280":<a href="https://github.com/pulp/pulp_rpm/issues/2280" class="external">https://github.com/pulp/pulp_rpm/issues/2280</a></p>
<hr>
<p>When i try to destroy one of repositories, pulp (RQ basically) are using more 3G RAM and crashed by OOM-Killer</p>
<pre><code class="c syntaxhl" data-language="c"><span class="n">Jun</span> <span class="mi">30</span> <span class="mo">06</span><span class="o">:</span><span class="mi">59</span><span class="o">:</span><span class="mi">16</span> <span class="o">***</span> <span class="n">kernel</span><span class="o">:</span> <span class="n">Out</span> <span class="n">of</span> <span class="n">memory</span><span class="o">:</span> <span class="n">Kill</span> <span class="n">process</span> <span class="mi">81458</span> <span class="p">(</span><span class="n">rq</span><span class="p">)</span> <span class="n">score</span> <span class="mi">493</span> <span class="n">or</span> <span class="n">sacrifice</span> <span class="n">child</span>
<span class="n">Jun</span> <span class="mi">30</span> <span class="mo">06</span><span class="o">:</span><span class="mi">59</span><span class="o">:</span><span class="mi">16</span> <span class="o">***</span> <span class="n">kernel</span><span class="o">:</span> <span class="n">Killed</span> <span class="n">process</span> <span class="mi">81458</span> <span class="p">(</span><span class="n">rq</span><span class="p">),</span> <span class="n">UID</span> <span class="mi">1002</span><span class="p">,</span> <span class="n">total</span><span class="o">-</span><span class="n">vm</span><span class="o">:</span><span class="mi">4434448</span><span class="n">kB</span><span class="p">,</span> <span class="n">anon</span><span class="o">-</span><span class="n">rss</span><span class="o">:</span><span class="mi">3936104</span><span class="n">kB</span><span class="p">,</span> <span class="n">file</span><span class="o">-</span><span class="n">rss</span><span class="o">:</span><span class="mi">0</span><span class="n">kB</span><span class="p">,</span> <span class="n">shmem</span><span class="o">-</span><span class="n">rss</span><span class="o">:</span><span class="mi">0</span><span class="n">kB</span>
</code></pre>
<p>State before on my node:</p>
<pre><code class="c syntaxhl" data-language="c"><span class="cp"># free -h
</span> <span class="n">total</span> <span class="n">used</span> <span class="n">free</span> <span class="n">shared</span> <span class="n">buff</span><span class="o">/</span><span class="n">cache</span> <span class="n">available</span>
<span class="n">Mem</span><span class="o">:</span> <span class="mi">7</span><span class="p">.</span><span class="mi">6</span><span class="n">G</span> <span class="mi">1</span><span class="p">.</span><span class="mi">5</span><span class="n">G</span> <span class="mi">3</span><span class="p">.</span><span class="mi">6</span><span class="n">G</span> <span class="mi">2</span><span class="p">.</span><span class="mi">2</span><span class="n">G</span> <span class="mi">2</span><span class="p">.</span><span class="mi">6</span><span class="n">G</span> <span class="mi">3</span><span class="p">.</span><span class="mi">7</span><span class="n">G</span>
<span class="n">Swap</span><span class="o">:</span> <span class="mi">0</span><span class="n">B</span> <span class="mi">0</span><span class="n">B</span> <span class="mi">0</span><span class="n">B</span>
</code></pre>
<pre><code class="c syntaxhl" data-language="c"> <span class="s">"versions"</span><span class="o">:</span> <span class="p">[</span>
<span class="p">{</span>
<span class="s">"component"</span><span class="o">:</span> <span class="s">"core"</span><span class="p">,</span>
<span class="s">"version"</span><span class="o">:</span> <span class="s">"3.13.0"</span>
<span class="p">},</span>
<span class="p">{</span>
<span class="s">"component"</span><span class="o">:</span> <span class="s">"rpm"</span><span class="p">,</span>
<span class="s">"version"</span><span class="o">:</span> <span class="s">"3.13.0"</span>
<span class="p">},</span>
<span class="p">{</span>
<span class="s">"component"</span><span class="o">:</span> <span class="s">"python"</span><span class="p">,</span>
<span class="s">"version"</span><span class="o">:</span> <span class="s">"3.4.0"</span>
<span class="p">},</span>
<span class="p">{</span>
<span class="s">"component"</span><span class="o">:</span> <span class="s">"file"</span><span class="p">,</span>
<span class="s">"version"</span><span class="o">:</span> <span class="s">"1.8.0"</span>
<span class="p">},</span>
<span class="p">{</span>
<span class="s">"component"</span><span class="o">:</span> <span class="s">"deb"</span><span class="p">,</span>
<span class="s">"version"</span><span class="o">:</span> <span class="s">"2.13.0"</span>
<span class="p">},</span>
<span class="p">{</span>
<span class="s">"component"</span><span class="o">:</span> <span class="s">"container"</span><span class="p">,</span>
<span class="s">"version"</span><span class="o">:</span> <span class="s">"2.6.0"</span>
<span class="p">}</span>
<span class="p">],</span>
</code></pre> RPM Support - Issue #8967 (CLOSED - DUPLICATE): "duplicate key value violates unique constraint" ...https://pulp.plan.io/issues/89672021-06-24T13:23:18Zwilful
<p><strong>Ticket moved to GitHub</strong>: "pulp/pulp_rpm/2278":<a href="https://github.com/pulp/pulp_rpm/issues/2278" class="external">https://github.com/pulp/pulp_rpm/issues/2278</a></p>
<hr>
<p>The original issue is difficult to reproduce any longer, but there are similar issues which can be. see <a href="https://pulp.plan.io/issues/8967#note-16" class="external">https://pulp.plan.io/issues/8967#note-16</a></p>
<p>========================</p>
<p>Hi for all!</p>
<p>Me need added for pulp server two repositories:</p>
<p><a href="http://downloads.linux.hpe.com/SDR/repo/spp/redhat/7/x86_64/current/" class="external">http://downloads.linux.hpe.com/SDR/repo/spp/redhat/7/x86_64/current/</a></p>
<p><a href="http://downloads.linux.hpe.com/SDR/repo/mcp/CentOS/7/x86_64/current/" class="external">http://downloads.linux.hpe.com/SDR/repo/mcp/CentOS/7/x86_64/current/</a></p>
<p>But i can't do it, becouse:</p>
<pre><code class="text syntaxhl" data-language="text"> "description": "duplicate key value violates unique constraint \"rpm_package_pkgId_key\"\nDETAIL: Key (\"pkgId\")=(ebf96fb31b880280a25d07c596bde204df50d140) already exists.\
n"
</code></pre>
<p>How can I find out in which repository this package is?</p> RPM Support - Issue #8619 (CLOSED - DUPLICATE): RPM Sync Issue - Duplicate contenthttps://pulp.plan.io/issues/86192021-04-23T14:07:51Zwibbit
<p><strong>Ticket moved to GitHub</strong>: "pulp/pulp_rpm/2271":<a href="https://github.com/pulp/pulp_rpm/issues/2271" class="external">https://github.com/pulp/pulp_rpm/issues/2271</a></p>
<hr>
<p>I've hit an odd sync issue with rpm (<a href="https://pulp.plan.io/issues/8615" class="external">https://pulp.plan.io/issues/8615</a>).</p>
<p>This is syncing against a pulp2 repo that is populated using pulp-admin's upload facility. I think I <em>may</em> know the cause, though this is conjecture.</p>
<p>Speaking with ttereshc, it's been confirmed that the upload command has the same issue as copying content between repositories does not perform any kind of de-duplication of data where the NEVRA is the same, but the hash differs.</p>
<p>I worked around this issue by creating a "dummy" repository, copying the content into it, and then setting the original repository up, to have it's feed set to the dummy repository and syncing it, this then engages the deduplication logic.</p>
<p>A subsequent sync of this repository from Pulp3 worked cleanly.</p>
<p>It strikes me, that Pulp3 probably should have been able to deal with this gracefully, I'm not familiar enough with sync logic to understand where the core problem was.</p> RPM Support - Issue #7814 (CLOSED - NOTABUG): Undocumented Change in API Interfacehttps://pulp.plan.io/issues/78142020-11-10T16:26:54Zwibbit
<p>Going from pulp-rpm 3.6.0 to pulp-rpm 3.7.0 the RpmCopyApi.create changed to RpmCopyApi.copy_content</p>
<p>I've gone over the changelogs and can see no reference to this change.</p> RPM Support - Story #7708 (CLOSED - DUPLICATE): Improve content creation experiencehttps://pulp.plan.io/issues/77082020-10-14T11:39:39Zwibbit
<p><strong>Ticket moved to GitHub</strong>: "pulp/pulp_rpm/2257":<a href="https://github.com/pulp/pulp_rpm/issues/2257" class="external">https://github.com/pulp/pulp_rpm/issues/2257</a></p>
<hr>
<p>Currently when attempting to create RPM content from an already uploaded artefact, if a NEVRA already exists for that content, the task fails.</p>
<p>There are many reasons why a single NEVRA could translate to multiple SHA's depending on build time/host etc.</p>
<p>From within Pulp, I don't believe (outside of passing a string), there is no way to find the HREF of the conflicting package.</p>
<ol>
<li>An artefact has no knowledge of its content (I can't query the artefact for its NEVRA, and then query the content)</li>
<li>Though you can see the filename (fairly reliable, but not guaranteed), when looking at content, you can't query by file, you'd need to iterate over the entire content, or pass the filename (not reliable as I believe filename and metadata can and often do vary)</li>
<li>When a task fails due to conflicting NEVRA, the Description string in the error message <em>DOES</em> include NEVRA + conflicting pkgId, however I'd rather avoid having to pass strings if at all possible.</li>
</ol>
<p>So some initial thoughts (not prescribing just initial brainstorming that would work for me).</p>
<ol>
<li>The task does not fail but instead returns the pkgId/href of the conflicting package.</li>
<li>Provide a method to query content for a would-be created content from an artifact, and <em>IF</em> it were to conflict provide.
a) The NEVRA of the conflicting package, which can then be used to query the content for said package.
b) All of the metadata from the would be created content (not the existing content).
b) Simply return the href for the pre-existing package.</li>
</ol>
<p>A & B, should have no implications for RBAC, as it's only returning the information for the artefact being referenced, and also allows the developer to subsequently query the content using the NEVRA and see if there are more concerning differences between the pre-existing content and the desired new content, and choose what to do (delete pre-existing, and replace with new, throw away new, and keep old, etc etc etc)</p> RPM Support - Issue #4427 (CLOSED - WONTFIX): Failure to Generate HTML Fileshttps://pulp.plan.io/issues/44272019-02-15T11:48:59Zwibbit
<p>While trying to publish a repository I'm being greeted with the following error.</p>
<pre><code>Task Failed
'ascii' codec can't decode byte 0xc0 in position 871702: ordinal not in range(128)
This happens when trying to mirror Fedora 29 Everything Release.
+----------------------------------------------------------------------+
RPM Repositories
+----------------------------------------------------------------------+
Id: Testing_Fedora_29_Release
Display Name: None
Description: None
Content Unit Counts:
Distribution: 1
Package Category: 13
Package Environment: 16
Package Group: 187
Package Langpacks: 1
Rpm: 58215
Notes:
Scratchpad:
Checksum Type: sha256
Importers:
Config:
Feed: http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/lin
ux/releases/29/Everything/x86_64/os/
Id: yum_importer
Importer Type Id: yum_importer
Last Override Config:
Last Sync: 2019-02-15T07:46:02Z
Last Updated: 2019-02-14T11:35:13Z
Repo Id: Testing_Fedora_29_Release
Scratchpad:
Repomd Revision: 1540419615
Distributors:
Auto Publish: True
Config:
Generate Sqlite: True
Http: True
Https: True
Relative URL: Testing/Fedora/29/Release/
Repoview: True
Distributor Type Id: yum_distributor
Id: yum_distributor
Last Override Config:
Last Publish: None
Last Updated: 2019-02-14T11:35:13Z
Repo Id: Testing_Fedora_29_Release
Scratchpad:
Auto Publish: False
Config:
Http: True
Https: True
Relative URL: Testing/Fedora/29/Release/
Distributor Type Id: export_distributor
Id: export_distributor
Last Override Config:
Last Publish: None
Last Updated: 2019-02-14T11:35:13Z
Repo Id: Testing_Fedora_29_Release
Scratchpad:
</code></pre> RPM Support - Issue #4250 (CLOSED - WONTFIX): When attach and publishing a new yum_distributor, o...https://pulp.plan.io/issues/42502018-12-10T14:33:25Zwibbit
<p>I am trying to associate multiple yum_distributors to a repository, and have all of them presented and working at the same time, from the documentation I believe this should work.</p>
<p>All of these repositories/distributors/publish requests are done via the API.</p>
<p>We are using pulp 2.17</p>
<p>It's probably worth noting, that when I attach the Distributor, I <strong>ONLY</strong> request that new distributor to be published, I do not request ALL distributors attached to the repo to be published.</p>
<p>Below is an example repository and the data within the published directory, both master and non master.</p>
<p>Let me know if any more information is required.</p>
<pre><code>+----------------------------------------------------------------------+
Repositories
+----------------------------------------------------------------------+
Id: 1976-01_rhel7_bats
Display Name: bats
Description: None
Content Unit Counts:
Notes:
Parent: None
Platform: rhel7
Release: 1976-01
Scratchpad:
Importers:
Config:
Num Retries: 1
Validate: False
Id: yum_importer
Importer Type Id: yum_importer
Last Override Config:
Last Sync: None
Last Updated: 2018-12-10T13:42:54Z
Repo Id: 1976-01_rhel7_bats
Scratchpad: None
Distributors:
Auto Publish: True
Config:
Generate Sqlite: True
Http: True
Https: True
Relative URL: rhel7/1976-01/rhel7_bats/
Repoview: True
Distributor Type Id: yum_distributor
Id: 1976-01
Last Override Config:
Last Publish: 2018-12-10T13:47:32Z
Last Updated: 2018-12-10T13:42:54Z
Repo Id: 1976-01_rhel7_bats
Scratchpad:
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats
total 4.0K
drwxr-xr-x 4 apache apache 4.0K Dec 10 08:47 1544449651.75
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:47 /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544449651.75
[root@pulp-master ~]# pulp-admin repo list --details --repo-id=1976-01_rhel7_bats
+----------------------------------------------------------------------+
Repositories
+----------------------------------------------------------------------+
Id: 1976-01_rhel7_bats
Display Name: bats
Description: None
Content Unit Counts:
Notes:
Parent: None
Platform: rhel7
Release: 1976-01
Scratchpad:
Importers:
Config:
Num Retries: 1
Validate: False
Id: yum_importer
Importer Type Id: yum_importer
Last Override Config:
Last Sync: None
Last Updated: 2018-12-10T13:42:54Z
Repo Id: 1976-01_rhel7_bats
Scratchpad: None
Distributors:
Auto Publish: True
Config:
Generate Sqlite: True
Http: True
Https: True
Relative URL: rhel7/latest/rhel7_bats/
Repoview: True
Distributor Type Id: yum_distributor
Id: latest
Last Override Config:
Last Publish: 2018-12-10T13:59:18Z
Last Updated: 2018-12-10T13:59:16Z
Repo Id: 1976-01_rhel7_bats
Scratchpad:
Auto Publish: True
Config:
Generate Sqlite: True
Http: True
Https: True
Relative URL: rhel7/1976-01/rhel7_bats/
Repoview: True
Distributor Type Id: yum_distributor
Id: 1976-01
Last Override Config:
Last Publish: 2018-12-10T13:47:32Z
Last Updated: 2018-12-10T13:42:54Z
Repo Id: 1976-01_rhel7_bats
Scratchpad:
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats
total 4.0K
drwxr-xr-x 4 apache apache 4.0K Dec 10 08:59 1544450358.11
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:47 /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544449651.75 <---------------------- This link is now broken.
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/latest/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:59 /var/lib/pulp/published/yum/http/repos/rhel7/latest/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544450358.11 <----------------------- This works
[root@pulp-master ~]# pulp-admin repo list --details --repo-id=1976-01_rhel7_bats
+----------------------------------------------------------------------+
Repositories
+----------------------------------------------------------------------+
Id: 1976-01_rhel7_bats
Display Name: bats
Description: None
Content Unit Counts:
Notes:
Parent: None
Platform: rhel7
Release: 1976-01
Scratchpad:
Importers:
Config:
Num Retries: 1
Validate: False
Id: yum_importer
Importer Type Id: yum_importer
Last Override Config:
Last Sync: None
Last Updated: 2018-12-10T13:42:54Z
Repo Id: 1976-01_rhel7_bats
Scratchpad: None
Distributors:
Auto Publish: True
Config:
Generate Sqlite: True
Http: True
Https: True
Relative URL: rhel7/latest/rhel7_bats/
Repoview: True
Distributor Type Id: yum_distributor
Id: latest
Last Override Config:
Last Publish: 2018-12-10T13:59:18Z
Last Updated: 2018-12-10T13:59:16Z
Repo Id: 1976-01_rhel7_bats
Scratchpad:
Auto Publish: True
Config:
Generate Sqlite: True
Http: True
Https: True
Relative URL: rhel7/even-later/rhel7_bats/
Repoview: True
Distributor Type Id: yum_distributor
Id: even-later
Last Override Config:
Last Publish: 2018-12-10T14:02:54Z
Last Updated: 2018-12-10T14:02:52Z
Repo Id: 1976-01_rhel7_bats
Scratchpad:
Auto Publish: True
Config:
Generate Sqlite: True
Http: True
Https: True
Relative URL: rhel7/1976-01/rhel7_bats/
Repoview: True
Distributor Type Id: yum_distributor
Id: 1976-01
Last Override Config:
Last Publish: 2018-12-10T13:47:32Z
Last Updated: 2018-12-10T13:42:54Z
Repo Id: 1976-01_rhel7_bats
Scratchpad:
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats
total 4.0K
drwxr-xr-x 4 apache apache 4.0K Dec 10 09:02 1544450574.11
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:47 /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544449651.75 <------------------------- Broken link
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/latest/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:59 /var/lib/pulp/published/yum/http/repos/rhel7/latest/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544450358.11 <------------------------- Broken link
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/even-later/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 09:02 /var/lib/pulp/published/yum/http/repos/rhel7/even-later/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544450574.11 <----------------------------- Works
</code></pre> RPM Support - Issue #4247 (CLOSED - WONTFIX): improve performance of uploading ISOhttps://pulp.plan.io/issues/42472018-12-10T02:28:50ZZhiming
<p>Adding a search criteria to filter out units as need to improve performance of "find_repo_content_units" in pulp_rpm/plugins/importers/iso/importer.py</p>
<p>We suffered serious performance issue to uploading units (ISO) to a repository when data volume get larger and larger. After applying the change[1], performance improved. In addition, some our internal function tests had been done, it's pass. We uses pulp 2.15.</p>
<p>[1]<a href="https://github.com/pulp/pulp_rpm/pull/1236" class="external">https://github.com/pulp/pulp_rpm/pull/1236</a></p> RPM Support - Story #4229 (CLOSED - WONTFIX): Create yum repos with simple-md-filenames createrep...https://pulp.plan.io/issues/42292018-12-05T09:26:13Zvpapalia
<p>When creating a new yum repo, for metadata it appears pulp just uses default settings of --unique-md-filenames which prefixes metadata files with their checksum. We have a requirement to override this setting with --simple-md-filenames which will create metadata files without being prefixed with the files checksum. From searching it doesn't appear possible?</p> RPM Support - Issue #2774 (CLOSED - WONTFIX): Inconsistent Checksum and Checksumtype when uploadi...https://pulp.plan.io/issues/27742017-05-23T06:20:12Zyuzhengyuzheng@redhat.com
<pre><code># rpm -qa pulp-server
pulp-server-2.13.0-1.el7.noarch
</code></pre>
<p>Reproducing steps:<br>
1. Create a rpm repo</p>
<pre><code># pulp-admin rpm repo create --repo-id test-repo10
Successfully created repository [test-repo10]
</code></pre>
<p>2. Upload a drpm to the repo with --checksum-type=md5</p>
<pre><code># pulp-admin rpm repo uploads drpm --repo-id test-repo10 --file /root/test-alpha-1.1-2_1.1-3.noarch.drpm --checksum-type md5
+----------------------------------------------------------------------+
Unit Upload
+----------------------------------------------------------------------+
Extracting necessary metadata for each request...
[==================================================] 100%
Analyzing: test-alpha-1.1-2_1.1-3.noarch.drpm
... completed
Creating upload requests on the server...
[==================================================] 100%
Initializing: test-alpha-1.1-2_1.1-3.noarch.drpm
... completed
Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.
Uploading: test-alpha-1.1-2_1.1-3.noarch.drpm
[==================================================] 100%
3304/3304 bytes
... completed
Importing into the repository...
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Task Succeeded
Deleting the upload request...
... completed
</code></pre>
<p>3. Check uploaded drpm</p>
<pre><code># pulp-admin rpm repo content drpm --repo-id test-repo10
Arch: noarch
Checksum: f9476caa0f491dfa227a984b092e05f68b637471f7c7c2f648475f067f12fc2e
Checksumtype: md5
Epoch: 0
Filename: drpms/test-alpha-1.1-2_1.1-3.noarch.drpm
Release: 3
Version: 1.1
</code></pre>
<p>Checksumtype is md5, but Checksum shows a value of sha256 checksum.</p>
<pre><code># sha256sum /root/test-alpha-1.1-2_1.1-3.noarch.drpm
f9476caa0f491dfa227a984b092e05f68b637471f7c7c2f648475f067f12fc2e /root/test-alpha-1.1-2_1.1-3.noarch.drpm
</code></pre>