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

2016-10-14 Thread Anna Taraday
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  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-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-- 
Regards,
Ann Taraday
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2016-09-29 Thread Alex Stafeyev
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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev