<div dir="ltr">vendor specific mech driver code, where I am doing some read/write to sql.<div><br></div><div><table class="" style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:13px;line-height:12.1333px"><tbody><tr><td id="LC258" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal"><span class="" style="color:rgb(167,29,93)">def</span> <span class="" style="color:rgb(121,93,163)">_create_port</span>(<span class="">self</span>, <span class="">port</span>):</td></tr><tr><td id="L259" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC259" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">        switchports <span class="" style="color:rgb(167,29,93)">=</span> port[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>port<span class="">'</span></span>][<span class="" style="color:rgb(24,54,145)"><span class="">'</span>switchports<span class="">'</span></span>]</td></tr><tr><td id="L260" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC260" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">        LOG.debug(_LE(<span class="" style="color:rgb(24,54,145)"><span class="">"</span>_create_port switch: <span class="" style="color:rgb(0,134,179)">%s</span><span class="">"</span></span>), port)</td></tr><tr><td id="L261" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC261" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">        network_id <span class="" style="color:rgb(167,29,93)">=</span> port[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>port<span class="">'</span></span>][<span class="" style="color:rgb(24,54,145)"><span class="">'</span>network_id<span class="">'</span></span>]</td></tr><tr><td id="L262" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC262" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">        subnets <span class="" style="color:rgb(167,29,93)">=</span> db.get_subnets_by_network(<span class="" style="color:rgb(237,106,67)">self</span>.context, network_id)</td></tr><tr><td id="L263" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC263" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">        <span class="" style="color:rgb(167,29,93)">if</span> <span class="" style="color:rgb(167,29,93)">not</span> subnets:</td></tr><tr><td id="L264" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC264" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            LOG.error(<span class="" style="color:rgb(24,54,145)"><span class="">"</span>Subnet not found for the network<span class="">"</span></span>)</td></tr><tr><td id="L265" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC265" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            <span class="" style="color:rgb(237,106,67)">self</span>._raise_ml2_error(wexc.HTTPNotFound, <span class="" style="color:rgb(24,54,145)"><span class="">'</span>create_port<span class="">'</span></span>)</td></tr><tr><td id="L266" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC266" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">        <span class="" style="color:rgb(167,29,93)">for</span> switchport <span class="" style="color:rgb(167,29,93)">in</span> switchports:</td></tr><tr><td id="L267" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC267" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            switch_mac_id <span class="" style="color:rgb(167,29,93)">=</span> switchport[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>switch_id<span class="">'</span></span>]</td></tr><tr><td id="L268" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC268" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            port_id <span class="" style="color:rgb(167,29,93)">=</span> switchport[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>port_id<span class="">'</span></span>]</td></tr><tr><td id="L269" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC269" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            bnp_switch <span class="" style="color:rgb(167,29,93)">=</span> db.get_bnp_phys_switch_by_mac(<span class="" style="color:rgb(237,106,67)">self</span>.context,</td></tr><tr><td id="L270" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC270" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                                                       switch_mac_id)</td></tr><tr><td id="L271" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC271" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            <span class="" style="color:rgb(150,152,150)"># check for port and switch level existence</span></td></tr><tr><td id="L272" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC272" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            <span class="" style="color:rgb(167,29,93)">if</span> <span class="" style="color:rgb(167,29,93)">not</span> bnp_switch:</td></tr><tr><td id="L273" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC273" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                LOG.error(_LE(<span class="" style="color:rgb(24,54,145)"><span class="">"</span>No physical switch found '<span class="" style="color:rgb(0,134,179)">%s</span>' <span class="">"</span></span>), switch_mac_id)</td></tr><tr><td id="L274" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC274" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                <span class="" style="color:rgb(237,106,67)">self</span>._raise_ml2_error(wexc.HTTPNotFound, <span class="" style="color:rgb(24,54,145)"><span class="">'</span>create_port<span class="">'</span></span>)</td></tr><tr><td id="L275" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC275" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            phys_port <span class="" style="color:rgb(167,29,93)">=</span> db.get_bnp_phys_port(<span class="" style="color:rgb(237,106,67)">self</span>.context,</td></tr><tr><td id="L276" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC276" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                                             <a href="http://bnp_switch.id">bnp_switch.id</a>,</td></tr><tr><td id="L277" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC277" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                                             port_id)</td></tr><tr><td id="L278" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC278" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            <span class="" style="color:rgb(167,29,93)">if</span> <span class="" style="color:rgb(167,29,93)">not</span> phys_port:</td></tr><tr><td id="L279" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC279" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                LOG.error(_LE(<span class="" style="color:rgb(24,54,145)"><span class="">"</span>No physical port found for '<span class="" style="color:rgb(0,134,179)">%s</span>' <span class="">"</span></span>), phys_port)</td></tr><tr><td id="L280" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC280" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                <span class="" style="color:rgb(237,106,67)">self</span>._raise_ml2_error(wexc.HTTPNotFound, <span class="" style="color:rgb(24,54,145)"><span class="">'</span>create_port<span class="">'</span></span>)</td></tr><tr><td id="L281" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC281" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">            <span class="" style="color:rgb(167,29,93)">if</span> bnp_switch.status <span class="" style="color:rgb(167,29,93)">!=</span> constants.SWITCH_STATUS[<span class="" style="color:rgb(24,54,145)"><span class="">'</span>enable<span class="">'</span></span>]:</td></tr><tr><td id="L282" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC282" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                LOG.error(_LE(<span class="" style="color:rgb(24,54,145)"><span class="">"</span>Physical switch is not Enabled '<span class="" style="color:rgb(0,134,179)">%s</span>' <span class="">"</span></span>),</td></tr><tr><td id="L283" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC283" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                          bnp_switch.status)</td></tr><tr><td id="L284" class="" style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.298039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="LC284" class="" style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre;overflow:visible;word-wrap:normal">                <span class="" style="color:rgb(237,106,67)">self</span>._raise_ml2_error(wexc.HTTPBadRequest, <span class="" style="color:rgb(24,54,145)"><span class="">'</span>create_port<span class="">'</span></span>)</td></tr></tbody></table></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 11, 2016 at 2:47 PM, Anna Kamyshnikova <span dir="ltr"><<a href="mailto:akamyshnikova@mirantis.com" target="_blank">akamyshnikova@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi! <div><br></div><div>Can you point what mechanism driver is this or the piece of code that give this error?</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Jan 11, 2016 at 11:58 AM, Koteswar <span dir="ltr"><<a href="mailto:koti.kelam@gmail.com" target="_blank">koti.kelam@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><p>Hi All,</p>

<p> </p>

<p>In my mechanism driver, I am reading/writing into sql db
in a fixed interval looping call. Sometimes I get the following error when I
stop and start neutron server</p>

<p>InvalidRequestError: This session is in 'prepared' state;
no further SQL can be emitted within this transaction.</p>

<p> </p>

<p>I am using context.session.query() for add, delete,
update and get. Please help me if any one resolved an issue like this.</p>

<p> </p>

<p>Full trace is as follows:</p>

<p>2016-01-06 15:33:21.799 [01;31mERROR
neutron.plugins.ml2.managers [[01;36mreq-d940a1b6-253a-43d2-b5ff-6c784c8a520f [00;36madmin
83b5358da62a407f88155f447966356f[01;31m] [01;35m[01;31mMechanism driver 'hp'
failed in create_port_precommit[00m</p>

<p>[01;31m2016-01-06 15:33:21.799 TRACE
neutron.plugins.ml2.managers [01;35m[00mTraceback (most recent call last):</p>

<p>[01;31m2016-01-06 15:33:21.799 TRACE
neutron.plugins.ml2.managers [01;35m[00m 
File "/opt/stack/neutron/neutron/plugins/ml2/managers.py",
line 394, in _call_on_drivers</p>

<p>[01;31m2016-01-06 15:33:21.799 TRACE
neutron.plugins.ml2.managers [01;35m[00m   
getattr(driver.obj, method_name)(context)</p>

<p>[01;31m2016-01-06 15:33:21.799 TRACE
neutron.plugins.ml2.managers [01;35m[00m 
File
"/usr/local/lib/python2.7/dist-packages/baremetal_network_provisioning/ml2/mechanism_hp.py",
line 67, in create_port_precommit</p>

<p>[01;31m2016-01-06 15:33:21.799 TRACE
neutron.plugins.ml2.managers [01;35m[00m   
raise e</p>

<p>[01;31m2016-01-06 15:33:21.799 TRACE
neutron.plugins.ml2.managers [01;35m[00mInvalidRequestError: This session is in
'prepared' state; no further SQL can be emitted within this transaction.</p>

<p>[01;31m2016-01-06 15:33:21.799 TRACE
neutron.plugins.ml2.managers [01;35m[00m</p>

<p>2016-01-06 15:33:21.901 [01;31mERROR
neutron.api.v2.resource [[01;36mreq-d940a1b6-253a-43d2-b5ff-6c784c8a520f [00;36madmin
83b5358da62a407f88155f447966356f[01;31m] [01;35m[01;31mcreate failed[00m</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00mTraceback (most recent call last):</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
result = method(request=request, **args)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in
wrapper</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
ectxt.value = e.inner_exc</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line
195, in __exit__</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
six.reraise(self.type_, self.value, self.tb)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in
wrapper</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
return f(*args, **kwargs)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/opt/stack/neutron/neutron/api/v2/base.py", line 516, in create</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
obj = do_create(body)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/opt/stack/neutron/neutron/api/v2/base.py", line 498, in do_create</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
request.context, reservation.reservation_id)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line
195, in __exit__</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
six.reraise(self.type_, self.value, self.tb)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/opt/stack/neutron/neutron/api/v2/base.py", line 491, in do_create</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
return obj_creator(request.context, **kwargs)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 146, in
wrapper</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
ectxt.value = e.inner_exc</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line
195, in __exit__</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
six.reraise(self.type_, self.value, self.tb)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/usr/local/lib/python2.7/dist-packages/oslo_db/api.py", line 136, in
wrapper</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
return f(*args, **kwargs)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 1040, in
create_port</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
result, mech_context = self._create_port_db(context, port)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE neutron.api.v2.resource
[01;35m[00m  File
"/opt/stack/neutron/neutron/plugins/ml2/plugin.py", line 1032, in
_create_port_db</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
self.mechanism_manager.create_port_precommit(mech_context)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 590, in
create_port_precommit</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m   
self._call_on_drivers("create_port_precommit", context)</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m  File
"/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 405, in
_call_on_drivers</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE neutron.api.v2.resource
[01;35m[00m    method=method_name</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00mMechanismDriverError: create_port_precommit
failed.</p>

<p>[01;31m2016-01-06 15:33:21.901 TRACE
neutron.api.v2.resource [01;35m[00m</p>

<p> </p>

<p>Regards,</p>

<p>Koteswar</p></div>
<br></div></div>__________________________________________________________________________<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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Regards,<div>Ann Kamyshnikova</div><div>Mirantis, Inc</div></div></div>
</font></span></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></div>