<div dir="ltr">Is 'self.context' used to handle other requests as well? I would suggest generating a new context (neutron.context.get_admin_context()) for each fixed interval looping call to ensure you aren't sharing a DB session with another thread.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 11, 2016 at 2:26 AM, Koteswar <span dir="ltr"><<a href="mailto:koti.kelam@gmail.com" target="_blank">koti.kelam@gmail.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">vendor specific mech driver code, where I am doing some read/write to sql.<div><br></div><div><table 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"><span style="color:rgb(167,29,93)">def</span> <span style="color:rgb(121,93,163)">_create_port</span>(<span>self</span>, <span>port</span>):</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">        switchports <span style="color:rgb(167,29,93)">=</span> port[<span style="color:rgb(24,54,145)"><span>'</span>port<span>'</span></span>][<span style="color:rgb(24,54,145)"><span>'</span>switchports<span>'</span></span>]</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">        LOG.debug(_LE(<span style="color:rgb(24,54,145)"><span>"</span>_create_port switch: <span style="color:rgb(0,134,179)">%s</span><span>"</span></span>), port)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">        network_id <span style="color:rgb(167,29,93)">=</span> port[<span style="color:rgb(24,54,145)"><span>'</span>port<span>'</span></span>][<span style="color:rgb(24,54,145)"><span>'</span>network_id<span>'</span></span>]</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">        subnets <span style="color:rgb(167,29,93)">=</span> db.get_subnets_by_network(<span style="color:rgb(237,106,67)">self</span>.context, network_id)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">        <span style="color:rgb(167,29,93)">if</span> <span style="color:rgb(167,29,93)">not</span> subnets:</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            LOG.error(<span style="color:rgb(24,54,145)"><span>"</span>Subnet not found for the network<span>"</span></span>)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            <span style="color:rgb(237,106,67)">self</span>._raise_ml2_error(wexc.HTTPNotFound, <span style="color:rgb(24,54,145)"><span>'</span>create_port<span>'</span></span>)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">        <span style="color:rgb(167,29,93)">for</span> switchport <span style="color:rgb(167,29,93)">in</span> switchports:</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            switch_mac_id <span style="color:rgb(167,29,93)">=</span> switchport[<span style="color:rgb(24,54,145)"><span>'</span>switch_id<span>'</span></span>]</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            port_id <span style="color:rgb(167,29,93)">=</span> switchport[<span style="color:rgb(24,54,145)"><span>'</span>port_id<span>'</span></span>]</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            bnp_switch <span style="color:rgb(167,29,93)">=</span> db.get_bnp_phys_switch_by_mac(<span style="color:rgb(237,106,67)">self</span>.context,</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                                                       switch_mac_id)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            <span style="color:rgb(150,152,150)"># check for port and switch level existence</span></td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            <span style="color:rgb(167,29,93)">if</span> <span style="color:rgb(167,29,93)">not</span> bnp_switch:</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                LOG.error(_LE(<span style="color:rgb(24,54,145)"><span>"</span>No physical switch found '<span style="color:rgb(0,134,179)">%s</span>' <span>"</span></span>), switch_mac_id)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                <span style="color:rgb(237,106,67)">self</span>._raise_ml2_error(wexc.HTTPNotFound, <span style="color:rgb(24,54,145)"><span>'</span>create_port<span>'</span></span>)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            phys_port <span style="color:rgb(167,29,93)">=</span> db.get_bnp_phys_port(<span style="color:rgb(237,106,67)">self</span>.context,</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                                             <a href="http://bnp_switch.id" target="_blank">bnp_switch.id</a>,</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                                             port_id)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            <span style="color:rgb(167,29,93)">if</span> <span style="color:rgb(167,29,93)">not</span> phys_port:</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                LOG.error(_LE(<span style="color:rgb(24,54,145)"><span>"</span>No physical port found for '<span style="color:rgb(0,134,179)">%s</span>' <span>"</span></span>), phys_port)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                <span style="color:rgb(237,106,67)">self</span>._raise_ml2_error(wexc.HTTPNotFound, <span style="color:rgb(24,54,145)"><span>'</span>create_port<span>'</span></span>)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">            <span style="color:rgb(167,29,93)">if</span> bnp_switch.status <span style="color:rgb(167,29,93)">!=</span> constants.SWITCH_STATUS[<span style="color:rgb(24,54,145)"><span>'</span>enable<span>'</span></span>]:</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                LOG.error(_LE(<span style="color:rgb(24,54,145)"><span>"</span>Physical switch is not Enabled '<span style="color:rgb(0,134,179)">%s</span>' <span>"</span></span>),</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                          bnp_switch.status)</td></tr><tr><td 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 style="padding:0px 10px;vertical-align:top;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal">                <span style="color:rgb(237,106,67)">self</span>._raise_ml2_error(wexc.HTTPBadRequest, <span style="color:rgb(24,54,145)"><span>'</span>create_port<span>'</span></span>)</td></tr></tbody></table></div></div><div class="HOEnZb"><div class="h5"><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>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><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><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>
</div></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>Kevin Benton</div></div>
</div>