[openstack-dev] [Neutron][db]Neutron db revision fails
Anna Kamyshnikova
akamyshnikova at mirantis.com
Mon Oct 12 07:19:57 UTC 2015
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 <changzhi at 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"<vikschw at gmail.com>;
> *Date: * Mon, Oct 12, 2015 12:22 PM
> *To: * "OpenStack Development Mailing List (not for usage questions)"<
> openstack-dev at 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" <changzhi at 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-request at 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-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
--
Regards,
Ann Kamyshnikova
Mirantis, Inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151012/f32c9c55/attachment.html>
More information about the OpenStack-dev
mailing list