Bug 680859

Summary: pulp-server init fails
Product: [Retired] Pulp Reporter: Daniel Mach <dmach>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jason.dobies, mmccune, tsanders
Target Milestone: ---   
Target Release: Sprint 21   
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:06:23 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: 563609, 647488    

Description Daniel Mach 2011-02-28 08:31:37 UTC
Latest build (RPMs from fedora-pulp-testing) works, but latest code from GIT ends with:

$ service pulp-server init

RepoApi instance has no attribute '_getcollection'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/script.py", line 87, in datamodel_migration
    mod.migrate()
  File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/versions/two.py", line 108, in migrate
    _migrate_repo_model()
  File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/versions/two.py", line 63, in _migrate_repo_model
    collection = RepoApi()._getcollection()
AttributeError: RepoApi instance has no attribute '_getcollection'

Comment 1 Jay Dobies 2011-03-01 18:50:49 UTC
I changed the migrate and validate scripts to get the collections from the model objects instead of the API objects. Sorry I don't have the commit information, it was done Monday, February 28th before roughly 10am EST.

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

Comment 3 Preethi Thomas 2011-03-08 14:16:32 UTC
[root@nec-em8 ~]# rpm -q pulp
pulp-0.0.145-1

[root@nec-em8 ~]# service pulp-server init
Starting mongod: [  OK  ]
no crontab for root
database migration to version 4 complete
[root@nec-em8 ~]#

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.