<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:x-small"><span style="font-family:arial;font-size:small">2014-02-25 19:48 GMT+08:00 Salvatore Orlando </span><span dir="ltr" style="font-family:arial;font-size:small"><<a href="mailto:sorlando@nicira.com" target="_blank">sorlando@nicira.com</a>></span><span style="font-family:arial;font-size:small">:</span><br>
</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I understand the fact that resources with invalid tenant_ids can be created (only with admin rights at least for Neutron) can be annoying.<div>
<br></div><div>However, I support Jay's point on cross-project interactions. If tenant_id validation (and orphaned resource management) can't be efficiently handled, then I'd rather let 3rd party scripts dealing with orphaned and invalid resources.</div>

<div><br></div><div>I reckon that it might be worth experimenting whether the notifications sent by Keystone (see Dolph's post on this thread) can be used to deal with orphaned resources.</div><div>For tenant_id validation, anything involving an extra round trip to keystone would not be efficient in my opinion. If there is a way to perform this validation in the same call which validates the tenant auth_token then it's a different story.</div>

<div>Notifications from keystone *could* be used to build a local (persistent perhaps) cache of active tenant identifiers. However, this would require reliable notifications, as well as appropriate cache management, which is often less simple than what it looks like.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Salvatore</div></font></span></div></blockquote></div><div class="gmail_extra"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:x-small">Thanks for your explanation and suggestion, Salvatore, I still think it's a problem that we should handle in OpenStack or outside(through what you said, say 3rd party scripts), maybe we could add some contents in wiki or doc? any idea?</div>
<br clear="all"><div><br></div>-- <br><div dir="ltr"><div><b><font color="#000000" style="background-color:rgb(243,243,243)" face="courier new, monospace">---------------------------------------</font></b></div><div><font color="#0000ff" face="comic sans ms, sans-serif"><b>Lingxian Kong</b></font></div>
<div><font color="#ff00ff" face="comic sans ms, sans-serif">Huawei Technologies Co.,LTD.</font></div><div><font color="#ff00ff" face="comic sans ms, sans-serif">IT Product Line CloudOS PDU</font></div><div><font color="#ff00ff" face="comic sans ms, sans-serif">China, Xi'an</font></div>
<div><font color="#ff00ff" face="comic sans ms, sans-serif">Mobile: +86-18602962792</font></div><div><font color="#ff00ff" face="comic sans ms, sans-serif">Email: <a href="mailto:konglingxian@huawei.com" target="_blank">konglingxian@huawei.com</a>; <a href="mailto:anlin.kong@gmail.com" target="_blank">anlin.kong@gmail.c</a></font></div>
</div>
</div></div>