[Pulp-list] pulp-migrate fails on upgrade to .189

Pradeep Kilambi pkilambi at redhat.com
Fri Jun 10 20:08:26 UTC 2011


On 6/10/11 4:04 PM, Jay Dobies wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Still looking for a workaround. Anyone else seeing this?
>
>
>
> migration to data model version 17 started
> migration to data model version 17 complete
> migration to data model version 18 started
> global name 'cert' is not defined
> Traceback (most recent call last):
>    File
> "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/script.py",
> line 84, in datamodel_migration
>      mod.migrate()
>    File
> "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/versions/eighteen.py",
> line 26, in migrate
>      _migrate_repos()
>    File
> "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/versions/eighteen.py",
> line 59, in _migrate_repos
>      if key and cert:
> NameError: global name 'cert' is not defined
>
> migration to data model version 18 failed
>
>
>
I think having just a ca without key and cert is still valid? may be you 
have a repo with just ca?

I think you'll also need this perhaps,

if CERT not in repo:
     continue


~ Prad

> - -- 
> Jay Dobies
> RHCE# 805008743336126
> Freenode: jdob @ #pulp
> http://pulpproject.org | http://blog.pulpproject.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJN8ni2AAoJEOMmcTqOSQHComgIAILOsCXLSPijQosiI8+nexCD
> kpjnziNWh9BiFjoJYVCQBKwLLp+fIM5/UKgtF545jkLE0V4iOLJuGglE3bXEZ40l
> TaZXUym5ZgwG2cBYt9SRVuI1748jQV0VMtPA5EwVlo7yq60etnzqvJuqqjNL4Rfc
> 5xVFgcenrqT1H8lmLyOIIZ/PQu23Eshfjlo1oso+LQ+3LLT8ZSgAxJuvviB47esD
> csV7hA6T4PdQ2enNnyU708msMoLRWHD+qAdEUCa2syjkBa9h5qTiCbe3pA+i5Cyu
> 8SKtWplVIAL8obqxPH8ocMVJW7KYeMBHuy7GY6nBtOWAVRDKPc1VDtBAk2habLY=
> =glup
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list




More information about the Pulp-list mailing list