Hi, all:
Then I have try to build the arlo mgmt-framework master tag docker to SONiC.
The GET action is OK, but PATCH action failed. I have try two config, both failed.
1. interface's mtu
I1222 22:38:59.473102 2821 common_app.go:471] Processing Table key Ethernet10
I1222 22:38:59.473121 2821 common_app.go:484] Processing Table row "mtu": "2000"
I1222 22:38:59.473353 2821 common_app.go:500] Entry already exists hence modifying it.
I1222 22:38:59.473384 2821 common_app.go:726] Returning Table Row "mtu": "2000"
E1222 22:38:59.474153 2821 util.go:298] [CVL] : Syntax validation failed. Error - { 1020 [] }
E1222 22:38:59.474213 2821 util.go:298] [CVL] : ValidateEditConfig() failed , {TableName: ErrCode:1020 CVLErrDetails: Keys:[] Value: Field: Msg: ConstraintErrMsg: ErrAppTag:}
E1222 22:38:59.474254 2821 db.go:596] doCVL: CVL Failure: 1020
E1222 22:38:59.474287 2821 db.go:600] doCVL: 1 1
E1222 22:38:59.474315 2821 common_app.go:508] UPDATE case - d.ModEntry() failure
I1222 22:38:59.474334 2821 common_app.go:402] Process update fail. cmnAppCRUCommonDbOpn error:Translib Redis Error: CVL Failure: 1,020: { 1,020 [] }
E1222 22:38:59.474426 2821 common_app.go:160] Translib Redis Error: CVL Failure: 1,020: { 1,020 [] }
E1222 22:38:59.474716 2821 handler.go:71] [REST-2] Translib error tlerr.TranslibCVLFailure - Translib Redis Error: CVL Failure: 1,020: { 1,020 [] }
I1222 22:38:59.475047 2821 handler.go:91] [REST-2] Sending response 500, type=application/yang-data+json, size=93
I1222 22:38:59.475079 2821 handler.go:100] [REST-2] data={"ietf-restconf:errors":{"error":[{"error-type":"application","error-tag":"invalid-value"}]}}
I1222 22:38:59.475114 2821 router.go:441] [REST-2] PatchOpenconfigInterfacesInterfacesInterfaceConfigMtu took 7.959886ms
I1222 22:38:59.473083 2821 common_app.go:465] Found table entry in yang to DB map
I1222 22:38:59.473102 2821 common_app.go:471] Processing Table key Ethernet10
I1222 22:38:59.473121 2821 common_app.go:484] Processing Table row "mtu": "2000"
I1222 22:38:59.473353 2821 common_app.go:500] Entry already exists hence modifying it.
I1222 22:38:59.473384 2821 common_app.go:726] Returning Table Row "mtu": "2000"
E1222 22:38:59.474153 2821 util.go:298] [CVL] : Syntax validation failed. Error - { 1020 [] }
E1222 22:38:59.474213 2821 util.go:298] [CVL] : ValidateEditConfig() failed , {TableName: ErrCode:1020 CVLErrDetails: Keys:[] Value: Field: Msg: ConstraintErrMsg: ErrAppTag:}
E1222 22:38:59.474254 2821 db.go:596] doCVL: CVL Failure: 1020
E1222 22:38:59.474287 2821 db.go:600] doCVL: 1 1
E1222 22:38:59.474315 2821 common_app.go:508] UPDATE case - d.ModEntry() failure
I1222 22:38:59.474334 2821 common_app.go:402] Process update fail. cmnAppCRUCommonDbOpn error:Translib Redis Error: CVL Failure: 1,020: { 1,020 [] }
E1222 22:38:59.474426 2821 common_app.go:160] Translib Redis Error: CVL Failure: 1,020: { 1,020 [] }
E1222 22:38:59.474716 2821 handler.go:71] [REST-2] Translib error tlerr.TranslibCVLFailure - Translib Redis Error: CVL Failure: 1,020: { 1,020 [] }
I1222 22:38:59.475047 2821 handler.go:91] [REST-2] Sending response 500, type=application/yang-data+json, size=93
I1222 22:38:59.475079 2821 handler.go:100] [REST-2] data={"ietf-restconf:errors":{"error":[{"error-type":"application","error-tag":"invalid-value"}]}}
I1222 22:38:59.475114 2821 router.go:441] [REST-2] PatchOpenconfigInterfacesInterfacesInterfaceConfigMtu took 7.959886ms
I try to gdb the rest_server, and found the error is from the 3th party library yparser.
if errObj := c.py.ValidateSyntax(data, depData); errObj.ErrCode != yparser.YP_SUCCESS.
Could any one give me some advice to pull through the problem?
Thanks a lot!
kun