# rpm -qa | grep mongo
python-pymongo-gridfs-3.2-2.el7.x86_64
python-pymongo-3.2-2.el7.x86_64
python-mongoengine-0.10.5-1.el7.noarch
mongodb-server-2.6.12-6.el7.x86_64

Applied the changes from below and re-ran the migration:

…
Applying pulp.server.db.migrations version 29
*******************************************************************************
Migration to pulp.server.db.migrations version 29 complete in 0.002 seconds.
Migration package pulp_deb.plugins.migrations is up to date at version 1
Migration package pulp_docker.plugins.migrations is up to date at version 6
Migration package pulp_puppet.plugins.migrations is up to date at version 5
Migration package pulp_python.plugins.migrations is up to date at version 2
Applying pulp_rpm.plugins.migrations version 45
*******************************************************************************
* Migrating RPM content...
* Migrated units: 9167 of 91675
* Migrated units: 18334 of 91675
* Migrated units: 27501 of 91675
* Migrated units: 36668 of 91675
* Migrated units: 45835 of 91675
* Migrated units: 55002 of 91675
* Migrated units: 64169 of 91675
* Migrated units: 73336 of 91675
* Migrated units: 82503 of 91675
* Migrated units: 91670 of 91675
* Migrated units: 91675 of 91675
*******************************************************************************
Migration to pulp_rpm.plugins.migrations version 45 complete in 204.198 seconds.
Applying pulp_rpm.plugins.migrations version 46
*******************************************************************************
*******************************************************************************
* Migrating RPM content...
* Migrated units: 99418 of 99418
*******************************************************************************
Migration to pulp_rpm.plugins.migrations version 46 complete in 67.507 seconds.
Applying pulp_rpm.plugins.migrations version 47
*******************************************************************************
Migration to pulp_rpm.plugins.migrations version 47 complete in 0.002 seconds.
Database migrations complete.

Looks good so far.

Jim

From: David Davis <[email protected]>
Sent: Tuesday, December 4, 2018 2:53 PM
To: Jim Davis <[email protected]>
Cc: pulp-list <[email protected]>
Subject: Re: [Pulp-list] db migration with pulp update to 2.18.0 failed

Jim,

What version of pymongo and mongodb do you have on your system? You can check 
with: rpm -qa | grep mongo.

I think you could make the following fix in 
/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0029_applicability_schema_change.py:

https://gist.github.com/04eed3d374a01cad34cbe97bb1222794

Also, make sure you remove 0029_applicability_schema_change.pyc and 
0029_applicability_schema_change.pyo (if they exist).

If this works for you, please report back.

David
_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to