[Pulp-list] pulp-2to3-migration plan create Server Error 500

Ben Stanley ben.stanley at gmail.com
Mon May 17 06:49:53 UTC 2021


I have now solved this problem.

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:

May 13 13:04:23 honeybee gunicorn: pulp 
[f3e566cf4f3a4007bcd171939c14d88b]: 
pulp_2to3_migration.pulp2.connection:INFO: Attempting to connect to 
172.17.0.1:27017

The documentation [1] says that by default its configured to connect to 
localhost:27017.

localhost is not 172.17.0.1.

localhost should be 127.0.0.1.

Perhaps the default IP address is coded incorrectly?

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

systemctl restart pulpcore-api

I am now able to create the plan sucessfully:

[root at honeybee plans]# pulp migration plan create --plan='{"plugins": 
[{"type": "rpm"}]}'
{
   "pulp_href": "/pulp/api/v3/migration-plans/<UUID>/",
   "pulp_created": "2021-05-17T06:34:34.750318Z",
   "plan": {
     "plugins": [
       {
         "type": "rpm"
       }
     ]
   }
}
[root at honeybee plans]#

Finally it worked!

Ben.


[1] https://pulp-2to3-migration.readthedocs.io/en/latest/configuration.html

On 14/5/21 4:34 pm, Matthias Dellweg wrote:
> It seems to be the mongodb pulp is unable to connect to.
> Can you check with systemctl it is up and running after the upgrade?
>
> On Fri, May 14, 2021 at 4:32 AM Ben Stanley <ben.stanley at gmail.com 
> <mailto:ben.stanley at gmail.com>> wrote:
>
>     This problem is preventing me from making further progress
>     migrating my
>     server now.
>
>     Could I please get some help to diagnose the problem and get the
>     system
>     going again?
>
>     Thanks,
>     Ben Stanley
>
>     On 13/5/21 1:20 pm, Ben Stanley wrote:
>     > Hello pulp-list,
>     >
>     > I was able to migrate my pulp2 iso repos using pulp-2to3-migration,
>     > but now that I try to do the same with my rpm repos, I get the
>     following:
>     >
>     > [root at honeybee ~]# pulp migration plan create --plan='{"plugins":
>     > [{"type": "rpm"}]}'
>     > Error: <h1>Server Error (500)</h1>
>     > [root at honeybee ~]#
>     >
>     > In between the successful and the failed migration, I have upgraded
>     > pulp to 3.12.2.
>     >
>     > [root at honeybee ~]# pulp status
>     > {
>     >   "versions": [
>     >     {
>     >       "component": "core",
>     >       "version": "3.12.2"
>     >     },
>     >     {
>     >       "component": "pulp_2to3_migration",
>     >       "version": "0.11.0"
>     >     },
>     >     {
>     >       "component": "rpm",
>     >       "version": "3.10.0"
>     >     },
>     >     {
>     >       "component": "python",
>     >       "version": "3.2.0"
>     >     },
>     >     {
>     >       "component": "file",
>     >       "version": "1.7.0"
>     >     },
>     >     {
>     >       "component": "deb",
>     >       "version": "2.11.1"
>     >     },
>     >     {
>     >       "component": "container",
>     >       "version": "2.5.1"
>     >     },
>     >     {
>     >       "component": "ansible",
>     >       "version": "0.7.2"
>     >     }
>     >   ],
>     >
>     > I looked at the system log (attached) and I found that it failed to
>     > initialise the database connection. How can I diagnose/repair this
>     > problem?
>     >
>     > Thanks,
>     > Ben Stanley.
>     >
>     >
>
>     _______________________________________________
>     Pulp-list mailing list
>     Pulp-list at redhat.com <mailto:Pulp-list at redhat.com>
>     https://listman.redhat.com/mailman/listinfo/pulp-list
>     <https://listman.redhat.com/mailman/listinfo/pulp-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20210517/fce97a94/attachment.htm>


More information about the Pulp-list mailing list