<br><br><div class="gmail_quote">On Mon, Jul 16, 2012 at 3:30 AM, Gary Kotton <span dir="ltr"><<a href="mailto:gkotton@redhat.com" target="_blank">gkotton@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
The patch <a href="https://review.openstack.org/#/c/9591/" target="_blank">https://review.openstack.org/#<u></u>/c/9591/</a> contains the initial support for the scalable agents (this is currently implemented on the linux bridge). At the moment this does not support a network or port update, that is, the user can set 'admin_status_up' to 0. This means that either the network or the port should stop handling traffic.<br>


The network/port update is challenging in a number of respects. First and foremost the quantum plugin is not aware of the agent on which the port may have been allocated (this is where the VM has been deployed). In addition to this there may be a number of agents running.<br>


There are a number of options to perform the port update. They are listed below:<br>
1. Make use of the openstack-common notifier support. This would have the plugin notify "all" of the agents. I have yet to look at the code but guess that it is similar to the next item.<br>
2. Make use of the RPC mechanism to have the plugin notify the agents. At the moment the plugin has the topic of all of the agents (this is used for a health check to ensure that the configuration on the agent is in sync with that of the plugin). It is described in detail in <a href="https://docs.google.com/document/d/1MbcBA2Os4b98ybdgAw2qe_68R1NG6KMh8zdZKgOlpvg/edit?pli=1" target="_blank">https://docs.google.com/<u></u>document/d/<u></u>1MbcBA2Os4b98ybdgAw2qe_<u></u>68R1NG6KMh8zdZKgOlpvg/edit?<u></u>pli=1</a><br>


<br>
If I understand correctly then both of the above would require that the agents are also RPC consumers. In both of the above the when there is a update to either a network or port then there will be a lot of traffic broadcast on the network.<br>

</blockquote><div><br></div><div>Hi Gary,</div><div><br></div><div>Yes, I think either way, to eliminate the polling, we need to have some mechanism to inform the agents that they need to update state.  My goal would be to build a standard mechanism for this that to the degree possible leverages existing APIs and data formats, so that we can avoid having multiple formats for the same data and avoid any RPC-call sprawl.  </div>

<div><br></div><div>I agree that we don't want to broadcast all data everyone.  At the same time, I'd like to avoid having to make the the core plugin code running within quantum-server be aware of all of the different agents.  What I think would be idea is that we have a fine-grained notification mechanism for when objects (networks, subnets, ports) are updated, and that agents could choose to register for updates on particular objects.  For example, a DHCP agent handling all DHCP for a deployment might register for create/update/delete operations on subnets + ports, whereas a plugin agent might only register for updates from the ports that it sees locally on the hypervisor.  Conceptually, you could think of there being a 'topic' per port in this case, though we may need to implement it differently in practice.  </div>

<div><br></div><div>In general, I think it is ideal if these external agents can use standard mechanisms and formats as much as possible.  For example, after learning that port X was created, the DHCP agent can actually use a standard webservice GET to learn about the configuration of the port (or if people feel that such information should be included in the notification itself, this notification data uses the same format as the webservice API).  </div>

<div><br></div><div>So in sum, I'm hoping that we can take an approach to this problem that build a base framework that will continue to work as we add more rich functionality to quantum networks, recognizing that in most cases, agents will need to follow the pattern of triggering off of changes to API objects.  I'm not sure whether this is inline with your thinking or not, so I'd be curious to hear your thoughts. Thanks, </div>

<div><br></div><div>Dan</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Another alternative is to piggy back onto the health check message. This will contain the ID's of the networks/ports that were updated prior to the last check. When an agent receives these, if they are using the the network or port then they will request the details from the plugin. This will certainly have less traffic on the network.<br>


<br>
If anyone has any ideas then it would be great to hear them.<br>
Hopefully we can discuss this in tonight's meeting.<br>
Thanks<br>
Gary<br>
<br>
<br>
______________________________<u></u>_________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~<u></u>openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~<u></u>openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/<u></u>ListHelp</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira, Inc: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br><div>twitter: danwendlandt<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div><br>