Ask Your Question
0

Vm ping gateway DUP

asked 2019-09-16 21:36:54 -0500

mr-han gravatar image

updated 2019-09-17 09:37:46 -0500

Rocky OpenvSwitch + Vxlan + dvr + 3 controller + 3 network +2compute

ovs local_ip= bond2.935

[root~]$ ovs-vsctl list-br

br-int

br-provider

br-tun

[-root ~]$ ovs-vsctl list-ports br-provider

bond2

phy-br-provider

When I'm ping gateway in VM

[vm-test ~]$ ping 172.16.2.1

PING 172.16.2.1 (172.16.2.1) 56(84) bytes of data.

64 bytes from 172.16.2.1: icmp_seq=1 ttl=64 time=0.083 ms (DUP!)

64 bytes from 172.16.2.1: icmp_seq=2 ttl=64 time=0.058 ms

64 bytes from 172.16.2.1: icmp_seq=3 ttl=64 time=0.052 ms (DUP!)

64 bytes from 172.16.2.1: icmp_seq=4 ttl=64 time=0.064 ms

64 bytes from 172.16.2.1: icmp_seq=5 ttl=64 time=0.048 ms

I've got ICMP echo reply on network Qvrouter and compute qrouter

On network node:

[network-3 ~]$ ip netns exec qrouter-c4de5b52-fc69-4c83-aa4b-ba484c1fdb17  tcpdump -i qr-cf40624d-6d -v

tcpdump: listening on qr-cf40624d-6d, link-type EN10MB (Ethernet), capture size 262144 bytes
13:24:23.216543 IP (tos 0x0, ttl 64, id 29, offset 0, flags [DF], proto ICMP (1), length 84)
171.16.2.5 > network-3: ICMP echo request, id 46593, seq 369, length 64
13:24:23.216606 IP (tos 0x0, ttl 64, id 56770, offset 0, flags [none], proto ICMP (1), length 84)
SCSP02558 > 171.16.2.5: ICMP echo reply, id 46593, seq 369, length 64 enter code here

ON computer node:

[compute-2 ~]$   ip netns exec qrouter-c4de5b52-fc69-4c83-aa4b-ba484c1fdb17  tcpdump -i qr-cf40624d-6d -v
tcpdump: listening on qr-cf40624d-6d, link-type EN10MB (Ethernet), capture size 262144 bytes
13:30:49.267312 IP (tos 0x0, ttl 64, id 51578, offset 0, flags [DF], proto ICMP (1), length 84)
171.16.2.5 > compute-2: ICMP echo request, id 46593, seq 755, length 64
13:30:49.267422 IP (tos 0x0, ttl 64, id 1365, offset 0, flags [none], proto ICMP (1), length 84)
compute-2 > 192.168.11.5: ICMP echo reply, id 46593, seq 755, length 64
13:30:50.267407 IP (tos 0x0, ttl 64, id 51747, offset 0, flags [DF], proto ICMP (1), length 84)
171.16.2.5 > compute-2: ICMP echo request, id 46593, seq 756, length 64

171.16.2.5 is My VM IP

edit retag flag offensive close merge delete

Comments

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-16 23:10:51 -0500 )edit

Also try an internet search: https://duckduckgo.com/?q=ping+dup+op....

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-16 23:11:26 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2019-09-17 05:27:33 -0500

mr-han gravatar image

OpenStack Rocky official guide the configuration

file : /etc/neutron/plugins/ml2/openvswitch_agent.ini

 [DEFAULT]
 [agent]
 enable_distributed_routing = True
   .
   .

There seems to be a problem with this configuration

I reconfigured it as

[DEFAULT]
enable_distributed_routing = True
[agent]
     .
     .

enable_distributed_routing configuration items in [DEFAULT]

Then Restart services

systemctl restart  neutron-l3-agent.service neutron-openvswitch-agent.service openvswitch.service

The problem seems to have been solved

edit flag offensive delete link more

Comments

It does belong in the [agent] section; see https://docs.openstack.org/neutron/la....

I fear you may have disabled DVR now, and your config works because of that. As admin, check router details to ensure it's DVR.

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-17 06:11:27 -0500 )edit

Now, I only ping VM on compute node get through qrouter is OK , all of the network Can't connect VM get through qrouter , Is this normal ?

mr-han gravatar imagemr-han ( 2019-09-17 08:40:41 -0500 )edit
1

What do you mean by "Can't connect VM get through qrouter"? What is qrouter, do you want to connect to a VM (from where) or from a VM (to where)?

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-17 09:40:20 -0500 )edit

I mean like this : [network-3 ~]$ ip netns exec qrouter-c4de5b52-fc69-4c83-aa4b-ba484c1fdb17 ping 171.16.2.5

All of the node ,Can they all be ping ? (3 network nodes and 2 computes )

My environment is configured l3_ha

mr-han gravatar imagemr-han ( 2019-09-17 22:18:43 -0500 )edit

I don't know if you are supposed to have connectivity from the network namespaces on other nodes. My guess: Only from compute nodes that run instances in the same network, perhaps also from controllers.

In any case, if you can access the Instances via floating IP, and you have DVR, all is fine.

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-18 02:01:26 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-09-16 21:36:54 -0500

Seen: 19 times

Last updated: Sep 17