How about starting vpp under gdb and trying to debug the issue? To level-set: community support for 18.07 ended a while ago. You’d probably do yourself a favor by switching to 19.08 which we will support for a full year.
FWIW... Dave From: Gudimetla, Leela Sankar <[email protected]> Sent: Wednesday, December 11, 2019 2:31 PM To: Dave Barach (dbarach) <[email protected]>; [email protected] Subject: Re: [**EXTERNAL**] RE: How to enable logs in VPP? Dave, in my environment, VPP is running as a separate process in a container. I see the below 3 lines in /var/log/messages. vnet 1356 - - dpdk_ipsec_process:1026: not enough DPDK crypto resources, default to OpenSSL vnet 1356 - - received SIGTERM, exiting... vnet 1356 - - unix_signal_handler:160: received signal SIGTERM, PC 0x3f110f3cce But I don’t see anymore. Given that VPP is crashing while creating a tap interface in my environment, I am expecting the clib_error_return_unix() logs from the function vnet_netlink_msg_send() in the file src/vnet/devices/netlink.c. Is the syslog file mandatory to be present inside the container to capture the VPP logs? Thanks, Leela sankar From: "Dave Barach (dbarach)" <[email protected]<mailto:[email protected]>> Date: Wednesday, December 11, 2019 at 10:39 AM To: Leela Gudimetla <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: RE: [**EXTERNAL**] RE: How to enable logs in VPP? Did you look in the default system logfile /var/log/syslog? That’s the first place I would look for clib_warning output. The unix { log xxxx } stanza concerns logging of debug CLI commands, not clib_warnings... Dave From: Gudimetla, Leela Sankar <[email protected]<mailto:[email protected]>> Sent: Wednesday, December 11, 2019 1:25 PM To: Dave Barach (dbarach) <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Subject: Re: [**EXTERNAL**] RE: How to enable logs in VPP? Thanks Dave for the response. But I don’t see the syslog getting generated under /var/log/. I am running VPP process as below. vpp -c /etc/vpp.conf And I have the unix section of vpp.conf file as below. unix { nodaemon log /var/log/vpp.log full-coredump gid vpp cli-listen localhost:5002 } Am I missing something here to get the syslog generated? BTW I am running stable 18_07. Thanks, Leela sankar From: "Dave Barach (dbarach)" <[email protected]<mailto:[email protected]>> Date: Wednesday, December 11, 2019 at 4:59 AM To: Leela Gudimetla <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [**EXTERNAL**] RE: How to enable logs in VPP? Make sure to check e.g. /var/log/syslog. Clib_warnings(...) are sent to syslog, and end up in the system log. Search for “vnet”. Example: Dec 11 07:37:56 vpp-n1 vnet[2977]: icmp6_router_solicitation:1811: Prefix [REDACTED] valid 295722 preferred 295722 FWIW... Dave From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of Gudimetla, Leela Sankar Sent: Tuesday, December 10, 2019 5:35 PM To: [email protected]<mailto:[email protected]> Subject: [vpp-dev] How to enable logs in VPP? Hello, I am looking for some information on how to enable error-logs, warnings, etc. I see bunch of logging in the code like clib_error_xxx(), clib_warning_xxx(), etc. Can someone share how to enable these logs to capture to a file on the target? Thanks, Leela sankar
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14873): https://lists.fd.io/g/vpp-dev/message/14873 Mute This Topic: https://lists.fd.io/mt/68157608/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
