[Pulp-list] db migration with pulp update to 2.18.0 failed

David Davis daviddavis at redhat.com
Wed Dec 5 00:32:04 UTC 2018


Jim,

Thanks for the response. I opened the following bug for the error you hit:

https://pulp.plan.io/issues/4225

I also wanted to suggest that you think about upgrading mongo to a 3.x
release. 2.6 reached its end of life in 2016.

David


On Tue, Dec 4, 2018 at 6:21 PM Jim Davis <JDavis at douglas.co.us> wrote:

> # 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 <daviddavis at redhat.com>
> *Sent:* Tuesday, December 4, 2018 2:53 PM
> *To:* Jim Davis <JDavis at douglas.co.us>
> *Cc:* pulp-list <pulp-list at redhat.com>
> *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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20181204/e1224b44/attachment.htm>


More information about the Pulp-list mailing list