Linklocal service running on loopback address does not work

Bug #1455360 reported by Praveen
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Medium
Ashok Singh
Trunk
Fix Committed
Medium
Ashok Singh

Bug Description

Following scenario does not work for linklocal services,

1. A service run on each of the compute nodes (say port 2000)
2. Linklocal service is added with following,
    service-ip = 169.254.169.1
    service-port = 2000
    fabric-server-ip=127.0.0.1
    fabric-server-port=2000

The expectation in this case is, when VM access the linklocal service, it should be served by server running on local compute node.
The configuration does not work.

The following configuration works,
    service-ip = 169.254.169.1
    service-port = 2000
    fabric-server-ip=<vhost-ip>
    fabric-server-port=2000

To support this scenario, contrail-vrouter-agent must needs following changes,

1. VRouter does not have route for loopback-ip (127.0.0.1). So, packet gets forwarded according to default route
2. Even if we add route for 127.0.0.1 and point to vhost0, the host-os may discard the packets since loopback ip may is not expected on vhost0 interface
3. Better solution will be for agent to identify that service is running on loopback and add NAT rules such that packet is translated to vhost0 IP instead of loopback-ip.

Tags: vrouter
Changed in juniperopenstack:
importance: Undecided → Medium
milestone: none → r2.30-fcs
Changed in juniperopenstack:
assignee: Hari Prasad Killi (haripk) → Ashok Singh (ashoksr)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/12126
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/12126
Committed: http://github.org/Juniper/contrail-controller/commit/497f409998d63543d65f0bcbf2e52376831dcf6e
Submitter: Zuul
Branch: master

commit 497f409998d63543d65f0bcbf2e52376831dcf6e
Author: ashoksingh <email address hidden>
Date: Wed Jul 1 15:24:26 2015 +0530

Support Link local service running on loopback address.

When fabric IP address configured for link local service is loop back address, add NAT rules such that packet is translated to vhost0 IP instead of loopback-ip. Also add UT for this scenario.

Change-Id: I72c31f85fd62748ff988e7272e33be1babc683bf
Closes-Bug: #1455360

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/12747
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/12747
Committed: http://github.org/Juniper/contrail-controller/commit/1d0350815432f4def27dcea8a5dcee165534f431
Submitter: Zuul
Branch: R2.20

commit 1d0350815432f4def27dcea8a5dcee165534f431
Author: ashoksingh <email address hidden>
Date: Wed Jul 1 15:24:26 2015 +0530

Support Link local service running on loopback address.

When fabric IP address configured for link local service is loop back address, add NAT rules such that packet is translated to vhost0 IP instead of loopback-ip. Also add UT for this scenario.

Closes-Bug: #1455360
(cherry picked from commit 497f409998d63543d65f0bcbf2e52376831dcf6e)

Change-Id: Idf9dcdc2639ee17db2ef3b623d368c045a63b178

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22-dev

Review in progress for https://review.opencontrail.org/13927
Submitter: Vinay Vithal Mahuli (<email address hidden>)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.