R2.20 build 80 : Client ip not correct in discovery server

Bug #1484861 reported by Ankit Jain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Medium
Nipa
R3.0
Fix Committed
Medium
Biswajit Mandal
Trunk
Fix Committed
Medium
Biswajit Mandal

Bug Description

 Two 'control': [host1, host3] : [ 10.204.217.53, 10.204.216.17] nodes are present in the system, but client ip for all the connections of Client Type contrail-control is same host1 10.204.217.53.

Client ip for client id nodea21:contrail-control should be 10.204.216.17.

testbed:

host1 = 'root@10.204.217.53'
host2 = 'root@10.204.217.60'
host3 = 'root@10.204.216.17'

env.roledefs = {
    'all': [host1, host2, host3],
    'cfgm': [host1,host2],
    'openstack': [host1],
    'control': [host1, host3],
    'compute': [host1,host3],
    'collector': [host2,host3],
    'webui': [host1],
    'database': [host1,host2,host3],
    'build': [host_build],
}

Output from discovery server for client type contrail-control :

Client IP Client Type Client Id Service Type Service Id TTL (sec) Time Remaining Refresh
10.204.217.53 contrail-control nodea21:contrail-control IfmapServer nodeg13:IfmapServer 957 509 7
10.204.217.53 contrail-control nodea21:contrail-control IfmapServer nodeg20:IfmapServer 957 509 7
10.204.217.53 contrail-control nodea21:contrail-control Collector nodea21:Collector 1285 1069 5
10.204.217.53 contrail-control nodea21:contrail-control Collector nodeg20:Collector 1285 1069 5
10.204.217.53 contrail-control nodeg13:contrail-control Collector nodea21:Collector 957 186 4
10.204.217.53 contrail-control nodeg13:contrail-control Collector nodeg20:Collector 957 186 4
10.204.217.53 contrail-control nodeg13:contrail-control IfmapServer nodeg13:IfmapServer 1234 1171 6
10.204.217.53 contrail-control nodeg13:contrail-control IfmapServer nodeg20:IfmapServer 1234 1171 6

Complete output from discovery server :

http://nodeg20.englab.juniper.net:5998/clients

