[Pulp-list] pulp-migrate failed
Jay Dobies
jason.dobies at redhat.com
Mon Feb 28 14:29:26 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
FYI, I updated two.py and the validate scripts to use the new collection
APIs.
On 02/28/2011 08:40 AM, Jay Dobies wrote:
> 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.
>
>
_______________________________________________
Pulp-list mailing list
Pulp-list at redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list
- --
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/
iQEcBAEBAgAGBQJNa7FGAAoJEOMmcTqOSQHCBSAH/0sajMu5HSyLrMnEgo/46eoe
CzDinf6Zw/7AdsYuFLg4tkAnWnKw7IACi9BSKN0EytNPvE6VS7PnHqJtUFp0U5I9
4xP6V2F6jAUdAr9w1FLOr2V+trkbm4FwjZBuvbJHrXnPFF86aF7zBG/K2tKPiAGe
3a0nd++PFI7A34+YG5SlGuNn+uan8J+eBTWySxdnvgUcoXg06n7WN0A4M+wdwzQg
qIVzAUS0ToKazQMn2411sG1DIeY0janCyunN0iBb90GrS/Ss4Q7ZzPsGKjYDLHv8
e7Z9nn6Oic9wxYdRZhiXPOgZAkD5ajjDyakVq84zNATEWz1X2mzNaJAKA+Olyuo=
=YX8x
-----END PGP SIGNATURE-----
More information about the Pulp-list
mailing list