[Pulp-list] Failure migrating database on 2.8.3 upgrade

Randy Barlow rbarlow at redhat.com
Wed May 18 21:21:58 UTC 2016


On Wed, May 18, 2016 at 08:24:46PM +0000, Sparks, Alan wrote:
> Not sure what I've done wrong, but migrating after my 2.8.3 package updates from 2.8.2, I am getting the following error:
> 
> Applying pulp.server.db.migrations version 23
> Applying migration pulp.server.db.migrations.0023_importer_tls_storage failed.
> 
> Halting migrations due to a migration failure.
> 'config'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 193, in main
>     return _auto_manage_db(options)
>   File "/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 256, in _auto_manage_db
>     migrate_database(options)
>   File "/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 124, in migrate_database
>     update_current_version=not options.test)
>   File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/models.py", line 186, in apply_migration
>     migration.migrate()
>   File "/usr/lib/python2.6/site-packages/pulp/server/db/migrations/0023_importer_tls_storage.py", line 25, in migrate
>     _write_pem_file(pki_path, importer['config'], key, filename)
> KeyError: 'config'
> 
> 
> Any advice how to debug why I seem to be missing some config item?
> -Alan

> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
Hello Alan!

I've filed an issue about this for you:

https://pulp.plan.io/issues/1929

I don't think it's a problem that you are missing the config item, but
an issue in the code. The fix will probably be something like:

if 'config' in importer:
    _write_pem_file(pki_path, importer['config'], key, filename)

If you are comfortable working in Python, you could try something like
that at line 25 in
/usr/lib/python2.6/site-packages/pulp/server/db/migrations/0023_importer_tls_storage.py

I apologize for the assumption and the inconvenience!

-- 
Randy Barlow
irc:   bowlofeggs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20160518/c9724a80/attachment.sig>


More information about the Pulp-list mailing list