<div dir="ltr">Hi Brandon, Eugene, Doug,<div><br></div><div>During the hackathon, I remember that we had briefly discussed how listeners would manifest themselves on the LB VM/device, and it turned out that for some backends like HAProxy it simply meant creating a frontend entry in the cfg file whereas on other solutions it could mean spawning a process/equivalent. So we must have status fields to track the state of any such entities that are actually created. In the listener case, an ACTIVE state would mean that the appropriate backend processes have been created or that the required config file entries have been made.</div>
<div><br></div><div>I like the idea of having relational objects and setting the status on them, and in our case we can use the status fields (pool/healthmonitor/listener) in each table to denote the state of the relationship (configuration/association on backend) to another object like LoadBalancer. So I think the status fields should stay.</div>
<div><br></div><div>In this scenario, some entities' status could be updated in lbaas proper, and some in the driver implementation. I don't have a strict preference as to which among lbaas proper or the driver layer announces the status since we discussed on the IRC that we'd have helper functions in the driver to do these updates.</div>
<div><br></div><div><br></div><div>Regards,</div><div>Vijay</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 12:16 PM, Brandon Logan <span dir="ltr"><<a href="mailto:brandon.logan@rackspace.com" target="_blank">brandon.logan@rackspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Tue, 2014-06-24 at 18:53 +0000, Doug Wiegley wrote:<br>
> Hi Brandon,<br>
><br>
> I think just one status is overloading too much onto the LB object (which<br>
> is perhaps something that a UI should do for a user, but not something an<br>
> API should be doing.)<br>
<br>
</div>That is a good point and perhaps its another discussion to just have<br>
some way to show the status an entity has for each load balancer, which<br>
is what mark suggested for the member status at the meet-up.<br>
<div class=""><br>
><br>
> > 1) If an entity exists without a link to a load balancer it is purely<br>
> > just a database entry, so it would always be ACTIVE, but not really<br>
> > active in a technical sense.<br>
><br>
> Depends on the driver. I don¹t think this is a decision for lbaas proper.<br>
<br>
</div>Driver is linked to the flavor or provider. Flavor or provider will/is<br>
linked to load balancer. We won't be able get a driver to send anything<br>
to if there isn't a load balancer. Without a driver it is a decision<br>
for lbaas proper. I'd be fine with setting the status of these<br>
"orphaned" entities to just ACTIVE but I'm just worried about the status<br>
management in the future.<br>
<div class=""><br>
><br>
><br>
> > 2) If some of these entities become shareable then how does the status<br>
> > reflect that the entity failed to create on one load balancer but was<br>
> > successfully created on another. That logic could get overly complex.<br>
><br>
> That¹s a status on the join link, not the object, and I could argue<br>
> multiple ways in which that should be one way or another based on the<br>
> backend, which to me, again implies driver question (backend could queue<br>
> for later, or error immediately, or let things run degraded, orŠ)<br>
<br>
</div>Yeah that is definitely an argument. I'm just trying to keep in mind<br>
the complexities that could arise from decisions made now. Perhaps it<br>
is the wrong way to look at it to some, but I don't think thinking about<br>
the future is a bad thing and should never be done.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Thanks,<br>
> Doug<br>
><br>
><br>
><br>
><br>
> On 6/24/14, 11:23 AM, "Brandon Logan" <<a href="mailto:brandon.logan@RACKSPACE.COM">brandon.logan@RACKSPACE.COM</a>> wrote:<br>
><br>
> >I think we missed this discussion at the meet-up but I'd like to bring<br>
> >it up here. To me having a status on all entities doesn't make much<br>
> >sense, and justing having a status on a load balancer (which would be a<br>
> >provisioning status) and a status on a member (which would be an<br>
> >operational status) are what makes sense because:<br>
> ><br>
> >1) If an entity exists without a link to a load balancer it is purely<br>
> >just a database entry, so it would always be ACTIVE, but not really<br>
> >active in a technical sense.<br>
> ><br>
> >2) If some of these entities become shareable then how does the status<br>
> >reflect that the entity failed to create on one load balancer but was<br>
> >successfully created on another. That logic could get overly complex.<br>
> ><br>
> >I think the best thing to do is to have the load balancer status reflect<br>
> >the provisioning status of all of its children. So if a health monitor<br>
> >is updated then the load balancer that health monitor is linked to would<br>
> >have its status changed to PENDING_UPDATE. Conversely, if a load<br>
> >balancer or any entities linked to it are changed and the load<br>
> >balancer's status is in a non-ACTIVE state then that update should not<br>
> >be allowed.<br>
> ><br>
> >Thoughts?<br>
> ><br>
> >Thanks,<br>
> >Brandon<br>
> ><br>
> ><br>
> >_______________________________________________<br>
> >OpenStack-dev mailing list<br>
> ><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> ><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>