ovs-vsctl add-br hangs

 

 

[root@kunpeng82 ~]# ovs-vsctl add-br br1



^C2020-07-02T10:28:04Z|00002|fatal_signal|WARN|terminating with signal 2 (Interrupt)

[root@kunpeng82 ~]# ovs-vsctl del-br br1
^C2020-07-02T10:28:33Z|00002|fatal_signal|WARN|terminating with signal 2 (Interrupt)

[root@kunpeng82 ~]# ovs-vsctl del-br br1
ovs-vsctl: no bridge named br1
[root@kunpeng82 ~]# ovs-vsctl add-br br1
^C2020-07-02T10:31:35Z|00002|fatal_signal|WARN|terminating with signal 2 (Interrupt)

[root@kunpeng82 ~]# ovs-vsctl del-br br1
^C2020-07-02T10:31:37Z|00002|fatal_signal|WARN|terminating with signal 2 (Interrupt)

[root@kunpeng82 ~]# strace -v -ttt -s 2048 -Ff -o ovs-vsctl.trace ovs-vsctl add-br br1
bash: strace: command not found
[root@kunpeng82 ~]# yum -y install strace

 

 原来是ovs-vswitchd没有启动

[root@kunpeng82 ~]# ps -elf | grep ovs
1 S root      6731     1  0  80   0 -   270 do_wai 09:37 ?        00:00:00 ovsdb-server: monitoring pid 6732 (healthy)
1 S root      6732  6731  0  80   0 -   279 do_sys 09:37 ?        00:00:00 ovsdb-server /etc/openvswitch/conf.db /etc/openvswitch/hw_vtep.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --remote=db:hardware_vtep,Global,managers --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
1 S root      6990     1  0  80   0 -  2049 pipe_w 10:12 ?        00:00:00 /bin/python2 /usr/share/openvswitch/scripts/ovs-vtep --log-file=/var/log/openvswitch/ovs-vtep.log --pidfile=/var/run/openvswitch/ovs-vtep.pid --detach br0
0 S root      6998  6990  0  80   0 -   265 do_sys 10:12 ?        00:00:00 ovs-vsctl -vconsole:off add-br vtep_bfd
0 S root      7331  5082  0  80   0 -  1730 pipe_w 11:14 pts/1    00:00:00 grep --color=auto ovs


[root@kunpeng82
~]# ovs-vswitchd --log-file --detach --pidfile \ > unix:/var/run/openvswitch/db.sock
[root@kunpeng82 ~]# ps -elf | grep ovs
1 S root      6731     1  0  80   0 -   270 do_wai 09:37 ?        00:00:00 ovsdb-server: monitoring pid 6732 (healthy)
1 S root      6732  6731  0  80   0 -   279 do_sys 09:37 ?        00:00:00 ovsdb-server /etc/openvswitch/conf.db /etc/openvswitch/hw_vtep.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --remote=db:hardware_vtep,Global,managers --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
1 S root      6990     1  0  80   0 -  2050 do_sel 10:12 ?        00:00:00 /bin/python2 /usr/share/openvswitch/scripts/ovs-vtep --log-file=/var/log/openvswitch/ovs-vtep.log --pidfile=/var/run/openvswitch/ovs-vtep.pid --detach br0
5 S root      7333     1  2  80   0 - 75244 do_sys 11:15 ?        00:00:02 ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock
0 S root      8044  5082  0  80   0 -  1730 pipe_w 11:17 pts/1    00:00:00 grep --color=auto ovs
[root@kunpeng82 ~]# 

 

[root@kunpeng82 ~]# ovs-vsctl show
ec7f002f-352c-476c-8348-5f2c86c8194f
    Bridge vtep_bfd
        Port vtep_bfd
            Interface vtep_bfd
                type: internal
    Bridge "br0"
        Port "enahisic2i2"
            Interface "enahisic2i2"
        Port "br0"
            Interface "br0"
                type: internal
    ovs_version: "2.12.0"
[root@kunpeng82 ~]# ip a | grep vtep_bfd
246: vtep_bfd: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
[root@kunpeng82 ~]# ip a s how vtep_bfd
Error: either "dev" is duplicate, or "vtep_bfd" is a garbage.
[root@kunpeng82 ~]# ip a sh vtep_bfd
246: vtep_bfd: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 62:a3:ad:09:0b:4c brd ff:ff:ff:ff:ff:ff
[root@kunpeng82 ~]# 

 

posted on 2020-07-02 18:32  tycoon3  阅读(580)  评论(0编辑  收藏  举报

导航