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

[Pulp-list] pulp-migrate failed



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I tried running migrate on a new DB from master today and it failed,
showing this in the logs:

migration to data model version 1 starting
migration to data model version 1 complete
migration to data model version 1 started
migration to data model version 1 complete
migration to data model version 2 started
RepoApi instance has no attribute '_getcollection'
Traceback (most recent call last):
  File "/home/jdob/code/pulp/src/pulp/server/db/migrate/script.py", line
87, in datamodel_migration
    mod.migrate()
  File
"/home/jdob/code/pulp/src/pulp/server/db/migrate/versions/two.py", line
108, in migrate
    _migrate_repo_model()
  File
"/home/jdob/code/pulp/src/pulp/server/db/migrate/versions/two.py", line
63, in _migrate_repo_model
    collection = RepoApi()._getcollection()
AttributeError: RepoApi instance has no attribute '_getcollection'

migration to data model version 2 failed


Is this just because we changed the model/collection handling and didn't
update the migrate scripts? Is there a way we can have unit tests check
migrate so we get notified if any APIs used by migrate in the future
change? It'll probably be rare, but still a possibility that things used
by migrate will change.


- -- 
Jay Dobies
RHCE# 805008743336126
Freenode: jdob
http://pulpproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNa6XWAAoJEOMmcTqOSQHCUCkH/A7eIgeZThfnaDtOL2I8Ngfe
Ix0UpcVQr4fbYqd3vAOjVi99w8iel5cE5Pk7BG3cSWRMdArd5Nh3HcGOrzfVRJIU
PkTslk93I/fNlreuUvWE7ULK7ff1QJg7UFFRfx7NRpHmoLVG7IC9rp9qDurajL3D
vO6Qhlp2mKyOiEIj43qbACLe+Knhj/MqlNY584zWCLK/D/5Nc4hQmRIbg4azEW0W
oDrpvw0MLcjt1eH+MMWcey/m0fjUAPq4Is+qpVujV2m8am/Q8l8H+yBzwzm9C4M1
60atLw5j2PA4smypHrfN06UD+5Qy5nbZGEKWfmmjXZPjCDpNyxzh2qowCjxAbuY=
=ixOX
-----END PGP SIGNATURE-----


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