Bug 681289

Summary: pulp-migrate ends with a traceback
Product: [Retired] Pulp Reporter: Pradeep Kilambi <pkilambi>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mmccune
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:10:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 647488    

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.