open-switch / opx-nas-daemon

https://openswitch.net
1 stars 9 forks source link

Too many log messages in OPX 2.2 VM #23

Closed Ragsboss closed 6 years ago

Ragsboss commented 6 years ago

I'm running OPX 2.2 and see that my syslog is ever increasing - right now it's at 300MB and I'm not sure why there is no log rotation by default.

root@leaf-1-1:/var/log# cat /etc/OPX-release-version 
OS_NAME="OPX"
OS_VERSION="2.2"
PLATFORM="S6000-VM"
ARCHITECTURE="x86_64"
INTERNAL_BUILD_ID="OpenSwitch blueprint for Dell 1.0.0"
BUILD_VERSION="2.2.0"
BUILD_DATE="2018-01-26T10:03:01-0800"
INSTALL_DATE="2018-02-02T22:50:34+0000"
root@leaf-1-1:/var/log# 

Log file size and contents

root@leaf-1-1:/var/log# ls -lt /var/log/       
total 602328
-rw-r----- 1 root  adm   304315701 Feb 15 21:44 kern.log
-rw-r----- 1 root  adm   307369083 Feb 15 21:44 syslog

root@leaf-1-1:/var/log# tail -n 40 /var/log/syslog 
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000001's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1010000000000's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1010000000000's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1010000000000's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000025's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000025's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000025's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000021's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000021's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000021's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000029's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000029's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000029's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x100000000002d's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x100000000002d's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x100000000002d's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000032's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000032's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000032's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000031's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000031's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000031's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000033's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000033's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000033's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000034's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000034's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000034's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000039's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000039's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000039's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000035's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000035's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000035's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x100000000003d's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x100000000003d's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x100000000003d's attr index 0 attr id 76 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000041's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000041's attr index 0 attr id 8 failed with err -65536
Feb 15 21:48:15 opx22_vm opx_nas_daemon[2334]: [ev_log_t_SAI_PORT:Switch Id: 0], Attr get for port id 0x1000000000041's attr index 0 attr id 76 failed with err -65536
root@leaf-1-1:/var/log# 
atanu-mandal commented 6 years ago

Hi @Ragsboss, there was some fix recently merged (i.e. https://review.openswitch.net/#/c/14507/) related to the above error message.

I would suggest to install the latest OPX2.2.1 to get the latest VM related fix for interface renaming (http://archive.openswitch.net/installers/2.2.1/Dell-EMC/PKGS_OPX-2.2.1-installer-x86_64.bin)

After the above is installed to get the updated packages please follow below steps

Please let me know if that helps.

jeff-yin commented 6 years ago

@Ragsboss the issue should be fixed by what Atanu suggested above. Please give it a try. If it's not fixed, please go ahead and reopen this issue (or open a new one).