https://pulp.plan.io/https://pulp.plan.io/favicon.ico2020-09-11T20:02:14ZPulpPulp - Issue #7493: Installer: remove auth migration taskhttps://pulp.plan.io/issues/7493?journal_id=622492020-09-11T20:02:14Zmdepaulo@redhat.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-11 priority-6 priority-default closed" href="/issues/7499">Issue #7499</a>: pulp_installer is unpredictable about when it resets the admin password</i> added</li></ul> Pulp - Issue #7493: Installer: remove auth migration taskhttps://pulp.plan.io/issues/7493?journal_id=622572020-09-14T09:35:10Zosapryki
<ul></ul><p>The issue is caused by the <a href="https://github.com/django-guardian/django-guardian/blob/devel/guardian/management/__init__.py#L40" class="external">post migration hook</a> installed by the <code>django-guardian</code> package. The hook attempts to create an anonymous user. However since the user table is not a part of the <code>django.contrib.auth</code> application and is not available after applying <code>auth</code> migrations subset, the hook fails.</p>
<p>From <code>django-guardian</code> package code it appears that the post migration hook is controlled by the <code>ANONYMOUS_USER_NAME</code> settings parameter. If no <code>ANONYMOUS_USER_NAME</code> is set, it is set by default to <code>AnonymousUser</code> in <a href="https://github.com/django-guardian/django-guardian/blob/master/guardian/conf/settings.py#L13" class="external">settings.py#L13</a>.</p>
<p>As a workaround for this situation, creation of anonymous user can be disabled while applying <code>auth</code> migrations:</p>
<pre><code>$ PULP_ANONYMOUS_USER_NAME='@none None' django-admin manage migrate --no-input auth
</code></pre> Pulp - Issue #7493: Installer: remove auth migration taskhttps://pulp.plan.io/issues/7493?journal_id=622652020-09-14T12:55:35Zrchan
<ul></ul><p><a href="https://github.com/pulp/pulp_installer/pull/427" class="external">https://github.com/pulp/pulp_installer/pull/427</a></p> Pulp - Issue #7493: Installer: remove auth migration taskhttps://pulp.plan.io/issues/7493?journal_id=622682020-09-14T17:53:17Zpulpbot
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>POST</i></li></ul><p>PR: <a href="https://github.com/pulp/pulp_installer/pull/433" class="external">https://github.com/pulp/pulp_installer/pull/433</a></p> Pulp - Issue #7493: Installer: remove auth migration taskhttps://pulp.plan.io/issues/7493?journal_id=622772020-09-15T07:53:58Zchouseknecht
<ul><li><strong>Status</strong> changed from <i>POST</i> to <i>MODIFIED</i></li></ul><p>Applied in changeset <a class="changeset" title="Allow auth migrations to work when installing galaxy_ng fixes: #7493" href="https://pulp.plan.io/projects/pulp/repository/ansible-pulp/revisions/0a0c3bbc5ad904e0cc0d0532136a565fcd0f30d1">ansible-pulp|0a0c3bbc5ad904e0cc0d0532136a565fcd0f30d1</a>.</p> Pulp - Issue #7493: Installer: remove auth migration taskhttps://pulp.plan.io/issues/7493?journal_id=639522020-10-20T15:48:33Zttereshcttereshc@redhat.com
<ul><li><strong>Sprint/Milestone</strong> set to <i>3.8.0</i></li></ul> Pulp - Issue #7493: Installer: remove auth migration taskhttps://pulp.plan.io/issues/7493?journal_id=640492020-10-21T14:49:10Zttereshcttereshc@redhat.com
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul>