<div>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"</div><div><br></div><div>Output:</div><div><div> Running revision for neutron ...</div><div>No handlers could be found for logger "neutron.quota"</div><div>INFO [alembic.runtime.migration] Context impl MySQLImpl.</div><div>INFO [alembic.runtime.migration] Will assume non-transactional DDL.</div><div> OK</div></div><div><br></div><div>Where is the new migration script?</div><div><br></div><div>Thx </div><div>Zhi Chang</div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Anna Kamyshnikova"<akamyshnikova@mirantis.com>;</div><div><b>Date: </b> Mon, Oct 12, 2015 03:19 PM</div><div><b>To: </b> "OpenStack Development Mailing List (not for usage questions)"<openstack-dev@lists.openstack.org>; <wbr></div><div></div><div><b>Subject: </b> Re: [openstack-dev] [Neutron][db]Neutron db revision fails</div></div><div> </div><div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 7:02 AM, Zhi Chang <span dir="ltr"><<a href="mailto:changzhi@unitedstack.com" target="_blank">changzhi@unitedstack.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks for your reply. What should I do if I want to create a new migration script?</div><div><br></div><div>Thanks</div><div>Zhi Chang</div><div><u></u><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000"><div style="FONT-SIZE:12px;FONT-FAMILY:Arial Narrow;padding:2px 0 2px 0">------------------ Original ------------------</div><div style="FONT-SIZE:12px;background:#efefef;padding:8px"><div><b>From: </b> "Vikram Choudhary"<<a href="mailto:vikschw@gmail.com" target="_blank">vikschw@gmail.com</a>>;</div><div><b>Date: </b> Mon, Oct 12, 2015 12:22 PM</div><div><b>To: </b> "OpenStack Development Mailing List (not for usage questions)"<<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>>; </div><div></div><div><b>Subject: </b> Re: [openstack-dev] [Neutron][db]Neutron db revision fails</div></div><div><div class="h5"><div> </div><p dir="ltr">Hi Zhi,</p>
<p dir="ltr">We already have a defect logged for this issue.</p>
<p dir="ltr"><a href="https://bugs.launchpad.net/neutron/+bug/1503342" target="_blank">https://bugs.launchpad.net/neutron/+bug/1503342</a></p>
<p dir="ltr">Thanks<br>
Vikram</p>
<div class="gmail_quote">On Oct 12, 2015 8:10 AM, "Zhi Chang" <<a href="mailto:changzhi@unitedstack.com" target="_blank">changzhi@unitedstack.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi, everyone.</div><div> I install a devstack from the latest code. But there is an error when I create a db migration script. My migration shell is:</div><div> "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini revision -m "Just For Test""</div><div>The error shows:</div><div> Running revision for neutron ...</div><div> FAILED: Multiple heads are present; please specify the head revision on which the new revision should be based, or perform a merge.</div><div><br></div><div>Does my method wrong? Could someone helps me?</div><div><br></div><div>Thx</div><div>Zhi Chang</div><div><u></u><u></u></div><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div>
</div></div></div><u></u></div><br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Regards,<div>Ann Kamyshnikova</div><div>Mirantis, Inc</div></div></div>
</div>
</div><!--<![endif]--></includetail></div>