[ovs-discuss] 答复: 答复: can't remove openvswitch.ko with "modprobe -r openvswitch "

2016-10-11 Thread xiongzhiwei
Great, I have successfully removed the openvswitch.ko after removed the dp. I 
have forgotten to check kernel datapaths.

Thanks Flavio and Jstin.

Zhiwei xiong

-邮件原件-
发件人: Pravin Shelar [mailto:pshe...@ovn.org] 
发送时间: 2016年10月12日 4:35
收件人: xiongzhiwei <xiongzhi...@baicells.com>
抄送: Flavio Fernandes <fla...@flaviof.com>; Justin Pettit <jpet...@ovn.org>; 
discuss@openvswitch.org
主题: Re: [ovs-discuss] 答复: can't remove openvswitch.ko with "modprobe -r 
openvswitch "

On Tue, Oct 11, 2016 at 1:15 AM, xiongzhiwei <xiongzhi...@baicells.com> wrote:
> Thanks flaviof, As your email thread, I can't use the option 
> "force-reload-kmod" to uninstall the openvswitch.ko.
> The error was always shown " modprobe: FATAL: Module openvswitch is in use."
>
> My operation is as below:
> 1. insmod openvswitch.ko
> modprobe openvswitch
> 2. start the ovsdb-server:
>ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock 
> --remote=db:Open_vSwitch,Open_vSwitch,manager_options 
> --private-key=db:Open_vSwitch,SSL,private_key 
> --certificate=db:Open_vSwitch,SSL,certificate 
> --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach 3. start 
> ovs-vswitchd
> ovs-vswitchd --pidfile --detach 4. add a ovs bridge
> ovs-vsctl add-br br0
> 5. remove this bridge
> ovs-vsctl del-br br0
>
> until this step3, I can successful uninstall openvswitch.ko and no 
> error shown with command: modprobe -r openvswitch but, step 5, the error " 
> modprobe: FATAL: Module openvswitch is in use." is shown when I want to 
> remove the kernel mode of openvswitch, in spite of stopping ovs with "pkill 
> ovs".
>
> I have found the virtual interface named "ovs-system" with command " ifconfig 
> -a", I guess it is the key of this issue. So what can I do to remove the 
> "ovs-system"?
>
You can you ovs-dpctl to delete the bridge.
`ovs-dpctl del-dp ovs-system`

___
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


[ovs-discuss] 答复: can't remove openvswitch.ko with "modprobe -r openvswitch "

2016-10-11 Thread xiongzhiwei
Thanks flaviof, As your email thread, I can't use the option 
"force-reload-kmod" to uninstall the openvswitch.ko.
The error was always shown " modprobe: FATAL: Module openvswitch is in use."

My operation is as below:
1. insmod openvswitch.ko
modprobe openvswitch
2. start the ovsdb-server:
   ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock 
--remote=db:Open_vSwitch,Open_vSwitch,manager_options 
--private-key=db:Open_vSwitch,SSL,private_key 
--certificate=db:Open_vSwitch,SSL,certificate 
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach
3. start ovs-vswitchd
ovs-vswitchd --pidfile --detach
4. add a ovs bridge
ovs-vsctl add-br br0
5. remove this bridge
ovs-vsctl del-br br0

until this step3, I can successful uninstall openvswitch.ko and no error shown 
with command: modprobe -r openvswitch
but, step 5, the error " modprobe: FATAL: Module openvswitch is in use." is 
shown when I want to remove the kernel mode of openvswitch, in spite of 
stopping ovs with "pkill ovs".

I have found the virtual interface named "ovs-system" with command " ifconfig 
-a", I guess it is the key of this issue. So what can I do to remove the 
"ovs-system"?

Thanks

Zhiwei xiong


-邮件原件-
发件人: Flavio Fernandes [mailto:fla...@flaviof.com] 
发送时间: 2016年10月10日 22:26
收件人: Justin Pettit <jpet...@ovn.org>
抄送: xiongzhiwei <xiongzhi...@baicells.com>; discuss@openvswitch.org
主题: Re: [ovs-discuss] can't remove openvswitch.ko with "modprobe -r openvswitch 
"


> On Oct 10, 2016, at 2:05 AM, Justin Pettit <jpet...@ovn.org> wrote:
> 
> You might check the log files.  You might also check "lsmod" and see if 
> there's any dependency on it.
> 

Also, see if this is related to a known issue that was discussed here [1].
I never got look at the code that Jesse suggested [2]; sorry!

-- flaviof

[1]: http://openvswitch.org/pipermail/discuss/2016-September/thread.html#22751
[2]: http://openvswitch.org/pipermail/discuss/2016-September/022762.html


> --Justin
> 
> 
>> On Oct 9, 2016, at 2:10 AM, xiongzhiwei <xiongzhi...@baicells.com> wrote:
>> 
>> Hi all, 
>> I have updated my ovs from 2.3.2 to 2.5, I want to remove the openvswitch.ko 
>> with “modprobe –r openvswitch”, but it doesn’t work.
>> For the ovs 2.3.2, there is no this problem.
>> 
>> Who can tell me how to uninstall the ovs?
>> 
>> Thanks and regards
>> 
>> Zhiwei Xiong
>> 
>> 
>> 
>> 熊志伟 Xiong Zhiwei
>> Mob:(+86) 186-1840-0861
>> E-mail:xiongzhi...@baicells.com
>> 北京佰才邦技术有限公司Baicells Technologies Co. Ltd.
>> 
>> 
>> 本邮件及其附件含有北京佰才邦技术有限公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
>> This e-mail and its attachments contain confidential information from 
>> Baicells Technologies Co. Ltd., which is intended only for the person or 
>> entity whose address is listed above. Any use of the information contained 
>> herein in any way (including, but not limited to, total or partial 
>> disclosure, reproduction, or dissemination) by persons other than the 
>> intended recipient(s) is prohibited. If you receive this e-mail in error, 
>> please notify the sender by phone or email immediately and delete it!
>> 
>> ___
>> discuss mailing list
>> discuss@openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
> 
> ___
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss

