[NETVIRT-1080] PNF failed after FIP detached Created: 06/Feb/18 Updated: 15/May/18 Resolved: 15/May/18 |
|
| Status: | Resolved |
| Project: | netvirt |
| Component/s: | General |
| Affects Version/s: | Nitrogen, Oxygen |
| Fix Version/s: | Oxygen-SR2, Fluorine |
| Type: | Bug | Priority: | Medium |
| Reporter: | Hari Prasidh | Assignee: | Vinh Nguyen |
| Resolution: | Done | Votes: | 0 |
| Labels: | csit:failures | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ODL:Nitrogen-SR1 3 nodes |
||
| Attachments: |
|
| Description |
|
The reproduction steps . |
| Comments |
| Comment by Vinh Nguyen [ 26/Feb/18 ] |
|
Some investigations as below: 1) Could not reproduce the issue using Nitrogen SR2. Please re-test with the SR2 or later 2) The attached OVS_info.zip doesn't seem to relate to the setup in log_full.html.gz 3) In the OVS_info.zip setup, the external gateway doesn't seem to be up-and-running. The external network group entry for all three nodes drop external traffic: cookie=0x8000004, duration=7288.519s, table=21, n_packets=1910, n_bytes=187180, priority=10,ip,metadata=0x324b2/0xfffffe actions=group:225000 group_id=225000,type=all,bucket=actions=drop This indicates the external network group installer failed to detect mac address of the external gateway.
4) In the scenario that captured in log_full.html.gz, I don't see the above issue in 3). Could we retry the scenario and send me the latest log? |
| Comment by Hari Prasidh [ 27/Feb/18 ] |
|
If you look on below failed test scenario from the log.html. You can find above issue. And recent CSIT jobs are not having the test scenarios what I've mentioned in issue reproduction steps. |
| Comment by Hari Prasidh [ 01/Mar/18 ] |
|
Issue can be reproducible in sandbox jobs . please find the attachments for logs SandboxJobs.zip |
| Comment by Sam Hague [ 08/Mar/18 ] |
|
This is also hitting oxygen: https://jenkins.opendaylight.org/releng/me/my-views/view/netvirt-oxygen-queens/job/netvirt-csit-1node-openstack-queens-upstream-stateful-oxygen/207/ |
| Comment by Vinh Nguyen [ 10/Mar/18 ] |
|
This issue is not related to the PNF/SNAT issue in recent CSIT. The issue is found in sandbox where extra tests are added to the end of the current external-network test cases. The additional test cases are:
Here, PNF ping fails when the FIP is deleted. We would expect PNF scenario continues to work via SNAT
|
| Comment by Vinh Nguyen [ 12/Mar/18 ] |
|
Update title to 'PNF failed after FIP Detached' Investigation: Three nodes, control, compute1, compute2 1.External NW creation The PNF SubnetRoute flow entries are installed for ALL 3 nodes cookie=0x8000003, duration=339.441s, table=21, n_packets=0, n_bytes=0, priority=34,ip,metadata=0x30d42/0xfffffe,nw_dst=10.10.10.0/24 actions=write_metadata:0x138c030d42/0xfffffffffe,goto_table:22 5.SNAT confirmation Problem: The PNF subnetRoute flow entries are removed on the OVS node that hosted the VM after detaching the FIP (in step 8). The PNF subnetRoute flow entries are removed on the dpn when the FIP port is the last port for the VPN on that dpn: The VpnToDpnList for the external subnet after FIP is attached (step 6): , { "ip-address": "192.168.56.13/32", "ip-address-source": "FloatingIP" } ] ] Notes:
The VpnToDpnList for the external subnet after FIP is deleted (step 8): { ] ], After detaching the FIP on 8796748560798 the vpn-to-dpn-list for external subnet vpn is empty, Suggested solution:
|
| Comment by Vinh Nguyen [ 12/Mar/18 ] |
|
Patch: https://git.opendaylight.org/gerrit/#/c/69102/
CSIT verification pending. |
| Comment by Jamo Luhrsen [ 13/Mar/18 ] |
|
reading the commit message in the patch makes sense for why we commit message:
|
| Comment by Vinh Nguyen [ 29/Mar/18 ] |
|
sorry the previous analysis is incorrect. Revised analysis: I found that the problem ocurs only when:
The vpn-to-dpn-list for the external subnet on each compute dpn contains single IP address - If the FIP on the NAPT switch is deleted, since it is the last address on the NAPT controller mode doesn't have this issue because the external router GW interface IP is The following is the vpn-instance-op-data-entry for the external subnet when FIPs added: Conntrack mode:
{
"vpn-id": 100001,
"vpn-instance-name": "aa5d4ad7-8f17-4efe-b0cf-bec0ccc2c086",
"vpn-state": "created",
"vpn-to-dpn-list": [
{
"dpn-state": "active",
"dpnId": 223071002466895,
"vpn-interfaces": [
{ "interface-name": "189fdbb1-eab1-4108-9b2a-bff343503552" }
]
},
{
"dpn-state": "active",
"dpnId": 73535277218113,
"ip-addresses": [
{ "ip-address": "10.10.10.13/32", "ip-address-source": "FloatingIP" }
]
},
{
"dpn-state": "active",
"dpnId": 116882536471118,
"ip-addresses": [
{ "ip-address": "10.10.10.4/32", "ip-address-source": "FloatingIP" }
]
}
],
"vrf-id": "aa5d4ad7-8f17-4efe-b0cf-bec0ccc2c086"
},
The following is the after FIP for VM1 is deleted:
{
"vpn-id": 100001,
"vpn-instance-name": "aa5d4ad7-8f17-4efe-b0cf-bec0ccc2c086",
"vpn-state": "created",
"vpn-to-dpn-list": [
{
"dpn-state": "active",
"dpnId": 223071002466895,
"vpn-interfaces": [
{ "interface-name": "189fdbb1-eab1-4108-9b2a-bff343503552" }
]
},
{ "dpn-state": "inactive", "dpnId": 73535277218113 }
,
{
"dpn-state": "active",
"dpnId": 116882536471118,
"ip-addresses": [
{ "ip-address": "10.10.10.4/32", "ip-address-source": "FloatingIP" }
]
}
],
"vrf-id": "aa5d4ad7-8f17-4efe-b0cf-bec0ccc2c086"
},
For NAPT controller mode:
FIPs added:
{
"vpn-id": 100012,
"vpn-instance-name": "ddf97de4-0a2d-48a8-b7d3-af8ffdae6761",
"vpn-state": "created",
"vpn-to-dpn-list": [
{
"dpn-state": "active",
"dpnId": 8796751999625,
"ip-addresses": [
{ "ip-address": "192.168.56.18/32", "ip-address-source": "ExternalFixedIP" }
,
{ "ip-address": "192.168.56.13/32", "ip-address-source": "FloatingIP" }
]
},
{
"dpn-state": "active",
"dpnId": 8796748560798,
"ip-addresses": [
{ "ip-address": "192.168.56.17/32", "ip-address-source": "FloatingIP" }
]
}
],
"vrf-id": "ddf97de4-0a2d-48a8-b7d3-af8ffdae6761"
}
FIP on the NAPT switch (8796751999625) deleted:
{
"vpn-id": 100012,
"vpn-instance-name": "ddf97de4-0a2d-48a8-b7d3-af8ffdae6761",
"vpn-state": "created",
"vpn-to-dpn-list": [
{
"dpn-state": "active",
"dpnId": 8796751999625,
"ip-addresses": [
{ "ip-address": "192.168.56.18/32", "ip-address-source": "ExternalFixedIP" }
]
},
{
"dpn-state": "active",
"dpnId": 8796748560798,
"ip-addresses": [
{ "ip-address": "192.168.56.17/32", "ip-address-source": "FloatingIP" }
]
}
],
"vrf-id": "ddf97de4-0a2d-48a8-b7d3-af8ffdae6761"
} |