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

Anna Taraday akamyshnikova at mirantis.com
Fri Oct 14 15:21:04 UTC 2016


Hi!

I guess you hit https://bugs.launchpad.net/neutron/+bug/1503342, seems we
need to reopen it.

I can only suggest to create migration manually   "neutron-db-manage
--config-file /etc/neutron/neutron.conf revision -m "description of
revision" --contact/expand.
Then you will see path to file which was generated, you can edit this file
and add operation that you need.


On Thu, Sep 29, 2016 at 12:19 PM Alex Stafeyev <astafeye at redhat.com> wrote:

> 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
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-- 
Regards,
Ann Taraday
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161014/823b12f2/attachment.html>


More information about the OpenStack-dev mailing list