[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] DB migration failing



On Mon 28 May 2012 04:39:20 AM EDT, Andy Kelk wrote:
Hello,

I just upgraded to pulp 1.1.10 (1.1.10-1.el6) and had to run a db
migration. Unfortunately the migration fails because one of the
packages contains a period in the name.

> From /var/log/pulp/db.log:

migration to data model version 40 started
key 'openoffice.org-langpack-en' must not contain '.'
Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/script.py",
line 89, in datamodel_migration
     mod.migrate()
   File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/versions/forty.py",
line 34, in migrate
     migrate_repos()
   File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/versions/forty.py",
line 30, in migrate_repos
     collection.save(repo)
   File "/usr/lib/python2.6/site-packages/pulp/server/db/connection.py",
line 80, in retry
     return method(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/pymongo/collection.py",
line 237, in save
     manipulate, safe, _check_keys=True, **kwargs)
   File "/usr/lib/python2.6/site-packages/pulp/server/db/connection.py",
line 80, in retry
     return method(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/pymongo/collection.py",
line 411, in update
     _check_keys, self.__uuid_subtype), safe)
InvalidDocument: key 'openoffice.org-langpack-en' must not contain '.'

migration to data model version 40 failed



Is there a way to workaround this problem?


Yea this is due to the version of pymongo. I put in a FAQ with workaround here https://fedorahosted.org/pulp/wiki/UGFAQ#rpmname

~ Prad


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]