___
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


[ovs-discuss] 答复: can't remove openvswitch.ko with "modprobe -r openvswitch "

2016-10-10 Thread xiongzhiwei
Hi Justin, Thanks for your help.

Yes, I have checked the dependencies of openvswitch.ko, the results as below:

[root@localhost bai_ovs_2.5]# lsmod | grep openvswitch
openvswitch   258935  1 
nf_defrag_ipv6 34651  1 openvswitch
gre13808  1 openvswitch
nf_defrag_ipv4 12729  2 openvswitch,nf_conntrack_ipv4
nf_conntrack  101024  5 
openvswitch,nf_nat,nf_nat_ipv4,iptable_nat,nf_conntrack_ipv4
libcrc32c  12644  3 xfs,btrfs,openvswitch
[root@localhost bai_ovs_2.5]# modprobe --show-depends openvswitch
insmod /lib/modules/3.10.0-123.el7.x86_64/kernel/lib/libcrc32c.ko 
insmod /lib/modules/3.10.0-123.el7.x86_64/kernel/net/ipv4/gre.ko 
insmod /lib/modules/3.10.0-123.el7.x86_64/kernel/net/netfilter/nf_conntrack.ko 
insmod 
/lib/modules/3.10.0-123.el7.x86_64/kernel/net/ipv4/netfilter/nf_defrag_ipv4.ko 
insmod 
/lib/modules/3.10.0-123.el7.x86_64/kernel/net/ipv6/netfilter/nf_defrag_ipv6.ko 
insmod /lib/modules/3.10.0-123.el7.x86_64/extra/openvswitch.ko

I have tried to rmmod these dependancies, but still faild. The error is shown 
"modprobe: FATAL: Module *** is in use” same as Openvswitch kernel model. 

I have tested uninstallation would be faild once I added an ovs bridge witch 
command "ovs-vsctl add-br br0", even though I have killed ovs-vswitchd and 
ovsdb procedure.
If I remove all ovs bridges with command "ovs-vsctl del-br", the uninstallation 
still faild.

I don't know what happened.

Thanks


-邮件原件-
发件人: Justin Pettit [mailto:jpet...@ovn.org] 
发送时间: 2016年10月10日 14:06
收件人: xiongzhiwei <xiongzhi...@baicells.com>
抄送: discuss@openvswitch.org
主题: Re: [ovs-discuss] can't remove openvswitch.ko with "modprobe -r openvswitch 
"

You might check the log files.  You might also check "lsmod" and see if there's 
any dependency on it.

--Justin


> On Oct 9, 2016, at 2:10 AM, xiongzhiwei <xiongzhi...@baicells.com> wrote:
> 
> Hi all, 
> I have updated my ovs from 2.3.2 to 2.5, I want to remove the openvswitch.ko 
> with “modprobe –r openvswitch”, but it doesn’t work.
> For the ovs 2.3.2, there is no this problem.
>  
> Who can tell me how to uninstall the ovs?
>  
> Thanks and regards
>  
> Zhiwei Xiong
>  
>  
> 
> 熊志伟 Xiong Zhiwei
> Mob:(+86) 186-1840-0861
> E-mail:xiongzhi...@baicells.com
> 北京佰才邦技术有限公司Baicells Technologies Co. Ltd.
>  
> 
> 本邮件及其附件含有北京佰才邦技术有限公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from 
> Baicells Technologies Co. Ltd., which is intended only for the person or 
> entity whose address is listed above. Any use of the information contained 
> herein in any way (including, but not limited to, total or partial 
> disclosure, reproduction, or dissemination) by persons other than the 
> intended recipient(s) is prohibited. If you receive this e-mail in error, 
> please notify the sender by phone or email immediately and delete it!
>  
> ___
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss

___
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


[ovs-discuss] can't remove openvswitch.ko with "modprobe -r openvswitch "

2016-10-09 Thread xiongzhiwei
Hi all, 

I have updated my ovs from 2.3.2 to 2.5, I want to remove the openvswitch.ko
with “modprobe �Cr openvswitch”, but it doesn’t work.

For the ovs 2.3.2, there is no this problem.

 

Who can tell me how to uninstall the ovs?

 

Thanks and regards

 

Zhiwei Xiong

 

 



熊志伟 Xiong Zhiwei

Mob:(+86) 186-1840-0861

E-mail:  xiongzhi...@baicells.com 

北京佰才邦技术有限公司Baicells Technologies Co. Ltd.

 



本邮件及其附件含有北京佰才邦技术有限公司的保密信息,仅限于发送给上面地址中列
出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、
复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件
人并删除本邮件!

This e-mail and its attachments contain confidential information from
Baicells Technologies Co. Ltd., which is intended only for the person or
entity whose address is listed above. Any use of the information contained
herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the
intended recipient(s) is prohibited. If you receive this e-mail in error,
please notify the sender by phone or email immediately and delete it!

 

___
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss