<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>I have succeeded in migrating my pulp2 content to pulp3 and all repos look complete (i've reran the migration and no new repoversions are generated). </p>
<p><br>
</p>
<p>In an attempt to test the multirepo copy functionality described at </p>
<p><a href="https://pulp-rpm.readthedocs.io/en/latest/workflows/copy.html#recipes" class="OWAAutoLink" id="LPlnk69478" previewremoved="true">https://pulp-rpm.readthedocs.io/en/latest/workflows/copy.html#recipes</a> </p>
<p><br>
</p>
<p>, I created a couple of new, empty repos and tried to copy errata from my migrated RHEL8-appstream repo to them: </p>
<p></p>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">POST /pulp/api/v3/rpm/copy/</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">config:=[</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">    {"source_repo_version": "</span><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;"><rhel8-appstream-version-href></span><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">",
 "dest_repo": "my-new-repo1</span><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">", "content": [</span><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">$ADVISORY_HREF1]},</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">    {"source_repo_version": "</span><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;"><rhel8-baseos-version-href></span><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">",
 "dest_repo": "my-new-repo2", "content": []},</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">]</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">dependency_solving=False</span></div>
<br>
<p></p>
<p><br>
</p>
<p><span style="font-size: 12pt;">All looks correct, but the operation ultimately fails with the following error:</span><br>
</p>
<p></p>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">        "description": "Modulemd matching query does not exist.",</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">        "traceback": "  File \"/usr/lib/python3.6/site-packages/rq/worker.py\", line 883, in perform_job\n    rv = job.perform()\n  File \"/usr/lib/python3.6/site-packages/rq/job.py\",
 line 657, in perform\n    self._result = self._execute()\n  File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 663, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/usr/lib64/python3.6/contextlib.py\", line 52, in inner\n    return
 func(*args, **kwds)\n  File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/copy.py\", line 167, in copy_content\n    content_to_copy |= find_children_of_content(content_to_copy, source_repo_version)\n  File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/copy.py\",
 line 74, in find_children_of_content\n    name=name, stream=stream, version=version, context=context, arch=arch)\n  File \"/usr/lib/python3.6/site-packages/django/db/models/query.py\", line 408, in get\n    self.model._meta.object_name\n"</span></div>
<div><span style="font-family: Consolas, Courier, monospace; font-size: 8pt;">    },</span></div>
<div><br>
</div>
Any ideas why this happens?
<p></p>
<p><br>
</p>
<p>Regards,</p>
<p>Adam</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>