https://pulp.plan.io/https://pulp.plan.io/favicon.ico2021-04-07T19:57:34ZPulpMigration Plugin - Task #8522: Ensure compatibility with Distribution changes in pulpcore 3.12https://pulp.plan.io/issues/8522?journal_id=694422021-04-07T19:57:34Zdalleydalley@redhat.com
<ul></ul><p>tteresch, FYI</p>
<pre><code><dalley> ttereshc, I remember one of the issues I had when I was trying this approach out
<dalley> apparently the way app loading is done in django 2.2, the global_apps.is_installed() doesn't use the same "name" as other mechanisms. you have to put like pulp_file.app or something instead of just "file"
<dalley> I got the impression that it's unintended but not normally a problem unless you're doing weird things with app loading like we are
</code></pre> Migration Plugin - Task #8522: Ensure compatibility with Distribution changes in pulpcore 3.12https://pulp.plan.io/issues/8522?journal_id=701002021-04-28T13:59:57Zipanova@redhat.comipanova@redhat.com
<ul></ul><pre><code>Out[7]: <Pulp2Distributor: pk=d91be2a8-607c-470c-9d10-452dd14ee99d>
pulp2dist[0].pulp3_distribution
distribution
Out[9]: <FileDistribution: 60885969415f6e243c5f8359-pupsik>
pulp2dist[0].pulp3_distribution=distribution
Traceback (most recent call last):
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/IPython/core/interactiveshell.py", line 3343, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-10-dba9d8b472f6>", line 1, in <module>
pulp2dist[0].pulp3_distribution=distribution
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 301, in __set__
super().__set__(instance, value)
File "/usr/local/lib/pulp/lib64/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 211, in __set__
self.field.remote_field.model._meta.object_name,
ValueError: Cannot assign "<FileDistribution: 60885969415f6e243c5f8359-pupsik>": "Pulp2Distributor.pulp3_distribution" must be a "BaseDistribution" instance.
</code></pre>
<p>This is what i have spotted with the debugger during the migration.</p> Migration Plugin - Task #8522: Ensure compatibility with Distribution changes in pulpcore 3.12https://pulp.plan.io/issues/8522?journal_id=706662021-05-12T11:23:41Zipanova@redhat.comipanova@redhat.com
<ul></ul><p>in addition these changes need to be applied <a href="https://github.com/pulp/pulp-2to3-migration/pull/355/files" class="external">https://github.com/pulp/pulp-2to3-migration/pull/355/files</a></p> Migration Plugin - Task #8522: Ensure compatibility with Distribution changes in pulpcore 3.12https://pulp.plan.io/issues/8522?journal_id=715612021-06-02T14:02:05Zggainey
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>ASSIGNED</i></li><li><strong>Assignee</strong> set to <i>ggainey</i></li><li><strong>Sprint</strong> set to <i>Sprint 98</i></li></ul> Migration Plugin - Task #8522: Ensure compatibility with Distribution changes in pulpcore 3.12https://pulp.plan.io/issues/8522?journal_id=717292021-06-07T21:35:08Zggainey
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>POST</i></li></ul><p><a href="https://github.com/pulp/pulp-2to3-migration/pull/378" class="external">https://github.com/pulp/pulp-2to3-migration/pull/378</a></p> Migration Plugin - Task #8522: Ensure compatibility with Distribution changes in pulpcore 3.12https://pulp.plan.io/issues/8522?journal_id=718662021-06-11T18:10:52Zggainey
<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="Code changes for pulpcore-3.13 compatibility. enqueue_with_reservation() -> dispatch() BaseDistr..." href="https://pulp.plan.io/projects/pulp/repository/pulp-2to3-migration/revisions/dda7d29571a8284f6572795f53a342ff1ff4abf0">pulp:pulp-2to3-migration|dda7d29571a8284f6572795f53a342ff1ff4abf0</a>.</p> Migration Plugin - Task #8522: Ensure compatibility with Distribution changes in pulpcore 3.12https://pulp.plan.io/issues/8522?journal_id=719662021-06-15T19:06:33Zpulpbot
<ul><li><strong>Sprint/Milestone</strong> set to <i>0.12.0</i></li></ul> Migration Plugin - Task #8522: Ensure compatibility with Distribution changes in pulpcore 3.12https://pulp.plan.io/issues/8522?journal_id=720802021-06-17T20:49:59Zpulpbot
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul>