On 4/4/24 01:44, Sri kor wrote:
> Hi Dumitru,
>    I have been facing segmantation fault everytime when I trigger
> lr-nat-add with dnat_and_snat. It is distro from centros and it is on rocky
> 9.1.
> 
>> # ovn-nbctl --no-leader-only lr-nat-add
>> a_4a3e9209_8826_4561_9c58_4a852bd61c45_lr_3a735720_c52f_4e6c_856c_4a0dac424a1e
>> dnat_and_snat 91.106.223.172 10.100.140.137
>> Segmentation fault (core dumped)
> 
> 
> 
>> [root@ovn ~]# cat /etc/os-release
>> NAME="Rocky Linux"
>> VERSION="9.1 (Blue Onyx)"
>> ID="rocky"
>> ID_LIKE="rhel centos fedora"
>> VERSION_ID="9.1"
>> PLATFORM_ID="platform:el9"
>> PRETTY_NAME="Rocky Linux 9.1 (Blue Onyx)"
>> ANSI_COLOR="0;32"
>> LOGO="fedora-logo-icon"
>> CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
>> HOME_URL="https://rockylinux.org/";
>> BUG_REPORT_URL="https://bugs.rockylinux.org/";
>> ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
>> ROCKY_SUPPORT_PRODUCT_VERSION="9.1"
>> REDHAT_SUPPORT_PRODUCT="Rocky Linux"
>> REDHAT_SUPPORT_PRODUCT_VERSION="9.1"
> 
It's still not clear what ovn version you're exactly running.  Can you
please share the output of:

rpm -qa | grep ovn

Thanks!

> 
> 
> thanks
> Srini
> On Mon, Feb 19, 2024 at 6:25 AM Dumitru Ceara <dce...@redhat.com> wrote:
> 
>> On 2/13/24 00:10, Sri kor via discuss wrote:
>>> Hi Team,
>>>   When I am trying to add the nat entry for LR, ovn-nbctl cored. here is
>>> back trace.
>>
>> Hi,
>>
>>>
>>> [root@ovnkube-db-0 ~]# ovn-nbctl --no-leader-only lr-nat-add
>>>
>> a_4a3e9209_8826_4561_9c58_4a852bd61c45_lr_a2b89a8a_530a_446f_bf6c_ecf223a7af22
>> dnat_and_snat 91.106.221.145 10.10.10.10
>>> */Segmentation fault (core dumped)/*
>>> [root@ovnkube-db-0 ~]# ovn-nbctl --version
>>> ovn-nbctl 23.09.1
>>> Open vSwitch Library 3.2.2
>>> DB Schema 7.1.0
>>> [root@ovnkube-db-0 ~]#
>>>
>>>
>>> (gdb) core-file core.ovn-nbctl.60392.1707778809
>>> [New LWP 60392]
>>> [Thread debugging using libthread_db enabled]
>>> Using host libthread_db library "/lib64/libthread_db.so.1".
>>> Core was generated by `ovn-nbctl --no-leader-only lr-nat-add
>>> a_4a3e9209_8826_4561_9c58_4a852bd61c45_lr'.
>>> Program terminated with signal SIGSEGV, Segmentation fault.
>>> #0  0x000079ebeb4d958b in __strcmp_avx2 () from /lib64/libc.so.6
>>> (gdb) bt
>>> #0  0x000079ebeb4d958b in __strcmp_avx2 () from /lib64/libc.so.6
>>> #1  0x000055f5ecdb1d39 in nbctl_lr_nat_add.lto_priv ()
>>> #2  0x000055f5ecd9d39a in main_loop.lto_priv ()
>>> #3  0x000055f5ecd998a2 in main ()
>>> (gdb)
>>>
>>
>> I tried this in a sandbox built from v23.09.1:
>>
>> $ ovn-nbctl lr-add
>>
>> a_4a3e9209_8826_4561_9c58_4a852bd61c45_lr_a2b89a8a_530a_446f_bf6c_ecf223a7af22
>> $ ovn-nbctl --no-leader-only lr-nat-add
>>
>> a_4a3e9209_8826_4561_9c58_4a852bd61c45_lr_a2b89a8a_530a_446f_bf6c_ecf223a7af22
>> dnat_and_snat 91.106.221.145 10.10.10.10
>> $
>>
>> And it doesn't seem to crash.  Is OVN built from source in your case?
>> If so, can you please share the first part of config.log, e.g.:
>>
>> $ head -10 config.log
>>
>> If this is a distro provided package, can you please share the distro
>> and version?
>>
>> Thanks,
>> Dumitru
>>
>>
> 

_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to