Bug 680859 - pulp-server init fails
Summary: pulp-server init fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: Sprint 21
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 563609 verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-28 08:31 UTC by Daniel Mach
Modified: 2014-03-31 01:39 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

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.


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