Linklocal service works only if port allocated in agent is between 32768 - 61000

Bug #1492408 reported by Praveen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.0
Fix Committed
High
Divakar Dharanalakota
R2.20
Fix Committed
High
Divakar Dharanalakota
Trunk
Fix Committed
High
Divakar Dharanalakota

Bug Description

The linklocal service NAT translation in vrouter works only if the port allocated for link-local service is between 32768 and 61000.

The port allocated or unbound socket in linux kernel is controlled by proc entry "/proc/sys/net/ipv4/ip_local_port_range". The default values is 32768 - 61000. The values are however tunable by proc entry.

VRouter however works only if the port range is set to default values.

VRouter must be modified for following,
1. Should work with any port range (0-65535)
2. Have a debug command to show bit-map of link-local ports in vrouter

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

Review in progress for https://review.opencontrail.org/13660
Submitter: Divakar Dharanalakota (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/13698
Submitter: Divakar Dharanalakota (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/13699
Submitter: Divakar Dharanalakota (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/13660
Committed: http://github.org/Juniper/contrail-vrouter/commit/5f1120924736d3a02f6dd24eae0be383451736eb
Submitter: Zuul
Branch: R2.20

commit 5f1120924736d3a02f6dd24eae0be383451736eb
Author: Divakar <email address hidden>
Date: Wed Sep 9 14:16:09 2015 +0530

Increasing link local port range

As of now Vrouter uses link local port range from 32768 till 65535. This
port range is default port range in Linux for ephemeral ports. This
range can be modified using sysctl. If modified using sysctl to a
different range, Vrouter still uses the old range and this leads to
failure of link local service if port allocated by Agent is out side the
above default range.

As a fix, complete port range of 0 till 65535 is used

Change-Id: I72a708b288cc6cb36bf3097ab87c11aebe71ca59
closes-bug: #1492408

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

Review in progress for https://review.opencontrail.org/13980
Submitter: Divakar Dharanalakota (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/13983
Submitter: Divakar Dharanalakota (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/13983
Committed: http://github.org/Juniper/contrail-vrouter/commit/aecc22eaa24be74cc8d7672d1bddaa64bd3a43b4
Submitter: Zuul
Branch: R2.0

commit aecc22eaa24be74cc8d7672d1bddaa64bd3a43b4
Author: Divakar <email address hidden>
Date: Wed Sep 9 14:16:09 2015 +0530

Increasing link local port range

As of now Vrouter uses link local port range from 32768 till 65535. This
port range is default port range in Linux for ephemeral ports. This
range can be modified using sysctl. If modified using sysctl to a
different range, Vrouter still uses the old range and this leads to
failure of link local service if port allocated by Agent is out side the
above default range.

As a fix, complete port range of 0 till 65535 is used

Change-Id: I72a708b288cc6cb36bf3097ab87c11aebe71ca59
closes-bug: #1492408

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/13980
Committed: http://github.org/Juniper/contrail-vrouter/commit/161ce8309dc9aac03ef27bd01b8d137fb3b71035
Submitter: Zuul
Branch: master

commit 161ce8309dc9aac03ef27bd01b8d137fb3b71035
Author: Divakar <email address hidden>
Date: Wed Sep 9 14:16:09 2015 +0530

Increasing link local port range

As of now Vrouter uses link local port range from 32768 till 65535. This
port range is default port range in Linux for ephemeral ports. This
range can be modified using sysctl. If modified using sysctl to a
different range, Vrouter still uses the old range and this leads to
failure of link local service if port allocated by Agent is out side the
above default range.

As a fix, complete port range of 0 till 65535 is used

Change-Id: I72a708b288cc6cb36bf3097ab87c11aebe71ca59
closes-bug: #1492408

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.