why the object cannot list in rest api?
Dear all,
There are some objects on DBUS that can be displayed with busctl command, but can't be displayed with rest API. Is there any reason for this?
└─/xyz
└─/xyz/openbmc_project
└─/xyz/openbmc_project/dump
├─/xyz/openbmc_project/dump/entry
│ └─/xyz/openbmc_project/dump/entry/1
└─/xyz/openbmc_project/dump/internal
└─/xyz/openbmc_project/dump/internal/managercurl -k -H "X-Auth-Token: $token" https://${bmc}/xyz/openbmc_project/dump/list
{
"data": [
"/xyz/openbmc_project/dump/internal", "/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}
thanks,
Byron
Do check out this readme document for the commands
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-debug-collector/+/25357 ----- Original message -----
From: www <[email protected]>
Sent by: "openbmc" <[email protected]>
To: "[email protected]" <[email protected]>
Cc:
Subject: [EXTERNAL] why the object cannot list in rest api?
Date: Thu, Nov 7, 2019 1:56 PM
Dear all, There are some objects on DBUS that can be displayed with busctl command, but can't be displayed with rest API. Is there any reason for this? └─/xyz └─/xyz/openbmc_project └─/xyz/openbmc_project/dump ├─/xyz/openbmc_project/dump/entry │ └─/xyz/openbmc_project/dump/entry/1 └─/xyz/openbmc_project/dump/internal └─/xyz/openbmc_project/dump/internal/manager curl -k -H "X-Auth-Token: $token" https://${bmc}/xyz/openbmc_project/dump/list { "data": [ "/xyz/openbmc_project/dump/internal", "/xyz/openbmc_project/dump/internal/manager" ], "message": "200 OK", "status": "ok" } thanks, Byron
The problem is not the command. If you restart mapperx, it will appear. It should be the problem of mapperx?
{
"data": [
"/xyz/openbmc_project/dump/entry", restart mapperx, the object can be display in rest-api
"/xyz/openbmc_project/dump/entry/1",
"/xyz/openbmc_project/dump/internal",
"/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}thanks,
Byron
At 2019-11-07 19:02:27, "Devender Rao" <[email protected]> wrote:
Do check out this readme document for the commands
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-debug-collector/+/25357
----- Original message -----
From: www <[email protected]>
Sent by: "openbmc" <[email protected]>
To: "[email protected]" <[email protected]>
Cc:
Subject: [EXTERNAL] why the object cannot list in rest api?
Date: Thu, Nov 7, 2019 1:56 PM
Dear all,
There are some objects on DBUS that can be displayed with busctl command, but can't be displayed with rest API. Is there any reason for this?
└─/xyz
└─/xyz/openbmc_project
└─/xyz/openbmc_project/dump
├─/xyz/openbmc_project/dump/entry
│ └─/xyz/openbmc_project/dump/entry/1
└─/xyz/openbmc_project/dump/internal
└─/xyz/openbmc_project/dump/internal/managercurl -k -H "X-Auth-Token: $token" https://${bmc}/xyz/openbmc_project/dump/list
{
"data": [
"/xyz/openbmc_project/dump/internal", "/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}
thanks,
Byron
Quoted 9 lines · www <[email protected]> 于2019年11月7日周四 下午7:35写道:
The problem is not the command. If you restart mapperx, it will appear. It should be the problem of mapperx?
{
"data": [
"/xyz/openbmc_project/dump/entry", restart mapperx, the object can be display in rest-apiMaybe your
mapperis a bit problem, here is my configuration, see:
/etc/default/obmc
MAPPER_SERVICES="org.open_power xyz.openbmc_project org.openbmc" MAPPER_INTERFACES="org.freedesktop.DBus.ObjectManager org.open_power xyz.openbmc_project org.openbmc" MAPPER_SERVICEBLACKLISTS=""
Quoted 66 lines
"/xyz/openbmc_project/dump/entry/1", "/xyz/openbmc_project/dump/internal", "/xyz/openbmc_project/dump/internal/manager" ], "message": "200 OK", "status": "ok" }thanks,
ByronAt 2019-11-07 19:02:27, "Devender Rao" <[email protected]> wrote:
Do check out this readme document for the commands
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-debug-collector/+/25357
----- Original message -----
From: www <[email protected]>
Sent by: "openbmc" <[email protected]>
To: "[email protected]" <[email protected]>
Cc:
Subject: [EXTERNAL] why the object cannot list in rest api?
Date: Thu, Nov 7, 2019 1:56 PMDear all,
There are some objects on DBUS that can be displayed with busctl command, but can't be displayed with rest API. Is there any reason for this?
└─/xyz └─/xyz/openbmc_project └─/xyz/openbmc_project/dump ├─/xyz/openbmc_project/dump/entry │ └─/xyz/openbmc_project/dump/entry/1 └─/xyz/openbmc_project/dump/internal └─/xyz/openbmc_project/dump/internal/managercurl -k -H "X-Auth-Token: $token" https://
${bmc}/xyz/openbmc_project/dump/list
{
"data": [
"/xyz/openbmc_project/dump/internal",
"/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}thanks,
Byron
My profile is the same as yours. when the entry is new create, it will not display in rest-api. if you reboot bmc or restart mapperx, it will appear. I guess When create the entry, it not notify to mapperx, or mapperx not catch it?
MAPPER_SERVICES="org.openbmc xyz.openbmc_project" MAPPER_INTERFACES="org.openbmc org.freedesktop.DBus.ObjectManager xyz.openbmc_project" MAPPER_SERVICEBLACKLISTS=""
thanks,
Byron
At 2019-11-07 20:40:25, "George Liu" <[email protected]> wrote:
www <[email protected]> 于2019年11月7日周四 下午7:35写道:
The problem is not the command. If you restart mapperx, it will appear. It should be the problem of mapperx?
{
"data": [
"/xyz/openbmc_project/dump/entry", restart mapperx, the object can be display in rest-api
Maybe your mapper is a bit problem, here is my configuration, see:
/etc/default/obmc
MAPPER_SERVICES="org.open_power xyz.openbmc_project org.openbmc" MAPPER_INTERFACES="org.freedesktop.DBus.ObjectManager org.open_power xyz.openbmc_project org.openbmc"
MAPPER_SERVICEBLACKLISTS=""
"/xyz/openbmc_project/dump/entry/1",
"/xyz/openbmc_project/dump/internal",
"/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}thanks,
Byron
At 2019-11-07 19:02:27, "Devender Rao" <[email protected]> wrote:
Do check out this readme document for the commands
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-debug-collector/+/25357
----- Original message -----
From: www <[email protected]>
Sent by: "openbmc" <[email protected]>
To: "[email protected]" <[email protected]>
Cc:
Subject: [EXTERNAL] why the object cannot list in rest api?
Date: Thu, Nov 7, 2019 1:56 PM
Dear all,
There are some objects on DBUS that can be displayed with busctl command, but can't be displayed with rest API. Is there any reason for this?
└─/xyz
└─/xyz/openbmc_project
└─/xyz/openbmc_project/dump
├─/xyz/openbmc_project/dump/entry
│ └─/xyz/openbmc_project/dump/entry/1
└─/xyz/openbmc_project/dump/internal
└─/xyz/openbmc_project/dump/internal/managercurl -k -H "X-Auth-Token: $token" https://${bmc}/xyz/openbmc_project/dump/list
{
"data": [
"/xyz/openbmc_project/dump/internal", "/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}
thanks,
Byron
Quoted 5 lines · www <[email protected]> 于2019年11月7日周四 下午8:54写道:
My profile is the same as yours. when the entry is new create, it will not display in rest-api. if you reboot bmc or restart mapperx, it will appear. I guess When create the entry, it not notify to mapperx, or mapperx not catch it?
I think this is a custom service.
if yes.
Please check your corresponding *.service to ensure that its startup sequence is after mapper-wait@-xyz-openbmc_project-state-host.service
Quoted 103 lines
MAPPER_SERVICES="org.openbmc xyz.openbmc_project" MAPPER_INTERFACES="org.openbmc org.freedesktop.DBus.ObjectManager xyz.openbmc_project"
MAPPER_SERVICEBLACKLISTS=""thanks,
ByronAt 2019-11-07 20:40:25, "George Liu" <[email protected]> wrote:
Quoted 9 lines · www <[email protected]> 于2019年11月7日周四 下午7:35写道:
The problem is not the command. If you restart mapperx, it will appear. It should be the problem of mapperx?
{
"data": [
"/xyz/openbmc_project/dump/entry", restart mapperx, the object can be display in rest-apiMaybe your
mapperis a bit problem, here is my configuration, see:
/etc/default/obmc
MAPPER_SERVICES="org.open_power xyz.openbmc_project org.openbmc" MAPPER_INTERFACES="org.freedesktop.DBus.ObjectManager org.open_power xyz.openbmc_project org.openbmc" MAPPER_SERVICEBLACKLISTS=""Quoted 66 lines
"/xyz/openbmc_project/dump/entry/1", "/xyz/openbmc_project/dump/internal", "/xyz/openbmc_project/dump/internal/manager" ], "message": "200 OK", "status": "ok" }thanks,
ByronAt 2019-11-07 19:02:27, "Devender Rao" <[email protected]> wrote:
Do check out this readme document for the commands
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-debug-collector/+/25357
----- Original message -----
From: www <[email protected]>
Sent by: "openbmc" <[email protected]>
To: "[email protected]" <[email protected]>
Cc:
Subject: [EXTERNAL] why the object cannot list in rest api?
Date: Thu, Nov 7, 2019 1:56 PMDear all,
There are some objects on DBUS that can be displayed with busctl command, but can't be displayed with rest API. Is there any reason for this?
└─/xyz └─/xyz/openbmc_project └─/xyz/openbmc_project/dump ├─/xyz/openbmc_project/dump/entry │ └─/xyz/openbmc_project/dump/entry/1 └─/xyz/openbmc_project/dump/internal └─/xyz/openbmc_project/dump/internal/managercurl -k -H "X-Auth-Token: $token" https://
${bmc}/xyz/openbmc_project/dump/list
{
"data": [
"/xyz/openbmc_project/dump/internal",
"/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}thanks,
Byron
This is not a custom service.
The entry is create by phosphor-debug-collector, If you want to trigger an FFDC, an entry will be generated, may be not notify to mapperx?
thanks,
Byron
At 2019-11-08 08:46:24, "George Liu" <[email protected]> wrote:
www <[email protected]> 于2019年11月7日周四 下午8:54写道:
My profile is the same as yours. when the entry is new create, it will not display in rest-api. if you reboot bmc or restart mapperx, it will appear. I guess When create the entry, it not notify to mapperx, or mapperx not catch it?
I think this is a custom service.
if yes.
Please check your corresponding *.service to ensure that its startup sequence is after mapper-wait@-xyz-openbmc_project-state-host.service
MAPPER_SERVICES="org.openbmc xyz.openbmc_project" MAPPER_INTERFACES="org.openbmc org.freedesktop.DBus.ObjectManager xyz.openbmc_project" MAPPER_SERVICEBLACKLISTS=""
thanks,
Byron
At 2019-11-07 20:40:25, "George Liu" <[email protected]> wrote:
www <[email protected]> 于2019年11月7日周四 下午7:35写道:
The problem is not the command. If you restart mapperx, it will appear. It should be the problem of mapperx?
{
"data": [
"/xyz/openbmc_project/dump/entry", restart mapperx, the object can be display in rest-api
Maybe your mapper is a bit problem, here is my configuration, see:
/etc/default/obmc
MAPPER_SERVICES="org.open_power xyz.openbmc_project org.openbmc" MAPPER_INTERFACES="org.freedesktop.DBus.ObjectManager org.open_power xyz.openbmc_project org.openbmc"
MAPPER_SERVICEBLACKLISTS=""
"/xyz/openbmc_project/dump/entry/1",
"/xyz/openbmc_project/dump/internal",
"/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}thanks,
Byron
At 2019-11-07 19:02:27, "Devender Rao" <[email protected]> wrote:
Do check out this readme document for the commands
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-debug-collector/+/25357
----- Original message -----
From: www <[email protected]>
Sent by: "openbmc" <[email protected]>
To: "[email protected]" <[email protected]>
Cc:
Subject: [EXTERNAL] why the object cannot list in rest api?
Date: Thu, Nov 7, 2019 1:56 PM
Dear all,
There are some objects on DBUS that can be displayed with busctl command, but can't be displayed with rest API. Is there any reason for this?
└─/xyz
└─/xyz/openbmc_project
└─/xyz/openbmc_project/dump
├─/xyz/openbmc_project/dump/entry
│ └─/xyz/openbmc_project/dump/entry/1
└─/xyz/openbmc_project/dump/internal
└─/xyz/openbmc_project/dump/internal/managercurl -k -H "X-Auth-Token: $token" https://${bmc}/xyz/openbmc_project/dump/list
{
"data": [
"/xyz/openbmc_project/dump/internal", "/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}
thanks,
Byron