<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Hi All,</div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> I try to use l2 gateway. Use one node install devstack, and another node as gateway installing ovs 2.5.0</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">The devstack running </span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);">neutron-l2gateway-agent and neutron-server with l2gateway plugin.</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">file</span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"> /etc/neutron/l2gateway_agent.ini looks like, "node-82" is the gateway node hostname.</span></div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">[DEFAULT]<br>[ovsdb]<br>ovsdb_hosts = node-82:10.254.9.82:8802 </span><div><br></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">node-82 running ovs listening to remote port 8802. </span><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --remote=ptcp:8802 --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">ovs-vswitchd unix:/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --no-chdir --log-file=/var/log/openvswitch/ov-vswitchd.log --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --detach --monitor</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">devstack node could config node-82 ovs bridge successfully.</span></div><div><br></div><div>Then execute:</div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">neutron l2-gateway-create gw1 --device name=node-82,interface_names=enp7s0f1 result:</span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> works well, and db add this info to table </span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);">l2gateways.</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> neutron l2-gateway-connection-create gw1 net1 --default-segmentation-id=100 result: </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">returns "</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">L2 Gateway Device node-82 could not be found.</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">"</span></div><div><br></div><div><span style="background-color: window; font-size: 10.5pt; line-height: 1.5;"><br></span></div><div><span style="background-color: window; font-size: 10.5pt; line-height: 1.5;">Is ovs could be treated as gateway?</span></div><div><span style="background-color: window; font-size: 10.5pt; line-height: 1.5;">The config file has something wrong?</span></div><div><span style="background-color: window; font-size: 10.5pt; line-height: 1.5;"><br></span></div><div>Best regards,</div><div>Yujie</div><div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div><a href="mailto:judy_yujie@126.com" style="font-size: 10pt; line-height: 1.5; background-color: window;">judy_yujie@126.com</a><span style="font-size: 10pt; color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span></div><div><span style="font-size: 10pt; color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0);"><br></span></div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"></span></div></span></div>
</div></div></body></html>