<font size=2 face="sans-serif">For some history, there was an attempt
at consolidating some of this here:</font>
<br>
<br><a href=https://github.com/openstack/nova/commit/dd9c27f999221001bae9faa03571645824d2a681><font size=3 color=blue><u>https://github.com/openstack/nova/commit/dd9c27f999221001bae9faa03571645824d2a681</u></font></a><font size=3>
</font>
<br>
<br><font size=2 face="sans-serif">But that caused some issues and was
reverted here:</font>
<br>
<br><a href=https://github.com/openstack/nova/commit/ee5d9ae8d376e41e852b06488e922400cf69b4ac><font size=2 face="sans-serif">https://github.com/openstack/nova/commit/ee5d9ae8d376e41e852b06488e922400cf69b4ac</font></a><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=1 face="Arial">Thanks,</font>
<br>
<br><font size=3 color=#8f8f8f face="Arial"><b>MATT RIEDEMANN</b></font><font size=1 face="Arial"><br>
Advisory Software Engineer<br>
Cloud Solutions and OpenStack Development</font>
<table width=680 style="border-collapse:collapse;">
<tr height=8>
<td width=680 colspan=2 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<hr>
<tr valign=top height=8>
<td width=418 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#4181c0 face="Arial"><b>Phone:</b></font><font size=1 color=#5f5f5f face="Arial">
1-507-253-7622</font><font size=1 color=#4181c0 face="Arial"> | <b>Mobile:</b></font><font size=1 color=#5f5f5f face="Arial">
1-507-990-1889</font><font size=1 color=#4181c0 face="Arial"><b><br>
E-mail:</b></font><font size=1 color=#5f5f5f face="Arial"> </font><a href=mailto:mriedem@us.ibm.com target=_blank><font size=1 color=#5f5f5f face="Arial"><u>mriedem@us.ibm.com</u></font></a>
<td width=261 style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<div align=right><img src=cid:_1_0AE189640AE183D0006F878286257B9D width=83 height=30 alt=IBM><font size=1 color=#5f5f5f face="Arial"><br>
<br>
3605 Hwy 52 N<br>
Rochester, MN 55901-1407<br>
United States</font></div></table>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Ala Rezmerita <ala.rezmerita@cloudwatt.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">OpenStack Development
Mailing List <openstack-dev@lists.openstack.org>, </font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">gongysh@unitedstack.com,
hrushikesh.gangur@hp.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">07/03/2013 11:26 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">[openstack-dev]
[Nova] too many tokens</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Hi everyone, </font>
<p><font size=3>I have a question regarding too many token generation in
nova when using quantumclient (also related to bug reports </font><a href="https://bugs.launchpad.net/nova/+bug/1192383"><font size=3 color=blue><u>https://bugs.launchpad.net/nova/+bug/1192383</u></font></a><font size=3>
+ </font><a href="https://bugs.launchpad.net/nova-project/+bug/1191159"><font size=3 color=blue><u>https://bugs.launchpad.net/nova-project/+bug/1191159</u></font></a><font size=3>)
</font>
<p><font size=3>For instance during the periodic task  </font><font size=3 face="Calibri"><i>heal_instance_info_cache</i></font><font size=3>
 (every 60s) nova calls quantum API method  get_instance_nw_info
that calls _build_network_info_model (backtrace at the end of the mail). 
</font>
<p><font size=3>During the execution of this method,  4 quantum clients
intances are created (all of them use the same context object) and for
each of them a new token is generated.   </font>
<p><font size=3>Is it possible to change this behavior by updating the
context.auth_token property the first time a quantumclient for a given
context is created (so that the same token will be reused among the 4 client
instances) ?  Is there some security issue that can appear?</font>
<p><font size=3>Thanks</font>
<p><font size=3>Ala Rezmerita</font>
<br><font size=3>Cloudwatt</font>
<br>
<p><font size=3>The backtrace :</font>
<p><font size=2 face="Calibri">  /usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py(194)main()<br>
-> result = function(*args, **kwargs)<br>
  /opt/stack/nova/nova/openstack/common/loopingcall.py(125)_inner()<br>
-> idle = self.f(*self.args, **</font><a href=http://self.kw/><font size=2 color=blue face="Calibri"><u>self.kw</u></font></a><font size=2 face="Calibri">)<br>
  /opt/stack/nova/nova/service.py(283)periodic_tasks()<br>
-> return self.manager.periodic_tasks(ctxt, raise_on_error=raise_on_error)<br>
  /opt/stack/nova/nova/manager.py(100)periodic_tasks()<br>
-> return self.run_periodic_tasks(context, raise_on_error=raise_on_error)<br>
  /opt/stack/nova/nova/openstack/common/periodic_task.py(179)run_periodic_tasks()<br>
-> task(self, context)<br>
  /opt/stack/nova/nova/compute/manager.py(3654)_heal_instance_info_cache()<br>
-> self._get_instance_nw_info(context, instance)<br>
  /opt/stack/nova/nova/compute/manager.py(767)_get_instance_nw_info()<br>
-> instance, conductor_api=self.conductor_api)<br>
  /opt/stack/nova/nova/network/quantumv2/api.py(367)get_instance_nw_info()<br>
-> result = self._get_instance_nw_info(context, instance, networks)<br>
  /opt/stack/nova/nova/network/quantumv2/api.py(375)_get_instance_nw_info()<br>
-> nw_info = self._build_network_info_model(context, instance, networks)<br>
  /opt/stack/nova/nova/network/quantumv2/api.py(840)_build_network_info_model()<br>
-> client = quantumv2.get_client(context, admin=True)<br>
> /opt/stack/nova/nova/network/quantumv2/__init__.py(67)get_client()</font><tt><font size=2>_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
</font></tt>
<p>