Hi Kwan,
I got an error by running this command:
root@switch12:/home/admin# curl -X GET
{"ietf-restconf:errors":{"error":[{"error-type":"application","error-tag":"invalid-value","error-message":"Information
not available or Not supported"}]}}
My image is based on 201911 branch, last commit is 887ea003 on
02/15/2020. Have already patched below 3 commits and rest-server is
running.
564508 "Removing explicit libyang plugin path settings. Libyang debian
package installs the extensions in standard location."
af4e842 "Start RestAPI container when sonic boots"
398929c "[mgmt-framework] start after syncd"
Syslog:
Mar 6 11:09:43.842847 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842395 17 router.go:122] [REST-7]
Recevied GetListOpenconfigPlatformComponentsComponent request from
172.29.151.35:34378
Mar 6 11:09:43.842847 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842461 17 handler.go:47] [REST-7] GET
/restconf/data/openconfig-platform:components/component; content-len=0
Mar 6 11:09:43.842847 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842470 17 handler.go:92] [REST-7] No
body
Mar 6 11:09:43.842847 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842478 17 handler.go:55] [REST-7]
Translated path = /openconfig-platform:components/component
Mar 6 11:09:43.842847 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842487 17 translib.go:395] Received
Get request for path = /openconfig-platform:components/component
Mar 6 11:09:43.842887 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842495 17 app_interface.go:128]
getAppModule called for path
=/openconfig-platform:components/component
Mar 6 11:09:43.842887 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842502 17 app_interface.go:135] found
the entry in the map for path =/openconfig-platform:components
Mar 6 11:09:43.842972 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842511 17 app_interface.go:166] cast
to appInterface worked&{<nil> [] <nil> <nil>}
Mar 6 11:09:43.842972 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842735 17 pfm_app.go:62]
initialize:if:path =/openconfig-platform:components/component
Mar 6 11:09:43.842972 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842802 17 db.go:324] NewDB: Init
indication not requested
Mar 6 11:09:43.842972 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842824 17 pfm_app.go:115] PlatformApp:
translateGet - path: /openconfig-platform:components/component
Mar 6 11:09:43.842994 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842831 17 pfm_app.go:154] Received GET
for PlatformApp Template: /openconfig-platform:components/component
,path: /openconfig-platform:components/component, vars: map[]
Mar 6 11:09:43.843105 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842872 17 pfm_app.go:347] Preparing
json for system eeprom
Mar 6 11:09:43.843105 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842953 17 pfm_app.go:206]
getSysEepromFromFile Enter
Mar 6 11:09:43.843124 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.842975 17 pfm_app.go:209]
syseeprom.json open failed
Mar 6 11:09:43.843124 switch12 INFO mgmt-framework#supervisord:
rest-server E0306 19:09:43.842985 17 handler.go:59] [REST-7]
Translib error tlerr.NotFoundError - Information not available or Not
supported
Mar 6 11:09:43.843249 switch12 INFO mgmt-framework#supervisord:
rest-server I0306 19:09:43.843033 17 handler.go:72] [REST-7]
Sending response 404, type=application/yang-data+json,
data={"ietf-restconf:errors":{"error":[{"error-type":"application","error-tag":"invalid-value","error-message":"Information
not available or Not supported"}]}}
Thanks,
Xianlong