Hi All,

I have tested ovs-vswitchd behavior with the instruction given in 
INSTALL.Linux. This is working fine. In this configuration, I have two datapath 
elements, br0 and br1, linked with the same ovs-vswitchd daemon.


However, now I am interested to have br0 and br1 linked with two different 
ovs-vswitchd daemon.  So I followed following instructions.

for br0
mkdir -p /usr/local/etc/openvswitch0
ovsdb-tool create /usr/local/etc/openvswitch0/conf.db 
vswitchd/vswitch.ovsschemaovsdb-server  /usr/local/etc/openvswitch0/conf.db 
--remote=punix:/usr/local/var/run/openvswitch0/db.sock \
                     --remote=db:Open_vSwitch,manager_options \
                     --private-key=db:SSL,private_key \
                     --certificate=db:SSL,certificate \
                     --bootstrap-ca-cert=db:SSL,ca_cert \
                    --pidfile=/usr/local/var/run/openvswitch0/ovsdb-server.pid 
--detach
             
ovs-vsctl --db unix:/usr/local/var/run/openvswitch0/db.sock  --no-wait init   
ovs-vsctl -db unix:/usr/local/var/run/openvswitch0/db.sock  add-br br0
ovs-vsctl -db unix:/usr/local/var/run/openvswitch0/db.sock  add-port br0 eth1
sudo ovs-vswitchd unix:/usr/local/var/run/openvswitch0/db.sock 
--pidfile=/usr/local/var/run/openvswitch0/ovs-vswitchd.pid -v --log-file=/tmp/0 
--detach

Now br0 is working fine. Also if i do ifconfig -a, br0 interface is present. 
all ovs-ofctl, ovs-dpctl commands are working fine

After that I started running commands for br1 where the commands are similar to 
above but i changed openvswitch0 to openvswitch1, br0 to br1 and eth1 to eth2 
in above commands.


After running last command (ovs-vswitchd) for br1, br0 gets deleted 
automatically. There  is no interface br0 remained in the ifconfig output and 
also neither of above ofctl/dpctl commands working. Now there is only br1 
remained in my configuration.

I think, I am doing something wrong. Can someone suggest something in resolving 
this issue which is forcing br0 to get deleted?

Thanks,
Sachin

Following logs appeared at  /tmp/0
 27 13:55:04|06620|dpif|DBG|system@br0: dumped all flows
Jan 27 13:55:05|06621|poll_loop|DBG|wakeup due to 792-ms timeout at 
../ofproto/in-band.c:462 (0% CPU usage)
Jan 27 13:55:05|06622|poll_loop|DBG|wakeup due to 207-ms timeout at 
../ofproto/ofproto-dpif.c:704 (0% CPU usage)
Jan 27 13:55:05|06623|netlink_socket|DBG|Dropped 1 log messages in last 1 
seconds (most recently, 1 seconds ago) due to excessive rate
Jan 27 13:55:05|06624|netlink_socket|DBG|nl_sock_send__ (Success): nl(len:24, 
type=23(ovs_flow), flags=305[REQUEST][ACK][DUMP], seq=4f22873d, 
pid=75505044(7572:18)),genl(cmd=3,version=1)
Jan 27 13:55:05|06625|dpif|DBG|system@br0: flow_dump_start success
Jan 27 13:55:05|06626|dpif|DBG|system@br0: dumped all flows
Jan 27 13:55:05|06627|poll_loop|DBG|wakeup due to [POLLIN] on fd 36 
(NETLINK_ROUTE<->NETLINK_ROUTE) at ../lib/netlink-socket.c:854 (0% CPU usage)
Jan 27 13:55:05|06628|poll_loop|DBG|wakeup due to [POLLIN] on fd 36 
(NETLINK_ROUTE<->NETLINK_ROUTE) at ../lib/netlink-socket.c:854 (0% CPU usage)
Jan 27 13:55:05|06629|poll_loop|DBG|wakeup due to [POLLIN] on fd 36 
(NETLINK_ROUTE<->NETLINK_ROUTE) at ../lib/netlink-socket.c:854 (0% CPU usage)
Jan 27 13:55:05|06630|poll_loop|DBG|wakeup due to 0-ms timeout at 
../ofproto/ofproto.c:936 (0% CPU usage)
Jan 27 13:55:05|06631|dpif|DBG|system@br0: failed to query port eth1: No such 
device
Jan 27 13:55:05|06632|vconn|DBG|tcp:172.16.24.1:6633: sent (Success): 
OFPT_PORT_STATUS (xid=0x0): DEL: 2(eth1): addr:00:15:17:1b:b3:40
     config:     0
     state:      0
     current:    1GB-FD COPPER AUTO_NEG
     advertised: 1GB-FD COPPER AUTO_NEG
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG
Jan 27 13:55:05|06633|ofproto|WARN|br0: cannot get STP status on nonexistent 
port 1
Jan 27 13:55:05|06634|netdev_linux|DBG|br0: ioctl(SIOCGIFFLAGS) failed: No such 
device
Jan 27 13:55:05|06635|netdev|WARN|failed to get flags for network device br0: 
No such device
Jan 27 13:55:05|06636|ofproto_dpif|DBG|need revalidate in ofproto_wait_cb()
Jan 27 13:55:05|06637|timeval|WARN|108 ms poll interval (0 ms user, 0 ms 
system) is over 172 times the weighted mean interval 1 ms (1720 samples)
Jan 27 13:55:05|06638|timeval|WARN|disk: 0 reads, 8 writes
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to