<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I have now solved this problem.</p>
<p>The answer is that the pulp-2to3-migration process was trying to
contact mongod at 172.17.0.1:27017. This is the wrong address. The
following information was found in /var/log/messages:<br>
</p>
<p>May 13 13:04:23 honeybee gunicorn: pulp
[f3e566cf4f3a4007bcd171939c14d88b]:
pulp_2to3_migration.pulp2.connection:INFO: Attempting to connect
to 172.17.0.1:27017<br>
</p>
<p>The documentation [1] says that by default its configured to
connect to localhost:27017.</p>
<p>localhost is not 172.17.0.1.</p>
<p>localhost should be 127.0.0.1.</p>
<p>Perhaps the default IP address is coded incorrectly?</p>
<p>I have changed the configuration in /etc/pulp/settings.py and
added te PULP2_MONGODB section as described in the documentation
[1], and restarted the pulpcore-api process</p>
<p>systemctl restart pulpcore-api</p>
<p>I am now able to create the plan sucessfully:</p>
<p>[root@honeybee plans]# pulp migration plan create
--plan='{"plugins": [{"type": "rpm"}]}'<br>
{<br>
"pulp_href": "/pulp/api/v3/migration-plans/<UUID>/",<br>
"pulp_created": "2021-05-17T06:34:34.750318Z",<br>
"plan": {<br>
"plugins": [<br>
{<br>
"type": "rpm"<br>
}<br>
]<br>
}<br>
}<br>
[root@honeybee plans]# <br>
</p>
<p>Finally it worked!</p>
<p>Ben.<br>
</p>
<p><br>
</p>
<p>[1]
<a class="moz-txt-link-freetext" href="https://pulp-2to3-migration.readthedocs.io/en/latest/configuration.html">https://pulp-2to3-migration.readthedocs.io/en/latest/configuration.html</a><br>
</p>
<div class="moz-cite-prefix">On 14/5/21 4:34 pm, Matthias Dellweg
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG+ryNzs03TQ1RYRWc1CAEvi2CD0rtpQofSFD48LEn2vgU1SXA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>It seems to be the mongodb pulp is unable to connect to.</div>
<div>Can you check with systemctl it is up and running after the
upgrade?<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, May 14, 2021 at 4:32
AM Ben Stanley <<a href="mailto:ben.stanley@gmail.com"
moz-do-not-send="true">ben.stanley@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This
problem is preventing me from making further progress
migrating my <br>
server now.<br>
<br>
Could I please get some help to diagnose the problem and get
the system <br>
going again?<br>
<br>
Thanks,<br>
Ben Stanley<br>
<br>
On 13/5/21 1:20 pm, Ben Stanley wrote:<br>
> Hello pulp-list,<br>
><br>
> I was able to migrate my pulp2 iso repos using
pulp-2to3-migration, <br>
> but now that I try to do the same with my rpm repos, I
get the following:<br>
><br>
> [root@honeybee ~]# pulp migration plan create
--plan='{"plugins": <br>
> [{"type": "rpm"}]}'<br>
> Error: <h1>Server Error (500)</h1><br>
> [root@honeybee ~]#<br>
><br>
> In between the successful and the failed migration, I
have upgraded <br>
> pulp to 3.12.2.<br>
><br>
> [root@honeybee ~]# pulp status<br>
> {<br>
> "versions": [<br>
> {<br>
> "component": "core",<br>
> "version": "3.12.2"<br>
> },<br>
> {<br>
> "component": "pulp_2to3_migration",<br>
> "version": "0.11.0"<br>
> },<br>
> {<br>
> "component": "rpm",<br>
> "version": "3.10.0"<br>
> },<br>
> {<br>
> "component": "python",<br>
> "version": "3.2.0"<br>
> },<br>
> {<br>
> "component": "file",<br>
> "version": "1.7.0"<br>
> },<br>
> {<br>
> "component": "deb",<br>
> "version": "2.11.1"<br>
> },<br>
> {<br>
> "component": "container",<br>
> "version": "2.5.1"<br>
> },<br>
> {<br>
> "component": "ansible",<br>
> "version": "0.7.2"<br>
> }<br>
> ],<br>
><br>
> I looked at the system log (attached) and I found that it
failed to <br>
> initialise the database connection. How can I
diagnose/repair this <br>
> problem?<br>
><br>
> Thanks,<br>
> Ben Stanley.<br>
><br>
><br>
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank"
moz-do-not-send="true">Pulp-list@redhat.com</a><br>
<a
href="https://listman.redhat.com/mailman/listinfo/pulp-list"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://listman.redhat.com/mailman/listinfo/pulp-list</a></blockquote>
</div>
</blockquote>
</body>
</html>