RESTful API updates for DVR binding.

Registered by Vivekanandan Narasimhan

Implement RESTful API to retrieve DVR-HOST-MAC mapping, this will be used by Vendor-specific controllers.

DVR Interface ports are unlike normal router interface ports. The DVR interface port is cloned on multiple compute servers in order to provide distributed routing functionality. But, there needs to be CLI/API (admin level atleast) to view all bindings of a dvr router interface port in the cloud. Such a CLI/API output will also reflect current status of such replicated ports(UP/DOWN) which will help the cloud admin in troubleshooting DVR routing issues in the cloud.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Vivekanandan Narasimhan
Direction:
Needs approval
Assignee:
Vinod Kumar
Definition:
Obsolete
Series goal:
None
Implementation:
Needs Code Review
Milestone target:
None
Started by
Vinod Kumar
Completed by
Armando Migliaccio

Related branches

Sprints

Whiteboard

RESTful API to retrieve dvr host mac

Specs @ https://review.openstack.org/#/c/119796
Server Side Change @ https://review.openstack.org/118126
Neutron Client Side Change @ https://review.openstack.org/#/c/128174/

Gerrit topic: https://review.openstack.org/#q,topic:bp/dvr-interface-binding,n,z

History Behind Implementing RESTful interface to retrieve dvr-host-mac

*******************************************************************************
-----Original Message-----
From: Dave Tucker [mailto:<email address hidden>]
Sent: Thursday, August 07, 2014 5:55 PM
To: Narasimhan, Vivekanandan
Cc: Vasudevan, Swaminathan (PNB Roseville); Madhu Venugopal; Flavio Fernandes; Brent Salisbury
Subject: Re: DVR discussion

On 7 Aug 2014, at 5:45, Narasimhan, Vivekanandan wrote:

> Hi Dave,
>
> For most of the RPCs that we have introduced for DVR in Juno both in
> L3 and L2 (RPCs between the controller and the nodes), equivalent RESTful implementations are not available.
>
> Would ODL be able to access neutron_ml2 tables to fetch this
> information, or does it rely wholly on RESTful APIs exported by neutron?

We are wholly reliant on the REST API's...
I think it's really only access to the MAC Address assignments that we need.
Having read through the rest of the RPC's I think we should have enough info available to us...
https://docs.google.com/a/dtucker.co.uk/spreadsheets/d/1la_e1dqN76DnV3JAgaYdSXY1J9RDEjHOqar0cpwCTGQ/edit?usp=sharing

>
> --
> Thanks,
>
> Vivek
>
> -----Original Message-----
> From: Dave Tucker [mailto:<email address hidden>]
> Sent: Thursday, August 07, 2014 5:40 AM
> To: Vasudevan, Swaminathan (PNB Roseville)
> Cc: Narasimhan, Vivekanandan; Madhu Venugopal; Flavio Fernandes; Brent
> Salisbury
> Subject: Re: DVR discussion
>
> On 7 Aug 2014, at 0:45, Vasudevan, Swaminathan (PNB Roseville) wrote:
>
>> Hi Dave,
>> Are you talking about the hidden local DVR MAC used on compute nodes ?
>
> Yes. The one that would be issued when the L2 Agent calls
> get_dvr_mac_address_by_host(hostname)
>
>> Thanks
>> Swami
>>
>> -----Original Message-----
>> From: Dave Tucker [mailto:<email address hidden>]
>> Sent: Wednesday, August 06, 2014 4:42 PM
>> To: Vasudevan, Swaminathan (PNB Roseville); Narasimhan, Vivekanandan
>> Cc: Madhu Venugopal; Flavio Fernandes; Brent Salisbury
>> Subject: Re: DVR discussion
>>
>> Hi Swami, Vivek,
>>
>> I've just started work on the ODL<->DVR integration an hit my first major blocker.
>> We can't talk Neutron RPC which prevents us from getting the DVR MAC address for the a compute node.
>>
>> Do you have any plans to provide an API extension for DVR in Juno that would allow us to use the REST API to get this information?
>> e.g https://gist.github.com/c0274f43376e4285eb09
>>
>> -- Dave
>>
*******************************************************************************

Gerrit topic: https://review.openstack.org/#q,topic:bp/spec,n,z

Addressed by: https://review.openstack.org/119796
    RESTful API and CLI for dvr host mac

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.