Client IP Client Type Client Id Service Type Service Id TTL (sec) Time Remaining Refresh Count
10.204.217.53 ContrailWebUI nodeg13:ContrailWebUI OpServer nodea21:OpServer 11 5 193
10.204.217.53 ContrailWebUI nodeg13:ContrailWebUI OpServer nodeg20:OpServer 11 5 193
10.204.217.53 contrail-control nodea21:contrail-control IfmapServer nodeg13:IfmapServer 957 509 7
10.204.217.53 contrail-control nodea21:contrail-control IfmapServer nodeg20:IfmapServer 957 509 7
10.204.217.53 contrail-dns nodea21:contrail-dns IfmapServer nodeg13:IfmapServer 1593 781 6
10.204.217.53 contrail-dns nodea21:contrail-dns IfmapServer nodeg20:IfmapServer 1593 781 6
10.204.217.53 contrail-control nodeg13:contrail-control IfmapServer nodeg13:IfmapServer 1234 1171 6
10.204.217.53 contrail-control nodeg13:contrail-control IfmapServer nodeg20:IfmapServer 1234 1171 6
10.204.217.53 contrail-dns nodeg13:contrail-dns IfmapServer nodeg13:IfmapServer 591 127 4
10.204.217.53 contrail-dns nodeg13:contrail-dns IfmapServer nodeg20:IfmapServer 591 127 4
10.204.217.53 contrail-vrouter-agent:0 nodea21:contrail-vrouter-agent:0 dns-server nodea21:dns-server 770 449 8
10.204.217.53 contrail-vrouter-agent:0 nodea21:contrail-vrouter-agent:0 dns-server nodeg13:dns-server 770 449 8
10.204.217.53 contrail-vrouter-agent:0 nodeg13:contrail-vrouter-agent:0 dns-server nodea21:dns-server 1553 179 3
10.204.217.53 contrail-vrouter-agent:0 nodeg13:contrail-vrouter-agent:0 dns-server nodeg13:dns-server 1553 179 3
10.204.217.53 contrail-vrouter-agent:0 nodea21:contrail-vrouter-agent:0 xmpp-server nodea21:xmpp-server 1621 447 4
10.204.217.53 contrail-vrouter-agent:0 nodea21:contrail-vrouter-agent:0 xmpp-server nodeg13:xmpp-server 1621 447 4
10.204.217.53 contrail-vrouter-agent:0 nodeg13:contrail-vrouter-agent:0 xmpp-server nodea21:xmpp-server 1015 990 2
10.204.217.53 contrail-vrouter-agent:0 nodeg13:contrail-vrouter-agent:0 xmpp-server nodeg13:xmpp-server 1015 990 2
10.204.217.53 contrail-control nodea21:contrail-control Collector nodea21:Collector 1285 1069 5
10.204.217.53 contrail-control nodea21:contrail-control Collector nodeg20:Collector 1285 1069 5
10.204.216.17 contrail-control-nodemgr nodea21:contrail-control-nodemgr Collector nodea21:Collector 1688 1249 5
10.204.216.17 contrail-control-nodemgr nodea21:contrail-control-nodemgr Collector nodeg20:Collector 1688 1249 5
10.204.216.17 contrail-database-nodemgr nodea21:contrail-database-nodemgr Collector nodea21:Collector 855 506 6
10.204.216.17 contrail-database-nodemgr nodea21:contrail-database-nodemgr Collector nodeg20:Collector 855 506 6
10.204.217.53 contrail-dns nodea21:contrail-dns Collector nodea21:Collector 1349 1282 6
10.204.217.53 contrail-dns nodea21:contrail-dns Collector nodeg20:Collector 1349 1282 6
10.204.217.53 contrail-vrouter-agent:0 nodea21:contrail-vrouter-agent:0 Collector nodea21:Collector 1414 1251 5
10.204.217.53 contrail-vrouter-agent:0 nodea21:contrail-vrouter-agent:0 Collector nodeg20:Collector 1414 1251 5
10.204.216.17 contrail-vrouter-nodemgr nodea21:contrail-vrouter-nodemgr Collector nodea21:Collector 1670 670 5
10.204.216.17 contrail-vrouter-nodemgr nodea21:contrail-vrouter-nodemgr Collector nodeg20:Collector 1670 670 5
10.204.217.53 DeviceManager nodeg13:DeviceManager Collector nodea21:Collector 1545 987 6
10.204.217.53 DeviceManager nodeg13:DeviceManager Collector nodeg20:Collector 1545 987 6
10.204.217.53 contrail-api nodeg13:contrail-api Collector nodea21:Collector 1666 331 10
10.204.217.53 contrail-api nodeg13:contrail-api Collector nodeg20:Collector 1666 331 10
10.204.217.53 contrail-config-nodemgr nodeg13:contrail-config-nodemgr Collector nodea21:Collector 906 471 9
10.204.217.53 contrail-config-nodemgr nodeg13:contrail-config-nodemgr Collector nodeg20:Collector 906 471 9
10.204.217.53 contrail-control nodeg13:contrail-control Collector nodea21:Collector 957 186 4
10.204.217.53 contrail-control nodeg13:contrail-control Collector nodeg20:Collector 957 186 4
10.204.217.53 contrail-control-nodemgr nodeg13:contrail-control-nodemgr Collector nodea21:Collector 1491 1352 4
10.204.217.53 contrail-control-nodemgr nodeg13:contrail-control-nodemgr Collector nodeg20:Collector 1491 1352 4
10.204.217.53 contrail-database-nodemgr nodeg13:contrail-database-nodemgr Collector nodea21:Collector 1353 445 5
10.204.217.53 contrail-database-nodemgr nodeg13:contrail-database-nodemgr Collector nodeg20:Collector 1353 445 5
127.0.0.1 contrail-discovery nodeg13:contrail-discovery Collector nodea21:Collector 918 296 0
127.0.0.1 contrail-discovery nodeg13:contrail-discovery Collector nodeg20:Collector 918 296 0
10.204.217.53 contrail-dns nodeg13:contrail-dns Collector nodea21:Collector 705 368 5
10.204.217.53 contrail-dns nodeg13:contrail-dns Collector nodeg20:Collector 705 368 5
10.204.217.53 contrail-schema nodeg13:contrail-schema Collector nodea21:Collector 1050 57 6
10.204.217.53 contrail-schema nodeg13:contrail-schema Collector nodeg20:Collector 1050 57 6
10.204.217.53 contrail-svc-monitor nodeg13:contrail-svc-monitor Collector nodea21:Collector 1641 832 4
10.204.217.53 contrail-svc-monitor nodeg13:contrail-svc-monitor Collector nodeg20:Collector 1641 832 4
10.204.217.53 contrail-vrouter-agent:0 nodeg13:contrail-vrouter-agent:0 Collector nodea21:Collector 662 258 5
10.204.217.53 contrail-vrouter-agent:0 nodeg13:contrail-vrouter-agent:0 Collector nodeg20:Collector 662 258 5
10.204.217.53 contrail-vrouter-nodemgr nodeg13:contrail-vrouter-nodemgr Collector nodea21:Collector 1358 566 5
10.204.217.53 contrail-vrouter-nodemgr nodeg13:contrail-vrouter-nodemgr Collector nodeg20:Collector 1358 566 5
10.204.217.60 contrail-api nodeg20:contrail-api Collector nodea21:Collector 844 698 6
10.204.217.60 contrail-api nodeg20:contrail-api Collector nodeg20:Collector 844 698 6
10.204.217.60 contrail-config-nodemgr nodeg20:contrail-config-nodemgr Collector nodea21:Collector 1017 29 5
10.204.217.60 contrail-config-nodemgr nodeg20:contrail-config-nodemgr Collector nodeg20:Collector 1017 29 5
10.204.217.60 contrail-database-nodemgr nodeg20:contrail-database-nodemgr Collector nodea21:Collector 1456 359 6
10.204.217.60 contrail-database-nodemgr nodeg20:contrail-database-nodemgr Collector nodeg20:Collector 1456 359 6
127.0.0.1 contrail-discovery nodeg20:contrail-discovery Collector nodea21:Collector 940 286 10
127.0.0.1 contrail-discovery nodeg20:contrail-discovery Collector nodeg20:Collector 940 286 10
10.204.217.53 ContrailWebUI nodeg13:ContrailWebUI ApiServer nodeg13:ApiServer 24 14 219
10.204.217.53 ContrailWebUI nodeg13:ContrailWebUI ApiServer nodeg20:ApiServer 24 14 219

