-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[mgmt-framework]: unable to parse schema file sonic-acl-deviation.yin #4059
Copy link
Copy link
Closed
Labels
Description
Description
mgmt-framework pollutes syslog with the following error messages:
Jan 19 09:11:51.319994 sonic INFO mgmt-framework#supervisord: rest-server libyang[1]: Failed to open libyang extensions plugins directory "/usr/lib/x86_64-linux-gnu/libyang/extensions" (No such file or directory).
Jan 19 09:11:51.320207 sonic INFO mgmt-framework#supervisord: rest-server libyang[1]: Failed to open libyang user types plugins directory "/usr/lib/x86_64-linux-gnu/libyang/user_types" (No such file or directory).
Jan 19 09:11:51.320825 sonic INFO mgmt-framework#supervisord: rest-server libyang[0]: Invalid keyword "type" as a child to "annotation". (path: /)
Jan 19 09:11:51.320992 sonic INFO mgmt-framework#supervisord: rest-server libyang[0]: Module "yang" parsing failed.
Jan 19 09:11:51.321168 sonic INFO mgmt-framework#supervisord: rest-server libyang[0]: Invalid arguments (lys_parse_path()).
Jan 19 09:11:51.321258 sonic INFO mgmt-framework#supervisord: rest-server ERROR: logging before flag.Parse: F0119 09:11:51.320612 2024 util.go:167] Unable to parse schema file sonic-acl-deviation.yin
Jan 19 09:11:51.321314 sonic INFO mgmt-framework#supervisord: rest-server goroutine 1 [running, locked to thread]:
Jan 19 09:11:51.321367 sonic INFO mgmt-framework#supervisord: rest-server github.com/golang/glog.stacks(0xc00000e000, 0x0, 0x0, 0x0)
Jan 19 09:11:51.321437 sonic INFO mgmt-framework#supervisord: rest-server #011/sonic/src/sonic-mgmt-framework/gopkgs/src/github.com/golang/glog/glog.go:769 +0xf6
Jan 19 09:11:51.321500 sonic INFO mgmt-framework#supervisord: rest-server github.com/golang/glog.(*loggingT).output(0x1d0b980, 0x3, 0xc0001b8160, 0x19fcde4, 0x7, 0xa7, 0x0)
Jan 19 09:11:51.321563 sonic INFO mgmt-framework#supervisord: rest-server #011/sonic/src/sonic-mgmt-framework/gopkgs/src/github.com/golang/glog/glog.go:720 +0x406
Jan 19 09:11:51.321649 sonic INFO mgmt-framework#supervisord: rest-server github.com/golang/glog.(*loggingT).printf(0x1d0b980, 0x3, 0xc0001b42c0, 0x33, 0x0, 0x0, 0x0)
Jan 19 09:11:51.321649 sonic INFO mgmt-framework#supervisord: rest-server #011/sonic/src/sonic-mgmt-framework/gopkgs/src/github.com/golang/glog/glog.go:655 +0x207
Jan 19 09:11:51.321676 sonic INFO mgmt-framework#supervisord: rest-server github.com/golang/glog.Fatalf(0xc0001b42c0, 0x33, 0x0, 0x0, 0x0)
Jan 19 09:11:51.321705 sonic INFO mgmt-framework#supervisord: rest-server #011/sonic/src/sonic-mgmt-framework/gopkgs/src/github.com/golang/glog/glog.go:1148 +0x67
Jan 19 09:11:51.321788 sonic INFO mgmt-framework#supervisord: rest-server cvl/internal/util.CVL_LEVEL_LOG(0x303, 0xc0001b42c0, 0x33, 0x0, 0x0, 0x0)
Jan 19 09:11:51.321788 sonic INFO mgmt-framework#supervisord: rest-server #011/sonic/src/sonic-mgmt-framework/src/cvl/internal/util/util.go:167 +0x14d
Jan 19 09:11:51.321788 sonic INFO mgmt-framework#supervisord: rest-server cvl.CVL_LOG(0x111c803, 0xc0001b42c0, 0x33, 0x0, 0x0, 0x0)
Jan 19 09:11:51.321884 sonic INFO mgmt-framework#supervisord: rest-server #011/sonic/src/sonic-mgmt-framework/src/cvl/cvl.go:154 +0x5c
Jan 19 09:11:51.321884 sonic INFO mgmt-framework#supervisord: rest-server cvl.Initialize(0x0)
Jan 19 09:11:51.321970 sonic INFO mgmt-framework#supervisord: rest-server #011/sonic/src/sonic-mgmt-framework/src/cvl/cvl_api.go:139 +0x9fa
Jan 19 09:11:51.321970 sonic INFO mgmt-framework#supervisord: rest-server cvl.init.0()
Jan 19 09:11:51.321970 sonic INFO mgmt-framework#supervisord: rest-server #011/sonic/src/sonic-mgmt-framework/src/cvl/cvl.go:187 +0x436
Jan 19 09:11:51.617508 sonic INFO ansible-command: Invoked with creates=None executable=None _uses_shell=False strip_empty_ends=True _raw_params=pgrep -f logrotate removes=None argv=None warn=True chdir=None stdin_add_newline=True stdin=None
Jan 19 09:11:52.768789 sonic INFO ansible-extract_log: Invoked with start_string=start-LogAnalyzer-acl.2020-01-19-09:11:45 directory=/var/log target_filename=/tmp/syslog file_prefix=syslog
Steps to reproduce the issue:
- Install SONiC.HEAD.13-a29a2a49 [201911]
- Deploy t1-lag topo
Describe the results you received:
mgmt-framework pollutes syslog with the error messages and makes a lot of tests fail
Describe the results you expected:
no error message are expected while operating in idle mode
Additional information you deem important (e.g. issue happens only occasionally):
**Output of `show version`:**
```
(paste your output here)
```
**Attach debug file `sudo generate_dump`:**
```
(paste your output here)
```
Reactions are currently unavailable