[Pulp-list] Failure migrating database on 2.8.3 upgrade
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.
> 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
> 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
> 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?
> Pulp-list mailing list
> Pulp-list at redhat.com
I've filed an issue about this for you:
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
I apologize for the assumption and the inconvenience!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: not available
More information about the Pulp-list