[openstack-dev] Fwd: Questions regardin https://review.openstack.org/#/c/289595/11/tools/database-migration-from-v1-to-v2.py

Alex Stafeyev astafeye at redhat.com
Thu Sep 29 09:12:37 UTC 2016


Hi

I am trying to execute the lbaas db upgrade procedure but I have several
question regarding this.

>From the patch:

I moved to /neutron-lbaas/neutron_lbaas/db/migration


 - Create a revision file
I executed "neutron-db-manage revision -m "description of revision"
--autogenerate"

At this point I saw an error:
ERROR [alembic.util.messaging] Multiple heads are present; please specify
the head revision on which the new revision should be based, or perform a
merge.
  FAILED: Multiple heads are present; please specify the head revision on
which the new revision should be based, or perform a merge.
[
 but checking history and migration  ( neutron-db-manage check_migration
and neutron-db-manage history) I saw no error.

No files seemed to be generated.

 - Edit the created file and fill the content properly with this file
This step is not clear to me ^
 - Run alembic upgrade head
What is the commend for that? (neutron-db-manage upgrade ? Did , fails)

 - Run the migration upgrade code
what is the best way to execute the command? ( python the_script.py?)

Kind regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160929/d38d9a48/attachment.html>


More information about the OpenStack-dev mailing list