IBM / ovsdb-etcd

Implementation of OVSDB over etcd
17 stars 7 forks source link

generate corefile of northd #260

Open hunchback opened 3 years ago

hunchback commented 3 years ago

if we create vanillan ovn-kubernetes:

make ovnkube-deploy-org

the current configuration of vanilla ovn-kubernetes has the following settings (which create a corefile):

vagrant@vagrant:~/projects/openvswitch/ovsdb-etcd$ POD_NAME=$(kubectl --kubeconfig=/home/vagrant/admin.conf -n=ovn-kubernetes get pod --selector name=ovnkube-master --output=jsonpath={.items..metadata.name} | awk '{print $1}'); kubectl --kubeconfig=/home/vagrant/admin.conf -n=ovn-kubernetes exec -it $POD_NAME -c ovn-northd -- bash
[root@ovn-control-plane ~]# ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.0   4664  4084 ?        Ss   05:42   0:00 /bin/bash /root/ovnkube.sh run-ovn-northd
root          80  0.6  0.0  15448  4428 ?        S<s  05:42   0:06 ovn-northd -vconsole:dbg -vfile:dbg --ovnnb-db=tcp:172.18.0.2:6641 --ovnsb-db=tcp:172.18.0.
root          83  0.0  0.0   2384   728 ?        S    05:42   0:00 tail --follow=name /var/log/ovn/ovn-northd.log
root         434  0.1  0.0  11504  4080 pts/0    Ss   05:58   0:00 bash
root         470  0.0  0.0   2352   724 ?        S    05:59   0:00 sleep 15
root         471  0.0  0.0  14028  3532 pts/0    R+   05:59   0:00 ps aux
[root@ovn-control-plane ~]# ulimit -c
unlimited
[root@ovn-control-plane ~]# cat /proc/sys/kernel/core_pattern
/var/log/openvswitch/%e_core_dump.%p
[root@ovn-control-plane ~]#
[root@ovn-control-plane ~]# kill -s SIGTRAP $(pgrep ovn-northd)
[root@ovn-control-plane ~]# cd /command terminated with exit code 137

but the corefile was not generated as expected:

vagrant@vagrant:~/projects/openvswitch/ovsdb-etcd$ make ovnkube-exec-master
POD_NAME=$(kubectl --kubeconfig=/home/vagrant/admin.conf -n=ovn-kubernetes get pod --selector name=ovnkube-master --output=jsonpath={.items..metadata.name} | awk '{print $1}'); kubectl --kubeconfig=/home/vagrant/admin.conf -n=ovn-kubernetes exec -it $POD_NAME -c ovnkube-master -- bash
[root@ovn-control-plane ~]#
[root@ovn-control-plane ~]#
[root@ovn-control-plane ~]# cd /var/log/openvswitch/
[root@ovn-control-plane openvswitch]# ls

[root@ovn-control-plane openvswitch]#

roytman commented 3 years ago

in the OVNk deployment more core_pattern |/usr/share/apport/apport %p %s %c %d %P %E