[ovs-discuss] ovn-ic POC problem
fangtian at ruijie.com.cn
fangtian at ruijie.com.cn
Thu Apr 30 03:07:09 UTC 2020
Hi all,
I am a developer of Kube-ovn project. Currently I’m doing an OVN-interconnect POC, the setup script is attached at the bottom.
My problem is :as everything seems OK, but I can’t ping the Central AZ from the East AZ.
I did diagnose this with the ovn-trace tool ,which prompt me with the message at the end :
“egress(dp="join", inport="join-ovn-cluster", outport="node-east-1")
-------------------------------------------------------------------
1. ls_out_pre_acl (ovn-northd.c:4690): ip, priority 100, uuid 7a78dffb
reg0[0] = 1;
next;
2. ls_out_pre_stateful (ovn-northd.c:4879): reg0[0] == 1, priority 100, uuid e724b591
ct_next;
ct_next(ct_state=est|trk /* default (use --ct to customize) */)
---------------------------------------------------------------
9. ls_out_port_sec_l2 (ovn-northd.c:4564): outport == "node-east-1", priority 50, uuid 7c98b562
output;
/* output to "node-east-1", type "" */
“
Seems the ping package was sent out from the outport "node-east-1" ,but no response there.
Will someone please to tell me what’s wrong with my POC setup ?
Thanks!
Tian
###################setup scripts#######################################
#on central node
#start ic-db
/usr/share/ovn/scripts/ovn-ctl --db-ic-nb-create-insecure-remote=yes --db-ic-sb-create-insecure-remote=yes start_ic_ovsdb
#set AZ name
ovn-nbctl set NB_Global . name=central
#start ovn-ic daemon
/usr/share/ovn/scripts/ovn-ctl --ovn-ic-nb-db=tcp:172.17.88.1:6645 --ovn-ic-sb-db=tcp:172.17.88.1:6646 \
--ovn-northd-nb-db=tcp:172.17.88.1:6641 --ovn-northd-sb-db=tcp:172.17.88.1:6642 start_ic
#add gateway
ovs-vsctl set open_vswitch . external_ids:ovn-is-interconn=true
#add transit LS
ovn-ic-nbctl ts-add ts-aliyun
#add lr port
ovn-nbctl lrp-add ovn-cluster lrp-ovn-cluster-ts-aliyun-central 1a:aa:aa:aa:aa:01 192.168.100.1/24
#add lsp port , don't know if need to set addresses to the real MAC address
ovn-nbctl lsp-add ts-aliyun lsp-ovn-cluster-ts-aliyun-central -- \
lsp-set-addresses lsp-ovn-cluster-ts-aliyun-central router -- \
lsp-set-type lsp-ovn-cluster-ts-aliyun-central router -- \
lsp-set-options lsp-ovn-cluster-ts-aliyun-central router-port=lrp-ovn-cluster-ts-aliyun-central
#set gw chassis ,chassis name is from ovn-sbctl show
ovn-nbctl lrp-set-gateway-chassis lrp-ovn-cluster-ts-aliyun-central 785b3dec-0af0-4906-8018-50f511bf4e4f
#add route
ovn-nbctl lr-route-add ovn-cluster 10.44.0.0/16 192.168.100.2
###on east node
#set AZ name
ovn-nbctl set NB_Global . name=east
#start ovn-ic daemon
/usr/share/ovn/scripts/ovn-ctl --ovn-ic-nb-db=tcp:172.17.88.1:6645 --ovn-ic-sb-db=tcp:172.17.88.1:6646 \
--ovn-northd-nb-db=tcp:172.17.88.0:6641 --ovn-northd-sb-db=tcp:172.17.88.0:6642 start_ic
#add gateway
ovs-vsctl set open_vswitch . external_ids:ovn-is-interconn=true
ovn-nbctl lrp-add ovn-cluster lrp-ovn-cluster-ts-aliyun-east 1a:aa:aa:aa:aa:02 192.168.100.2/24
ovn-nbctl lsp-add ts-aliyun lsp-ovn-cluster-ts-aliyun-east -- \
lsp-set-addresses lsp-ovn-cluster-ts-aliyun-east router -- \
lsp-set-type lsp-ovn-cluster-ts-aliyun-east router -- \
lsp-set-options lsp-ovn-cluster-ts-aliyun-east router-port=lrp-ovn-cluster-ts-aliyun-east
#set gw chassis
ovn-nbctl lrp-set-gateway-chassis lrp-ovn-cluster-ts-aliyun-east d68ac809-292e-4df0-9a45-0254750f2376
ovn-nbctl lr-route-add ovn-cluster 10.42.0.0/16 192.168.100.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20200430/dcf4a5ff/attachment.html>
More information about the discuss
mailing list