Publishers:

Service Type Remote IP Service Id Provision State Admin State In Use Time since last Heartbeat
OpServer 10.204.216.17 nodea21:OpServer new up 1 0:00:02
OpServer 10.204.217.60 nodeg20:OpServer new up 1 0:00:04
IfmapServer 10.204.217.53 nodeg13:IfmapServer new up 4 0:00:03
IfmapServer 10.204.217.60 nodeg20:IfmapServer new up 4 0:00:02
dns-server 10.204.217.53 nodea21:dns-server new up 2 0:00:01
dns-server 10.204.217.53 nodeg13:dns-server new up 2 0:00:01
xmpp-server 10.204.217.53 nodea21:xmpp-server new up 2 0:00:05
xmpp-server 10.204.217.53 nodeg13:xmpp-server new up 2 0:00:01
Collector 10.204.217.53 nodea21:Collector new up 22 0:00:01
Collector 10.204.217.53 nodeg20:Collector new up 22 0:00:05
ApiServer 10.204.217.53 nodeg13:ApiServer new up 1 0:00:03
ApiServer 10.204.217.60 nodeg20:ApiServer new up 1 0:00:02

Tags: discovery
Changed in juniperopenstack:
importance: Undecided → Medium
Revision history for this message
Nipa (nipak) wrote :

Publisher ip-address is resolved by
Change-Id: Ic0db5ab565007fc7296b089242188e6473a601d0

Will use the same bug to send subscriber ip address too.

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

