https://pulp.plan.io/https://pulp.plan.io/favicon.ico2016-06-12T22:56:25ZPulpRPM Support - Issue #2001: Make sure sqlite files are generated if repoview is enabledhttps://pulp.plan.io/issues/2001?journal_id=123032016-06-12T22:56:25Zttereshcttereshc@redhat.com
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>POST</i></li><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li></ul><p><a href="https://github.com/pulp/pulp_rpm/pull/906" class="external">https://github.com/pulp/pulp_rpm/pull/906</a></p>
<p>For now the logic is so:<br>
- if you want to set repoview to True and you update yum_distributor via REST API, you have to set generate_sqlite to True as well. No magic for developers.<br>
- if you want to set repoview to True and you update yum_distributor via pulp-admin, we will set generate_sqlite to True silently. Friendly for users.<br>
- If you want to set generate_sqlite to False, you have to disable repoview in any case. This way repoview won't be disabled silently, without any notice.</p> RPM Support - Issue #2001: Make sure sqlite files are generated if repoview is enabledhttps://pulp.plan.io/issues/2001?journal_id=123042016-06-13T01:33:34Zmhrivnakmhrivnak@redhat.com
<ul></ul><p>There is one edge case that is sub-optimal, but probably this is the best option anyway. Consider that a pulp-admin user creates a new repo. They then:</p>
<p>1. update the repo to enable repoview, which automatically turns on sqlite DB generation<br>
2. try it and decide they don't like it<br>
3. update the repo to disable repoview</p>
<p>They are left with sqlite DB generation still on. When the disable happens, pulp-admin wouldn't know if the user deliberately wants the sqlite DB generation on, or if it was automatically turned on, and should thus be turned back off. I think this edge case is ok to live with, and is probably the best overall user experience. I just wanted to point it out to make sure we're deliberately accepting that behavior.</p> RPM Support - Issue #2001: Make sure sqlite files are generated if repoview is enabledhttps://pulp.plan.io/issues/2001?journal_id=123172016-06-13T14:02:03Zttereshcttereshc@redhat.com
<ul><li><strong>Status</strong> changed from <i>POST</i> to <i>MODIFIED</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Make sure sqlite files are generated if repoview is enabled. closes #2001 https://pulp.plan.io/i..." href="https://pulp.plan.io/projects/pulp_rpm/repository/9/revisions/b4a46ef242cf8d96430536cfae0a0330c5f41e6a">b4a46ef242cf8d96430536cfae0a0330c5f41e6a</a>.</p> RPM Support - Issue #2001: Make sure sqlite files are generated if repoview is enabledhttps://pulp.plan.io/issues/2001?journal_id=123182016-06-13T14:03:20Zttereshcttereshc@redhat.com
<ul><li><strong>Platform Release</strong> set to <i>2.9.0</i></li></ul> RPM Support - Issue #2001: Make sure sqlite files are generated if repoview is enabledhttps://pulp.plan.io/issues/2001?journal_id=129402016-07-11T20:46:35Zpthomas@redhat.com
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>6</i></li></ul><p>[root@tigger ~]#<br>
[root@tigger ~]# pulp-admin rpm repo list --details --repo-id zoo<br>
<span><del>--------------------------------------------------------------------</del></span><br>
RPM Repositories<br>
<span><del>--------------------------------------------------------------------</del></span></p>
<p>Id: zoo<br>
Display Name: None<br>
Description: None<br>
Content Unit Counts:<br>
Erratum: 4<br>
Package Category: 1<br>
Package Group: 2<br>
Rpm: 32<br>
Notes:<br>
Scratchpad:<br>
Checksum Type: sha256<br>
Importers:<br>
Config:<br>
Download Policy: background<br>
Feed: <a href="https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/z" class="external">https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/z</a><br>
oo/<br>
Id: yum_importer<br>
Importer Type Id: yum_importer<br>
Last Sync: 2016-07-08T15:40:14Z<br>
Repo Id: zoo<br>
Scratchpad:<br>
Previous Skip List:<br>
Repomd Revision: 1331832478<br>
Distributors:<br>
Auto Publish: True<br>
Config:<br>
Checksum Type: sha256<br>
Http: False<br>
Https: True<br>
Relative URL: repos/pulp/pulp/demo_repos/zoo/<br>
Distributor Type Id: yum_distributor<br>
Id: yum_distributor<br>
Last Override Config:<br>
Last Publish: 2016-07-08T15:40:22Z<br>
Last Updated: 2016-07-08T15:40:22Z<br>
Repo Id: zoo<br>
Scratchpad:<br>
Auto Publish: False<br>
Config:<br>
Http: False<br>
Https: True<br>
Relative URL: repos/pulp/pulp/demo_repos/zoo/<br>
Distributor Type Id: export_distributor<br>
Id: export_distributor<br>
Last Override Config:<br>
Last Publish: None<br>
Last Updated: 2016-07-11T18:29:47Z<br>
Repo Id: zoo<br>
Scratchpad:</p>
<p>[root@tigger ~]# pulp-admin rpm repo update --repo-id zoo --repoview true<br>
This command may be exited via ctrl+c without affecting the request.</p>
<p>[\]<br>
Running...</p>
<p>Task Succeeded</p>
<p>[root@tigger ~]# pulp-admin rpm repo list --details --repo-id zoo<br>
<span><del>--------------------------------------------------------------------</del></span><br>
RPM Repositories<br>
<span><del>--------------------------------------------------------------------</del></span></p>
<p>Id: zoo<br>
Display Name: None<br>
Description: None<br>
Content Unit Counts:<br>
Erratum: 4<br>
Package Category: 1<br>
Package Group: 2<br>
Rpm: 32<br>
Notes:<br>
Scratchpad:<br>
Checksum Type: sha256<br>
Importers:<br>
Config:<br>
Download Policy: background<br>
Feed: <a href="https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/z" class="external">https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/z</a><br>
oo/<br>
Id: yum_importer<br>
Importer Type Id: yum_importer<br>
Last Sync: 2016-07-08T15:40:14Z<br>
Repo Id: zoo<br>
Scratchpad:<br>
Previous Skip List:<br>
Repomd Revision: 1331832478<br>
Distributors:<br>
Auto Publish: True<br>
Config:<br>
Checksum Type: sha256<br>
Generate Sqlite: True<br>
Http: False<br>
Https: True<br>
Relative URL: repos/pulp/pulp/demo_repos/zoo/<br>
Repoview: True<br>
Distributor Type Id: yum_distributor<br>
Id: yum_distributor<br>
Last Override Config:<br>
Last Publish: 2016-07-08T15:40:22Z<br>
Last Updated: 2016-07-11T20:42:20Z<br>
Repo Id: zoo<br>
Scratchpad:<br>
Auto Publish: False<br>
Config:<br>
Http: False<br>
Https: True<br>
Relative URL: repos/pulp/pulp/demo_repos/zoo/<br>
Distributor Type Id: export_distributor<br>
Id: export_distributor<br>
Last Override Config:<br>
Last Publish: None<br>
Last Updated: 2016-07-11T18:29:47Z<br>
Repo Id: zoo<br>
Scratchpad:</p>
<p>[root@tigger ~]# pulp-admin rpm repo update --repo-id zoo --generate-sqlite false<br>
This command may be exited via ctrl+c without affecting the request.</p>
<p>[\]<br>
Running...<br>
Updating distributor: yum_distributor</p>
<p>Task Failed</p>
<p>Repoview functionality depends on the sqlite files. If you want to enable<br>
`repoview` option, enable `generate_sqlite` as well. If you want to disable<br>
`generate_sqlite` option, disable `repoview` as well.</p>
<p>[root@tigger ~]# pulp-admin rpm repo update --repo-id zoo --generate-sqlite false --repoview false<br>
This command may be exited via ctrl+c without affecting the request.</p>
<p>[\]<br>
Running...<br>
Updating distributor: yum_distributor</p>
<p>Task Succeeded</p>
<p>[\]<br>
Running...<br>
Updating distributor: export_distributor</p>
<p>Task Succeeded</p>
<p>[root@tigger ~]# pulp-admin rpm repo list --details --repo-id zoo+----------------------------------------------------------------------+<br>
RPM Repositories<br>
<span><del>--------------------------------------------------------------------</del></span></p>
<p>Id: zoo<br>
Display Name: None<br>
Description: None<br>
Content Unit Counts:<br>
Erratum: 4<br>
Package Category: 1<br>
Package Group: 2<br>
Rpm: 32<br>
Notes:<br>
Scratchpad:<br>
Checksum Type: sha256<br>
Importers:<br>
Config:<br>
Download Policy: background<br>
Feed: <a href="https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/z" class="external">https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/z</a><br>
oo/<br>
Id: yum_importer<br>
Importer Type Id: yum_importer<br>
Last Sync: 2016-07-08T15:40:14Z<br>
Repo Id: zoo<br>
Scratchpad:<br>
Previous Skip List:<br>
Repomd Revision: 1331832478<br>
Distributors:<br>
Auto Publish: True<br>
Config:<br>
Checksum Type: sha256<br>
Generate Sqlite: False<br>
Http: False<br>
Https: True<br>
Relative URL: repos/pulp/pulp/demo_repos/zoo/<br>
Repoview: False<br>
Distributor Type Id: yum_distributor<br>
Id: yum_distributor<br>
Last Override Config:<br>
Last Publish: 2016-07-08T15:40:22Z<br>
Last Updated: 2016-07-11T20:45:16Z<br>
Repo Id: zoo<br>
Scratchpad:<br>
Auto Publish: False<br>
Config:<br>
Generate Sqlite: False<br>
Http: False<br>
Https: True<br>
Relative URL: repos/pulp/pulp/demo_repos/zoo/<br>
Distributor Type Id: export_distributor<br>
Id: export_distributor<br>
Last Override Config:<br>
Last Publish: None<br>
Last Updated: 2016-07-11T20:45:16Z<br>
Repo Id: zoo<br>
Scratchpad:</p> RPM Support - Issue #2001: Make sure sqlite files are generated if repoview is enabledhttps://pulp.plan.io/issues/2001?journal_id=129702016-07-12T20:00:57Zsemyerssean.myers@redhat.com
<ul><li><strong>Status</strong> changed from <i>6</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> RPM Support - Issue #2001: Make sure sqlite files are generated if repoview is enabledhttps://pulp.plan.io/issues/2001?journal_id=388392019-04-15T20:28:54Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>