Ok. Everything looks right when I run command "neutron-db-manage --config-file
/etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
revision -m "Just For Test" --autogenerate"
Output:
Running revision for neutron ...
No handlers could be found for logger "neutron.quota"
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
OK
Where is the new migration script?
Thx
Zhi Chang
------------------ Original ------------------
From: "Anna Kamyshnikova"<akamyshnik...@mirantis.com>;
Date: Mon, Oct 12, 2015 03:19 PM
To: "OpenStack Development Mailing List (not for usage
questions)"<openstack-dev@lists.openstack.org>;
Subject: Re: [openstack-dev] [Neutron][db]Neutron db revision fails
You should use neutron-db-manage --config-file /etc/neutron/neutron.conf
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini revision -m "Just For
Test"" --autogenerate. Make changes in db models and then run this command -
migration will be generated automatically.
On Mon, Oct 12, 2015 at 7:02 AM, Zhi Chang <chang...@unitedstack.com> wrote:
Thanks for your reply. What should I do if I want to create a new migration
script?
Thanks
Zhi Chang
------------------ Original ------------------
From: "Vikram Choudhary"<viks...@gmail.com>;
Date: Mon, Oct 12, 2015 12:22 PM
To: "OpenStack Development Mailing List (not for usage
questions)"<openstack-dev@lists.openstack.org>;
Subject: Re: [openstack-dev] [Neutron][db]Neutron db revision fails
Hi Zhi,
We already have a defect logged for this issue.
https://bugs.launchpad.net/neutron/+bug/1503342
Thanks
Vikram
On Oct 12, 2015 8:10 AM, "Zhi Chang" <chang...@unitedstack.com> wrote:
Hi, everyone.
I install a devstack from the latest code. But there is an error when I
create a db migration script. My migration shell is:
"neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file
/etc/neutron/plugins/ml2/ml2_conf.ini revision -m "Just For Test""
The error shows:
Running revision for neutron ...
FAILED: Multiple heads are present; please specify the head revision on
which the new revision should be based, or perform a merge.
Does my method wrong? Could someone helps me?
Thx
Zhi Chang
__________________________________________________________________________
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 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 Kamyshnikova
Mirantis, Inc
__________________________________________________________________________
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