Review in progress for https://review.opencontrail.org/13688
Submitter: Nipa Kumar (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/13688
Committed: http://github.org/Juniper/contrail-controller/commit/13235dc38d7e4c8dcc6f3412a092d9007270359b
Submitter: Zuul
Branch: R2.20

commit 13235dc38d7e4c8dcc6f3412a092d9007270359b
Author: Nipa Kumar <email address hidden>
Date: Tue Sep 8 22:18:12 2015 -0700

Send subscriber ip address in the subscribe message to discovery server.

Change-Id: If27350b03c3f41b92e0c2901e0c7a8921c156b8b
Closes-Bug:1484861

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

Review in progress for https://review.opencontrail.org/13751
Submitter: Nipa Kumar (<email address hidden>)

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

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

commit c812bbc756a702c73e7188aa3c890946d0956c39
Author: Nipa Kumar <email address hidden>
Date: Tue Sep 8 22:18:12 2015 -0700

Send subscriber ip address in the subscribe message to discovery server.

Change-Id: If27350b03c3f41b92e0c2901e0c7a8921c156b8b
Closes-Bug:1484861

Revision history for this message
Ankit Jain (ankitja) wrote :
Download full text (14.8 KiB)

Hi Nipa,

Please check

We are still not showing correct client ip on subscriber page in discovery
most of the client ips are 127.0.0.1

below is the output :
Client IP Client Type Client Id Service Type Service Id TTL (sec) Time Remaining Refresh Count
10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer nodeg32:OpServer 11 2 167
10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer nodeh1:OpServer 11 2 167
10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer nodeh2:OpServer 11 2 167
10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer nodeh6:OpServer 11 2 167
10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer nodeh7:OpServer 11 2 167
127.0.0.1 contrail-control nodeg32:contrail-control IfmapServer nodeg32:IfmapServer 1458 443 2
127.0.0.1 contrail-control nodeg32:contrail-control IfmapServer nodeh6:IfmapServer 1458 443 2
127.0.0.1 contrail-dns nodeg32:contrail-dns IfmapServer nodeh2:IfmapServer 1017 662 2
127.0.0.1 contrail-dns nodeg32:contrail-dns IfmapServer nodeh7:IfmapServer 1017 662 2
127.0.0.1 contrail-control nodeh1:contrail-control IfmapServer nodeh2:IfmapServer 788 67 3
127.0.0.1 contrail-control nodeh1:contrail-control IfmapServer nodeh7:IfmapServer 788 67 3
127.0.0.1 contrail-dns nodeh1:contrail-dns IfmapServer nodeg32:IfmapServer 1536 1312 4
127.0.0.1 contrail-dns nodeh1:contrail-dns IfmapServer nodeh7:IfmapServer 1536 1312 4
127.0.0.1 contrail-control nodeh2:contrail-control IfmapServer nodeh1:IfmapServer 940 257 2
127.0.0.1 contrail-control nodeh2:contrail-control IfmapServer nodeh6:IfmapServer 940 257 2
127.0.0.1 contrail-dns nodeh2:contrail-dns IfmapServer nodeh1:IfmapServer 482 323 3
127.0.0.1 contrail-dns nodeh2:contrail-dns IfmapServer nodeh6:IfmapServer 482 323 3
127.0.0.1 contrail-control nodeh6:contrail-control IfmapServer nodeg32:IfmapServer 1771 1458 3
127.0.0.1 contrail-control nodeh6:contrail-control IfmapServer nodeh7:IfmapServer 1771 1458 3
127.0.0.1 contrail-dns nodeh6:contrail-dns IfmapServer nodeh1:IfmapServer 1199 1100 2
127.0.0.1 contrail-dns nodeh6:contrail-dns IfmapServer nodeh6:IfmapServer 1199 1100 2
127.0.0.1 contrail-control nodeh7:contrail-control IfmapServer nodeh1:IfmapServer 1426 637 4
127.0.0.1 contrail-control nodeh7:contrail-control IfmapServer nodeh2:IfmapServer 1426 637 4
127.0.0.1 contrail-dns nodeh7:contrail-dns IfmapServer nodeg32:IfmapServer 1479 802 1
127.0.0.1 contrail-dns nodeh7:contrail-dns IfmapServer nodeh2:IfmapServer 1479 802 1
127.0.0.1 contrail-vrouter-agent:0 nodeg32:contrail-vrouter-agent:0 dns-server nodeg32:dns-server 1559 862 6
127.0.0.1 contrail-vrouter-agent:0 nodeg32:contrail-vrouter-agent:0 dns-server nodeh6:dns-server 1559 862 6
127.0.0.1 contrail-vrouter-agent:0 nodeh1:contrail-vrouter-agent:0 dns-server nodeg32:dns-server 1800 513 4
127.0.0.1 contrail-vrouter-agent:0 nodeh1:contrail-vrouter-agent:0 dns-server nodeh6:dns-server 1800 513 4
127.0.0.1 contrail-vrouter-agent:0 nodeh2:contrail-vrouter-agent:0 dns-server nodeg32:dns-se...

Revision history for this message
Nipa (nipak) wrote : Re: [Bug 1484861] Re: R2.20 build 80 : Client ip not correct in discovery server
Download full text (25.8 KiB)

OK u mean incorrect, reopen the bug. I believe this is the case for both
publisher and subscriber, can u confirm?

-nipa

On 10/1/15 3:02 AM, "Ankit Jain" <email address hidden> wrote:

>Hi Nipa,
>
>Please check
>
>We are still not showing correct client ip on subscriber page in discovery
>most of the client ips are 127.0.0.1
>
>below is the output :
>Client IP Client Type Client Id Service Type Service Id TTL (sec)
> Time Remaining Refresh Count
>10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer
> nodeg32:OpServer 11 2 167
>10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer
> nodeh1:OpServer 11 2 167
>10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer
> nodeh2:OpServer 11 2 167
>10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer
> nodeh6:OpServer 11 2 167
>10.204.217.72 ContrailWebUI nodeg32:ContrailWebUI OpServer
> nodeh7:OpServer 11 2 167
>127.0.0.1 contrail-control nodeg32:contrail-control IfmapServer
> nodeg32:IfmapServer 1458 443 2
>127.0.0.1 contrail-control nodeg32:contrail-control IfmapServer
> nodeh6:IfmapServer 1458 443 2
>127.0.0.1 contrail-dns nodeg32:contrail-dns IfmapServer
> nodeh2:IfmapServer 1017 662 2
>127.0.0.1 contrail-dns nodeg32:contrail-dns IfmapServer
> nodeh7:IfmapServer 1017 662 2
>127.0.0.1 contrail-control nodeh1:contrail-control IfmapServer
> nodeh2:IfmapServer 788 67 3
>127.0.0.1 contrail-control nodeh1:contrail-control IfmapServer
> nodeh7:IfmapServer 788 67 3
>127.0.0.1 contrail-dns nodeh1:contrail-dns IfmapServer
> nodeg32:IfmapServer 1536 1312 4
>127.0.0.1 contrail-dns nodeh1:contrail-dns IfmapServer
> nodeh7:IfmapServer 1536 1312 4
>127.0.0.1 contrail-control nodeh2:contrail-control IfmapServer
> nodeh1:IfmapServer 940 257 2
>127.0.0.1 contrail-control nodeh2:contrail-control IfmapServer
> nodeh6:IfmapServer 940 257 2
>127.0.0.1 contrail-dns nodeh2:contrail-dns IfmapServer
> nodeh1:IfmapServer 482 323 3
>127.0.0.1 contrail-dns nodeh2:contrail-dns IfmapServer
> nodeh6:IfmapServer 482 323 3
>127.0.0.1 contrail-control nodeh6:contrail-control IfmapServer
> nodeg32:IfmapServer 1771 1458 3
>127.0.0.1 contrail-control nodeh6:contrail-control IfmapServer
> nodeh7:IfmapServer 1771 1458 3
>127.0.0.1 contrail-dns nodeh6:contrail-dns IfmapServer
> nodeh1:IfmapServer 1199 1100 2
>127.0.0.1 contrail-dns nodeh6:contrail-dns IfmapServer
> nodeh6:IfmapServer 1199 1100 2
>127.0.0.1 contrail-control nodeh7:contrail-control IfmapServer
> nodeh1:IfmapServer 1426 637 4
>127.0.0.1 contrail-control nodeh7:contrail-control IfmapServer
> nodeh2:IfmapServer 1426 637 4
>127.0.0.1 contrail-dns nodeh7:contrail-dns IfmapServer
> nodeg32:IfmapServer 1479 802 1
>127.0.0.1 contrail-dns nodeh7:contrail-dns IfmapServer
> nodeh2:IfmapServer 1479 802 1
>127.0.0.1 contrail-vrouter-agent:0 nodeg32:contrail-vrouter-agent:0
> dns-server nodeg32:dns-server 1559 862 6
>127.0.0.1 contrail-vrouter-agent:0 nodeg32:contrail-vrouter-agent:0
> dns-server nodeh6:dns-server 1559 862 6
>127.0.0.1 contrail-vrouter-agent:0 nodeh1:contrail-vrouter-agent:0
> dns-...

Revision history for this message
Ankit Jain (ankitja) wrote :

No, this is happening only for subscribers, not for publishers.
Remote IPs shown on publisher page are fine.

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

Review in progress for https://review.opencontrail.org/14270
Submitter: Nipa Kumar (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/14270
Committed: http://github.org/Juniper/contrail-controller/commit/357927d5b178108162facf771a31fb3f40d4c708
Submitter: Zuul
Branch: master

commit 357927d5b178108162facf771a31fb3f40d4c708
Author: Nipa Kumar <email address hidden>
Date: Tue Oct 6 14:26:42 2015 -0700

Send subscriber discovery client ip address

Change-Id: Ic80f7197390f6d99e3371b7b86bd99d2e993b6fb
Closes-Bug:1484861

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

Review in progress for https://review.opencontrail.org/14402
Submitter: Nipa Kumar (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/14402
Committed: http://github.org/Juniper/contrail-controller/commit/63f391e878bf4e3edb97f54eacae4d04e2a53757
Submitter: Zuul
Branch: R2.20

commit 63f391e878bf4e3edb97f54eacae4d04e2a53757
Author: Nipa Kumar <email address hidden>
Date: Tue Oct 6 14:26:42 2015 -0700

Send subscriber discovery client ip address

Change-Id: Ic80f7197390f6d99e3371b7b86bd99d2e993b6fb
Closes-Bug:1484861

Revision history for this message
Pulkit Tandon (pulkitt) wrote :

Still i can see the issue only for a specific client with client type "ContrailWebUI"
Issue is that even though ContrailWenUI is only running on nodeg12 (77.77.2.10), it is showing client IP as 77.77.1.10 which actually corresponds to nodeh4 which is not running ContrailWebUI at all.

Following is the output:

Client IP Client Type Client Id Service Type Service Id TTL (sec) Time Remaining Refresh Count
77.77.1.10 ContrailWebUI nodeg12:ContrailWebUI OpServer nodeg12:OpServer 32 19 183

Revision history for this message
Deepinder Setia (dsetia) wrote :

Pulkit, can you point to running setup exhibiting this problem? Looks like you have a different (new) setup that original setup in this bug.

Ankit Jain (ankitja)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/18354
Submitter: Nipa Kumar (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/18354
Committed: http://github.org/Juniper/contrail-controller/commit/1a1a7d6008bc503b5e51f00a2a316cd2cd7025f5
Submitter: Zuul
Branch: master

commit 1a1a7d6008bc503b5e51f00a2a316cd2cd7025f5
Author: Nipa Kumar <email address hidden>
Date: Fri Mar 11 14:45:26 2016 -0800

Update subscribe message with the appropriate remote-addr

On a newly provisioned system, subscribers can be up before DiscoveryServer or haproxy, in such
a case socket connect fails and hence local ip address defaults to localhost (127.0.0.1), retry
socket connect for every subscribe when ip is still set to localhost.

This fix is a must when policies are configured to filter or group subscribers and publishers.

This fix is for c++ client only, following commit for python clients.

Change-Id: I5ae8c3a3bf362c3a99f29d04cac2b0cfc137ad4c
Partial-Bug:1484861

Changed in juniperopenstack:
milestone: r3.0-fcs → r3.1.0.0-fcs
Revision history for this message
Nipa (nipak) wrote :

Please take care of python clients for cases where connection to haproxy or discovery server may not be successful.

Revision history for this message
Pulkit Tandon (pulkitt) wrote :

Hi Nipa,
Please commit the same change for R3.0 as well.

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

Review in progress for https://review.opencontrail.org/20726
Submitter: Nipa Kumar (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/20726
Committed: http://github.org/Juniper/contrail-controller/commit/8b0d8e7648b588ba8e9c919a17cab25bb8638812
Submitter: Zuul
Branch: R3.0

commit 8b0d8e7648b588ba8e9c919a17cab25bb8638812
Author: Nipa Kumar <email address hidden>
Date: Fri Mar 11 14:45:26 2016 -0800

Update subscribe message with the appropriate remote-addr

On a newly provisioned system, subscribers can be up before DiscoveryServer or haproxy, in such
a case socket connect fails and hence local ip address defaults to localhost (127.0.0.1), retry
socket connect for every subscribe when ip is still set to localhost.

This fix is a must when policies are configured to filter or group subscribers and publishers.

This fix is for c++ client only, following commit for python clients.

Change-Id: I5ae8c3a3bf362c3a99f29d04cac2b0cfc137ad4c
Partial-Bug:1484861

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

Review in progress for https://review.opencontrail.org/20818
Submitter: Biswajit Mandal (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/20819
Submitter: Biswajit Mandal (<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/20823
Submitter: Deepinder Setia (<email address hidden>)

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

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

commit e832a638756359590f2185e37f7af028714c76c2
Author: Deepinder Setia <email address hidden>
Date: Tue May 31 22:27:22 2016 -0700

Handle the case when publishers or subscribers come up before DiscoveryServer
or haproxy. In such scenario, socket connect fails and hence local ip address
defaults to localhost (127.0.0.1). This fix provides retry socket connect for
every publish or subscribe when ip is still set to localhost.

Change-Id: I0449a02fd6bf59fddb836450b60e6620c491d4a8
Fixes-Bug: #1484861

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

Review in progress for https://review.opencontrail.org/20937
Submitter: Deepinder Setia (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/20937
Committed: http://github.org/Juniper/contrail-controller/commit/d417201af919cf5c884dab45cc64d4d174d69c49
Submitter: Zuul
Branch: R3.0

commit d417201af919cf5c884dab45cc64d4d174d69c49
Author: Deepinder Setia <email address hidden>
Date: Tue May 31 22:27:22 2016 -0700

Handle the case when publishers or subscribers come up before DiscoveryServer
or haproxy. In such scenario, socket connect fails and hence local ip address
defaults to localhost (127.0.0.1). This fix provides retry socket connect for
every publish or subscribe when ip is still set to localhost.

Fixes-Bug: #1484861
(cherry picked from commit e832a638756359590f2185e37f7af028714c76c2)

Conflicts:
 src/discovery/client.py
 src/discovery/tests/test_dsa.py

Change-Id: I0449a02fd6bf59fddb836450b60e6620c491d4a8

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

Review in progress for https://review.opencontrail.org/21095
Submitter: Biswajit Mandal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/21095
Committed: http://github.org/Juniper/contrail-web-core/commit/ca6497a34467de7b4120a1d9f6d1be497ecffe1c
Submitter: Zuul
Branch: master

commit ca6497a34467de7b4120a1d9f6d1be497ecffe1c
Author: Biswajit Mandal <email address hidden>
Date: Sat Jun 11 16:14:50 2016 +0530

Closes-Bug: #1484861
Get the local ip from localAddress of response.connection object. If discovery
server resonse of erroneous, then try for every 10 seconds for 12 times, so
total 2 minutes, if still not got the localAddress, do not send remote-addr in
discovery subscribe message.

Change-Id: If9831501e7ade278d95c0a36cdc5d7396a868728

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.