Bug 681289 - pulp-migrate ends with a traceback
Summary: pulp-migrate ends with a traceback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-03-01 17:05 UTC by Pradeep Kilambi
Modified: 2014-03-31 01:39 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:10:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Pradeep Kilambi 2011-03-01 17:05:31 UTC
Description of problem:

$ sudo pulp-migrate 
clearing previous versions
migration to version 2 failed, see /var/log/pulp/db.log for details


'Collection' object is not callable. If you meant to call the 'user' method on a 'Collection' object it is failing because no such method exists.
Traceback (most recent call last):
  File "/home/pkilambi/code/pulp/src/pulp/server/db/migrate/script.py", line 87, in datamodel_migration
    mod.migrate()
  File "/home/pkilambi/code/pulp/src/pulp/server/db/migrate/versions/two.py", line 106, in migrate
    _migrate_consumer_model()
  File "/home/pkilambi/code/pulp/src/pulp/server/db/migrate/versions/two.py", line 54, in _migrate_consumer_model
    user = user_api.user(consumer['id'])
  File "/usr/lib/python2.7/site-packages/pymongo-1.9-py2.7-linux-x86_64.egg/pymongo/collection.py", line 966, in __call__
    self.__name.split(".")[-1])
TypeError: 'Collection' object is not callable. If you meant to call the 'user' method on a 'Collection' object it is failing because no such method exists.

migration to data model version 2 failed

Comment 1 Jason Connor 2011-03-02 03:15:08 UTC
fix pushed in revision 8cfbe12..9a99e3f

Comment 2 Jeff Ortel 2011-03-02 21:34:39 UTC
Build: 0.144

Comment 3 Preethi Thomas 2011-03-07 21:20:06 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.145-1.fc14.noarch

[root@preethi ~]# pulp-migrate
database migration to version 4 complete
[root@preethi ~]#

Comment 4 Preethi Thomas 2011-08-16 12:10:44 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:34 UTC
Closing with Community Release 15

pulp-0.0.223-4.


Note You need to log in before you can comment on or make changes to this bug.