- **status**: unassigned --> accepted
- **assigned_to**: Thuan Tran


---

** [tickets:#3192] dtm: TCP port connection should be established with fixed 
IP, not alias IP**

**Status:** accepted
**Milestone:** 5.20.05
**Created:** Mon May 25, 2020 04:57 PM UTC by David Hoyt
**Last Updated:** Mon May 25, 2020 04:57 PM UTC
**Owner:** Thuan Tran


**Step to reproduce**
IPv6 IPs:
SC1: aabb:ccdd:9988:1000::55
SC2: aabb:ccdd:9988:1000::56
Alias IP: aabb:ccdd:9988:1000::2

1. start opensaf on SC-1
2. add alias IP to eth0
3. start opensaf on SC-2

Afterwards, the following shows the TCP connection for port 6700 is with the 
alias IP:
[sc1 ~]# ss -at | grep 6700
LISTEN 0 20 [aabb:ccdd:9988:1000::55]:6700 [::]:*
ESTAB 0 0 [aabb:ccdd:9988:1000::2]:15462 [aabb:ccdd:9988:1000::56]:6700
[sc1 ~]#
[sc1 ~]# ip addr show eth0 | grep global
inet6 aabb:ccdd:9988:1000::2/64 scope global
inet6 aabb:ccdd:9988:1000::55/64 scope global

Now, in our case, the application adds the alias IP to eth0.
When an si-swap is perform on the app, as part of the quiesced operation, the 
alias IP is removed.
Once that happens, the logs on both nodes show that osafdtmnd process generates 
a recv() errno=110 occurred. THis is a connection time-out and the opensaf 
controllers go split-brain.

**Observed behaviour**
The opensaf TCP connection port 6700 of node2 is with the alias IPv6 address of 
node1.

[sc1 ~]# ss -at | grep 6700
ESTAB 0 0 [aabb:ccdd:9988:1000::2]:15462 [aabb:ccdd:9988:1000::56]:6700

**Expected behaviour**
The opensaf TCP connection port 6700 of node2 should be with the fixed IPv6 
address of node1.

[sc1 ~]# ss -at | grep 6700
ESTAB 0 0 [aabb:ccdd:9988:1000::55]:15462 [aabb:ccdd:9988:1000::56]:6700

**Error messages**
As part of an application swap, the alias IPv6 address is removed from eth0 of 
node1.
As a result, the logs show that the TCP connection between the 2 opensaf 
process becomes 

osafdtmd[5029]: ER recv() from node 0x2040f failed, errno=110
osafdtmd[17906]: ER recv() from node 0x2020f failed, errno=110


**Environment details**
2 nodes: SC-1,SC-2

Running opensaf-5.19.10
Virtualization: kvm
Operating System: Red Hat Enterprise Linux Server 7.8 (Maipo)
Kernel: Linux 3.10.0-1127.el7.x86_64
Architecture: x86-64


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to