<div dir="ltr">Hi Sahid.<div>Thank you for your answer.<br><div>What I want to do is to check if the link that connects the compute node with the switch is up and than collect information about the available BW using OpenFlow's API. This is because I want information related to the real physical network.That's why I want to use ODL.</div></div><div>So there is a way using monitors to check if a physical link is up? </div><div><br></div><div>Silvia</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-27 12:34 GMT+02:00 Sahid Orentino Ferdjaoui <span dir="ltr"><<a href="mailto:sahid.ferdjaoui@redhat.com" target="_blank">sahid.ferdjaoui@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jul 23, 2015 at 04:44:01PM +0200, Silvia Fichera wrote:<br>
> Hi all,<br>
><br>
> I'm using OpenStack together with OpenDaylight to add a network awareness<br>
> feature to the scheduler.<br>
> I have 3 compute nodes (one of these is also the Openstack Controller)<br>
> connected by a openvswitch controlled by OpenDaylight.<br>
> What I would like to do is to write a filter to check if a link is up and<br>
> then assign weight acconding to the available bw (I think I will collect<br>
> this data by ODL and update an entry in a db).<br>
<br>
</span>So you would like to check if a link is up in compute nodes and order<br>
compute nodes by BW, right ? I do not think you can use OpenDaylight<br>
for something like that that will be too specific.<br>
<br>
One solution could be to create a new monitor, they run on compute<br>
nodes and are used to collect any kind of data.<br>
<br>
  nova/compute/monitors<br>
<br>
Then you may want to create a new "weight" to order hosts eligible by<br>
data you have collected from the monitor.<br>
<br>
  nova/scheduler/weights<br>
<span class=""><br>
> For each host I have a management interface (eth0) and an interface<br>
> connected to the OVS switch to build the physical network (eth1).<br>
> Have you got any suggestion to check the link status?<br>
> I thought I can be inspired by the second script in this link<br>
> <a href="http://stackoverflow.com/questions/17434079/python-check-to-see-if-host-is-connected-to-network" rel="noreferrer" target="_blank">http://stackoverflow.com/questions/17434079/python-check-to-see-if-host-is-connected-to-network</a><br>
</span><span class="">> to verify if the iface is up and then check the connectivity but It has to<br>
> be run in the compute node and I don't know which IP address I could point<br>
> at.<br>
><br>
><br>
> Thank you<br>
><br>
> --<br>
> Silvia Fichera<br>
<br>
</span>> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Silvia Fichera</div>
</div>