All of lore.kernel.org
 help / color / mirror / Atom feed
* why the object cannot list in rest api?
@ 2019-11-07  8:02 www
  2019-11-07 11:02 ` Devender Rao
  0 siblings, 1 reply; 7+ messages in thread
From: www @ 2019-11-07  8:02 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 664 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 1311 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:  why the object cannot list in rest api?
  2019-11-07  8:02 why the object cannot list in rest api? www
@ 2019-11-07 11:02 ` Devender Rao
  2019-11-07 11:34   ` www
  0 siblings, 1 reply; 7+ messages in thread
From: Devender Rao @ 2019-11-07 11:02 UTC (permalink / raw)
  To: ouyangxuan10; +Cc: openbmc

[-- Attachment #1: Type: text/html, Size: 2326 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re:  why the object cannot list in rest api?
  2019-11-07 11:02 ` Devender Rao
@ 2019-11-07 11:34   ` www
  2019-11-07 12:40     ` George Liu
  0 siblings, 1 reply; 7+ messages in thread
From: www @ 2019-11-07 11:34 UTC (permalink / raw)
  To: Devender Rao; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]



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" <devenrao@in.ibm.com> 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 <ouyangxuan10@163.com>
Sent by: "openbmc" <openbmc-bounces+devenrao=in.ibm.com@lists.ozlabs.org>
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
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
 
 

 

 


[-- Attachment #2: Type: text/html, Size: 3356 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: why the object cannot list in rest api?
  2019-11-07 11:34   ` www
@ 2019-11-07 12:40     ` George Liu
  2019-11-07 12:53       ` www
  0 siblings, 1 reply; 7+ messages in thread
From: George Liu @ 2019-11-07 12:40 UTC (permalink / raw)
  To: www; +Cc: Devender Rao, OpenBMC Maillist

[-- Attachment #1: Type: text/plain, Size: 2194 bytes --]

www <ouyangxuan10@163.com> 于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" <devenrao@in.ibm.com> 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 <ouyangxuan10@163.com>
> Sent by: "openbmc" <openbmc-bounces+devenrao=in.ibm.com@lists.ozlabs.org>
> To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
> 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
>
>
>
>
>
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 5073 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: Re: why the object cannot list in rest api?
  2019-11-07 12:40     ` George Liu
@ 2019-11-07 12:53       ` www
  2019-11-08  0:46         ` George Liu
  0 siblings, 1 reply; 7+ messages in thread
From: www @ 2019-11-07 12:53 UTC (permalink / raw)
  To: George Liu; +Cc: Devender Rao, OpenBMC Maillist

[-- Attachment #1: Type: text/plain, Size: 2467 bytes --]

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" <liuxiwei1013@gmail.com> wrote:





www <ouyangxuan10@163.com> 于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" <devenrao@in.ibm.com> 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 <ouyangxuan10@163.com>
Sent by: "openbmc" <openbmc-bounces+devenrao=in.ibm.com@lists.ozlabs.org>
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
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
 
 

 

 






 

[-- Attachment #2: Type: text/html, Size: 5849 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Re: why the object cannot list in rest api?
  2019-11-07 12:53       ` www
@ 2019-11-08  0:46         ` George Liu
  2019-11-08  2:01           ` www
  0 siblings, 1 reply; 7+ messages in thread
From: George Liu @ 2019-11-08  0:46 UTC (permalink / raw)
  To: www; +Cc: Devender Rao, OpenBMC Maillist

[-- Attachment #1: Type: text/plain, Size: 3104 bytes --]

www <ouyangxuan10@163.com> 于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" <liuxiwei1013@gmail.com> wrote:
>
>
>
> www <ouyangxuan10@163.com> 于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" <devenrao@in.ibm.com> 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 <ouyangxuan10@163.com>
>> Sent by: "openbmc" <openbmc-bounces+devenrao=in.ibm.com@lists.ozlabs.org>
>> To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
>> 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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 7324 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: Re: Re: why the object cannot list in rest api?
  2019-11-08  0:46         ` George Liu
@ 2019-11-08  2:01           ` www
  0 siblings, 0 replies; 7+ messages in thread
From: www @ 2019-11-08  2:01 UTC (permalink / raw)
  To: George Liu; +Cc: Devender Rao, OpenBMC Maillist

[-- Attachment #1: Type: text/plain, Size: 2989 bytes --]

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" <liuxiwei1013@gmail.com> wrote:





www <ouyangxuan10@163.com> 于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" <liuxiwei1013@gmail.com> wrote:





www <ouyangxuan10@163.com> 于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" <devenrao@in.ibm.com> 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 <ouyangxuan10@163.com>
Sent by: "openbmc" <openbmc-bounces+devenrao=in.ibm.com@lists.ozlabs.org>
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
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
 
 

 

 






 





 

[-- Attachment #2: Type: text/html, Size: 7815 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-08  2:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07  8:02 why the object cannot list in rest api? www
2019-11-07 11:02 ` Devender Rao
2019-11-07 11:34   ` www
2019-11-07 12:40     ` George Liu
2019-11-07 12:53       ` www
2019-11-08  0:46         ` George Liu
2019-11-08  2:01           ` www

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.