<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;" class="">I’d recommend taking a look at Brandon’s review: </span><a href="https://review.openstack.org/#/c/144834/" class="" style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;">https://review.openstack.org/#/c/144834/</a><span style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;" class=""></span><div class="" style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;"><br class=""></div><div class="" style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;">which aims to simplify exactly what you’re describing. Please leave feedback there.</div><div class="" style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;"><br class=""></div><div class="" style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;">Thanks,</div><div class="" style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;">doug</div><div class="" style="font-family: 'helvetica Neue', helvetica; font-size: 13px; line-height: 19.5px;"><br class=""></div><div><blockquote type="cite" class=""><div class="">On Feb 3, 2015, at 7:13 AM, Vijay Venkatachalam <<a href="mailto:Vijay.Venkatachalam@citrix.com" class="">Vijay.Venkatachalam@citrix.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)" class="">
<style class=""><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="#0563C1" vlink="#954F72" class="">
<div class="WordSection1"><p class="MsoNormal"><span style="color:#2E75B6" class="">Hi:<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class=""> </span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">In OpenStack neutron lbaas implementation, when entities are created/updated by the user, they might not be associated with the root entity, which is loadbalancer.
<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">Since root entity has the driver information, the driver cannot be called by lbaas plugin during these operations by user.
<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">Such entities are set in DEFFERED status until the entity is associated with root entity.
<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">During this association operation (listener created with pool), the driver api is called for the current operation (listener create); and the driver is expected to perform the original operation (pool create)
along with the current operation (listener create). <o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">This leads to complex handling at the driver, I think it will be better for the lbaas plugin to call the original operation (pool create) driver API in addition to the current operation (listener create) API
during the association operation. <o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class=""> </span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">That is the summary, please read on to understand the situation in detail.
<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class=""> </span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">Let’s take the example of pool create in driver.<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class=""> </span></p><p class="MsoListParagraph" style="text-indent:-.25in"><span style="color:#2E75B6" class="">a. A pool create operation will not translate to a pool create api in the driver. There is a pool create in the driver API but that is never called today.
<o:p class=""></o:p></span></p><p class="MsoListParagraph" style="text-indent:-.25in"><span style="color:#2E75B6" class="">b. When a listener is created with loadbalancer and pool, the driver’s listener create api is called and the driver is expected to create both pool and listener.
<o:p class=""></o:p></span></p><p class="MsoListParagraph" style="text-indent:-.25in"><span style="color:#2E75B6" class="">c. When a listener is first created without loadbalancer but with a pool, the call does not reach driver. Later when the listener is updated with loadbalancer id, the
drivers listener update API is called and the driver is expected to create both pool and listener.<o:p class=""></o:p></span></p><p class="MsoListParagraph" style="text-indent:-.25in"><span style="color:#2E75B6" class="">d. When a listener configured with pool and loadbalancer is updated with new pool id, the driver’s listener update api is called. The driver is expected to delete the original
pool that was associated, create the new pool and also update the listener<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class=""> <o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">As you can see this is leading to a quite a bit of handling in the driver code. This makes driver code complex.
<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class=""> </span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">How about handling this logic in lbaas plugin and it can call the “natural” functions that were deferred.
<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class=""> </span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">Whenever an entity is going from a DEFERRED to ACTIVE/CREATE status (through whichever workflow) the plugin can call the CREATE pool function of the driver.<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">Whenever an entity is going from an ACTIVE/CREATED to DEFERRED status (through whichever workflow) the plugin can call the DELETE pool function of the driver.<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class=""> </span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">Thanks,<o:p class=""></o:p></span></p><p class="MsoNormal"><span style="color:#2E75B6" class="">Vijay V.<o:p class=""></o:p></span></p>
</div>
</div>
__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></div></blockquote></div><br class=""></body></html>