https://pulp.plan.io/https://pulp.plan.io/favicon.ico2016-11-13T23:05:30ZPulpPulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=157522016-11-13T23:05:30Zdarkfaderflorian.heigl@gmail.com
<ul></ul><p>I also don't know where it is actually missing, i.e. here we still got it:<br>
/usr/lib/python2.7/site-packages/pulp_rpm/extensions/admin/repo_options.py</p>
<ol>
<li>publish options<br>
d = _('if "true", on each successful sync the repository will automatically be '<br>
'published on the configured protocols; if "false" synchronized content '<br>
'will only be available after manually publishing the repository; '<br>
'defaults to "true"')<br>
OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,<br>
parse_func=parsers.parse_boolean)</li>
</ol>
<p>So, it would be great if someone can at least confirm it's supposed to work.<br>
I have two servers that pretend it's not there.</p> Pulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=158272016-11-15T16:39:57Zmhrivnakmhrivnak@redhat.com
<ul></ul><p>Thanks for the bug report.</p>
<p>I am having trouble finding any release of pulp_rpm that did include --auto-publish on the repo create or update command. It looks like that option is available in code, but is unused. It gets instantiated, but never added to a command.</p>
<p>I grepped all 2.8 releases for OPT_AUTO_PUBLISH, auto-publish, and autopublish as shown below. I didn't find anywhere that any of them get used.</p>
<p>I did find this line of code commented out, with a comment from 2012 explaining why:</p>
<p><a href="https://github.com/pulp/pulp_rpm/blob/2.10-release/extensions_admin/pulp_rpm/extensions/admin/repo_options.py#L124" class="external">https://github.com/pulp/pulp_rpm/blob/2.10-release/extensions_admin/pulp_rpm/extensions/admin/repo_options.py#L124</a></p>
<p>So it looks to me like this has never been available in pulp_rpm, but if you can help us identify a release where it was available, that would bump our priority for adding it back.</p>
<pre><code>$ echo $TAGS
pulp-rpm-2.8.0-1 pulp-rpm-2.8.1-1 pulp-rpm-2.8.2-1 pulp-rpm-2.8.3-1 pulp-rpm-2.8.4-1 pulp-rpm-2.8.5-1 pulp-rpm-2.8.6-1 pulp-rpm-2.8.7-1
[mhrivnak@dhcp129-40 pulp_rpm]$ for T in $TAGS; do git checkout -q $T; grep -r OPT_AUTO_PUBLISH; done
Binary file extensions_admin/pulp_rpm/extensions/admin/repo_options.pyc matches
extensions_admin/pulp_rpm/extensions/admin/repo_options.py:OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,
extensions_admin/pulp_rpm/extensions/admin/repo_options.py: # publish_group.add_option(OPT_AUTO_PUBLISH)
Binary file extensions_admin/pulp_rpm/extensions/admin/repo_options.pyc matches
extensions_admin/pulp_rpm/extensions/admin/repo_options.py:OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,
extensions_admin/pulp_rpm/extensions/admin/repo_options.py: # publish_group.add_option(OPT_AUTO_PUBLISH)
Binary file extensions_admin/pulp_rpm/extensions/admin/repo_options.pyc matches
extensions_admin/pulp_rpm/extensions/admin/repo_options.py:OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,
extensions_admin/pulp_rpm/extensions/admin/repo_options.py: # publish_group.add_option(OPT_AUTO_PUBLISH)
Binary file extensions_admin/pulp_rpm/extensions/admin/repo_options.pyc matches
extensions_admin/pulp_rpm/extensions/admin/repo_options.py:OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,
extensions_admin/pulp_rpm/extensions/admin/repo_options.py: # publish_group.add_option(OPT_AUTO_PUBLISH)
Binary file extensions_admin/pulp_rpm/extensions/admin/repo_options.pyc matches
extensions_admin/pulp_rpm/extensions/admin/repo_options.py:OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,
extensions_admin/pulp_rpm/extensions/admin/repo_options.py: # publish_group.add_option(OPT_AUTO_PUBLISH)
Binary file extensions_admin/pulp_rpm/extensions/admin/repo_options.pyc matches
extensions_admin/pulp_rpm/extensions/admin/repo_options.py:OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,
extensions_admin/pulp_rpm/extensions/admin/repo_options.py: # publish_group.add_option(OPT_AUTO_PUBLISH)
Binary file extensions_admin/pulp_rpm/extensions/admin/repo_options.pyc matches
extensions_admin/pulp_rpm/extensions/admin/repo_options.py:OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,
extensions_admin/pulp_rpm/extensions/admin/repo_options.py: # publish_group.add_option(OPT_AUTO_PUBLISH)
Binary file extensions_admin/pulp_rpm/extensions/admin/repo_options.pyc matches
extensions_admin/pulp_rpm/extensions/admin/repo_options.py:OPT_AUTO_PUBLISH = PulpCliOption('--auto-publish', d, required=False,
extensions_admin/pulp_rpm/extensions/admin/repo_options.py: # publish_group.add_option(OPT_AUTO_PUBLISH)
</code></pre> Pulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=158282016-11-15T16:54:25Zdarkfaderflorian.heigl@gmail.com
<ul></ul><p>I think we started out in 2.3/2.4, maybe I had somehow re-enabled it to 2.8...<br>
I'm having a hard time finding out about that too, otherwise I'd have included the info.</p>
<p>I know it was there because it's been part of the release process.<br>
I'll try to uncomment that line and see what happens.<br>
My memory says if one <em>tries</em> to publish a repo that has neither enabled, things get ugly, but not uglier than not having the option at all.</p>
<p>Do you think the "fixme" from 2012 is still valid?<br>
To me it sounds like it was removed back then and is concerned about <em>updating</em> the flag.<br>
I'm also certain that never worked. But giving it at creation? it was possible.<br>
Maybe it had some bugs and got turned off, that's what it sounds like.</p>
<p>I'll see how I can get to this. Either I set up some outdated pulp server or something else I can't think of now.</p>
<p>Logic tells me it's been there. Take a step back: any of those flags must've originally gone back to the RPM mode. It's even been in the v1 manual. I think I also came across a few list posts that had it disabled in V2.<br>
At some point it was temporarily disabled because of the mentioned API issue. and then it apparently got lost :-)</p>
<p>I'll dig into old versions and report back.<br>
My priority is to just turn it back on though :-)</p> Pulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=158532016-11-16T14:53:39Zmhrivnakmhrivnak@redhat.com
<ul></ul><p>I tried uncommenting that option and using it, but it did not work. No errors were seen, but the setting did not get changed.</p>
<p>For now, you can change the value of the auto_publish setting using the API directly like this:</p>
<pre><code>curl -X PUT -d '{"delta": {"auto_publish": true}, "distributor_config": {}}' -E ~/.pulp/user-cert.pem https://localhost/pulp/api/v2/repositories/zoo/distributors/yum_distributor/
</code></pre> Pulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=158632016-11-17T13:10:30Zdarkfaderflorian.heigl@gmail.com
<ul></ul><p>Thanks! I had no recollection of how to do that via curl + api ;-)</p> Pulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=158852016-11-18T15:52:40Zbizhangbizhang@redhat.com
<ul><li><strong>Severity</strong> changed from <i>2. Medium</i> to <i>1. Low</i></li><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li><li><strong>Tags</strong> <i>Documentation</i> added</li></ul> Pulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=370262019-04-12T19:43:10Zbmbouterbmbouter@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>CLOSED - WONTFIX</i></li></ul> Pulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=371562019-04-12T19:51:33Zbmbouterbmbouter@redhat.com
<ul></ul><p>Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the <a href="https://www.redhat.com/mailman/listinfo/pulp-dev" class="external">developer mailing list</a>.</p> Pulp - Issue #2418: pulp-admin rpm provider lost auto-publishhttps://pulp.plan.io/issues/2418?journal_id=385622019-04-15T20:23:26Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>