From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::742; helo=mail-qk1-x742.google.com; envelope-from=liuxiwei1013@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="b6uQim6v"; dkim-atps=neutral Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 478M6808QTzF6jW for ; Fri, 8 Nov 2019 11:46:39 +1100 (AEDT) Received: by mail-qk1-x742.google.com with SMTP id 15so3791543qkh.6 for ; Thu, 07 Nov 2019 16:46:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FFZTGiGQvdxZUmobNA078uxQDGCvkWpnGSPQqdjbSZM=; b=b6uQim6v12rpmNnq5gb5gHt296Qaa7v7Y8eVowo+pVMfU2OZgjjqGOemLK9WFjX+FA Z9ypMZgW9Ij8mHwJTvpWYzS4ko4kmRU7q+T/WAbhqL1k7ISkjk1Mb1b1MJzYpUtZWbhR mvwA9qGYW8dtTti955QSm7+ffOv1vAmB42VpnGi9UjCayPu9JvV54vHHcjvbSW9NWeyy VCYo5FpwkdegVQeXW1I+/rF5CQZ/kMNQndi9t7+aJ0kwzVdYwRwiBL9v/wkwH6+ulvzq QEi2UsNPlrhiiXkeVjmbgUQXjGZxtEF/ABFkt9HxgCaa3Jb+n4Fsxu/K0xlGarIZM1pQ a8vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FFZTGiGQvdxZUmobNA078uxQDGCvkWpnGSPQqdjbSZM=; b=rm7j2IqzcpTDVzzP6UPZxXGzQCYzsgrdsaYwhYF73jsqIfH3Um5vRPy22mwjIPoQgz J15lgrvDzZHZ1Fu84rjtn+emImKpUOYxDXDZEEufTSNteEeS/Lw48oScFTRTi5gMvhlC g7epPbuBDoXgj3EN7saI9HgmBTnrDRIMbb1d+V+NKFNuBdJJFXJNolt1bjLB1EuWmqCZ LF4mBMCU53yyrSzyiRSCE4yLbVluzLvhCRcpsOOQ6Hf6ZnvxS0ZcDbuI8zsBRYhfnADw LHSluF9vHyVv1Y2V0PnCTRCyHgQCkJqAMMvFAUNG5mCCaoG5tVzxP1Sy5d5cBoUTszDq fSew== X-Gm-Message-State: APjAAAXADKAsK6cUw9uxqDV0hzyJDLLe1r7WhAFphrhI7v80NxfjIlkz zixIZwZ9swvZt6RozPf/QTj4dhLhphtgdgrN/Ws= X-Google-Smtp-Source: APXvYqwT5fXOgzGUu7S41FJDgJE6xRJsCeE/jamoYnKvGiIaVVAKuaPzeQ1zc8DKHzZkIRAgGqWOHX5MjR3GgtLn6PY= X-Received: by 2002:a37:a010:: with SMTP id j16mr6200984qke.84.1573173995764; Thu, 07 Nov 2019 16:46:35 -0800 (PST) MIME-Version: 1.0 References: <139bf9c3.6e26.16e44e2c237.Coremail.ouyangxuan10@163.com> <4b98545f.940d.16e45a4ed2f.Coremail.ouyangxuan10@163.com> <68c3864d.9be1.16e45ed78de.Coremail.ouyangxuan10@163.com> In-Reply-To: <68c3864d.9be1.16e45ed78de.Coremail.ouyangxuan10@163.com> From: George Liu Date: Fri, 8 Nov 2019 08:46:24 +0800 Message-ID: Subject: Re: Re: Re: why the object cannot list in rest api? To: www Cc: Devender Rao , OpenBMC Maillist Content-Type: multipart/alternative; boundary="0000000000002ffed20596cb1dfa" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2019 00:46:40 -0000 --0000000000002ffed20596cb1dfa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable www =E4=BA=8E2019=E5=B9=B411=E6=9C=887=E6=97=A5=E5= =91=A8=E5=9B=9B =E4=B8=8B=E5=8D=888:54=E5=86=99=E9=81=93=EF=BC=9A > My profile is the same as yours. when the entry is new create, it will no= t > 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=3D"org.openbmc xyz.openbmc_project" > MAPPER_INTERFACES=3D"org.openbmc org.freedesktop.DBus.ObjectManager > xyz.openbmc_project" > MAPPER_SERVICEBLACKLISTS=3D"" > > thanks, > Byron > > > > At 2019-11-07 20:40:25, "George Liu" wrote: > > > > www =E4=BA=8E2019=E5=B9=B411=E6=9C=887=E6=97=A5=E5= =91=A8=E5=9B=9B =E4=B8=8B=E5=8D=887:35=E5=86=99=E9=81=93=EF=BC=9A > >> >> 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 o= bject can be display in rest-api >> >> Maybe your `mapper` is a bit problem, here is my configuration, see: > > /etc/default/obmc > MAPPER_SERVICES=3D"org.open_power xyz.openbmc_project org.openbmc" > MAPPER_INTERFACES=3D"org.freedesktop.DBus.ObjectManager org.open_power > xyz.openbmc_project org.openbmc" > MAPPER_SERVICEBLACKLISTS=3D"" > >> >> "/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" 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 >> Sent by: "openbmc" >> To: "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? >> =E2=94=94=E2=94=80/xyz >> =E2=94=94=E2=94=80/xyz/openbmc_project >> =E2=94=94=E2=94=80/xyz/openbmc_project/dump >> =E2=94=9C=E2=94=80/xyz/openbmc_project/dump/entry >> =E2=94=82 =E2=94=94=E2=94=80/xyz/openbmc_project/dump/entry/1 >> =E2=94=94=E2=94=80/xyz/openbmc_project/dump/internal >> =E2=94=94=E2=94=80/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=EF=BC=8C >> Byron >> >> >> >> >> >> >> >> >> >> >> > > > > --0000000000002ffed20596cb1dfa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
www <ouyangxuan10@163.com> =E4=BA=8E2019=E5=B9=B411=E6=9C=887= =E6=97=A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=888:54=E5=86=99=E9=81=93=EF=BC= =9A
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 ca= tch it?

I think this is a custom service.
if yes.<= br>
Please check your corre= sponding *.service to ensure that its startup sequence is after `mapper-wai= t@-xyz-openbmc_project-state-host.service`

MAPPER_SERVICES=3D&= quot;org.openbmc=C2=A0 xyz.openbmc_project"
MAPPER_INTERFACE= S=3D"org.openbmc org.freedesktop.DBus.ObjectManager=C2=A0 xyz.openbmc_= project"
MAPPER_SERVICEBLACKLISTS=3D""

thanks,
Byron



At 2019-11-07 = 20:40:25, "George Liu" <liuxiwei1013@gmail.com> wrote:

=

www <ouy= angxuan10@163.com> =E4=BA=8E2019=E5=B9=B411=E6=9C=887=E6=97=A5=E5=91= =A8=E5=9B=9B =E4=B8=8B=E5=8D=887:35=E5=86=99=E9=81=93=EF=BC=9A

Th= e problem is not the command. If you restart mapperx, it will appear. It sh= ould be the problem of mapp= erx?

{
    "data": [
        "/xyz/openbmc_=
project/dump/entry",        restart mapperx, the object can be  displa=
y in rest-api
Maybe your `mappe= r` is a bit problem, here is my configuration, see:

/etc/default/o= bmc
MAPPER_SERVICES=3D"org.open_power xyz.openbmc_project org.openb= mc"
MAPPER_INTERFACES=3D"org.freedesktop.DBus.ObjectManager or= g.open_power xyz.openbmc_project org.openbmc"
MAPPER_SERVICEBLACKLISTS=3D""=C2=A0
<= div style=3D"line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Ar= ial">

        "/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, "De= vender 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
=C2=A0
----- Origina= l message -----
From: www <ouyangxuan10@163.com>
Sent by: "openbmc"= ; <openbmc-bounces+devenrao=3Din.ibm.com@lists.ozlabs.org>
To: "openbmc@lists.oz= labs.org" <openbmc@lists.ozlabs.org>
Cc:
Subject: [EXTERNAL] = why the object cannot list in rest api?
Date: Thu, Nov 7, 2019 1:56 PM=C2=A0
Dear all,
=C2=A0
There are some objects on DBUS that can be displayed with busctl comma= nd, but can't be displayed with rest API. Is there any reason for this?=
=E2=94=94=E2=94=80/xyz
=C2=A0 =E2=94=94=E2=94=80/xyz/openbmc_project
=C2=A0 =C2=A0 =E2=94=94=E2=94=80/xyz/openbmc_project/dump
=C2=A0 =C2=A0 =C2=A0 = =E2=94=9C=E2=94=80/xyz/openbmc_project/dump/entry
=C2=A0 =C2=A0 =C2=A0 = =E2=94=82 =E2=94=94=E2=94=80/xyz/openbmc_project/dump/entry/1
=C2=A0 =C2=A0 =C2=A0 =E2=94=94=E2=94=80/xyz/openbmc_project/dump/inter= nal
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =E2=94=94=E2=94=80/xyz/openbmc_project/dum= p/internal/manager
=C2=A0
curl -k -H "X-Auth-Token: $token" https://${bmc}/xyz/op= enbmc_project/dump/list
{
=C2=A0 "data": [
=C2=A0 =C2=A0 "/xyz/openbmc_project/dump/internal",
=C2=A0 =C2=A0 "/xyz/openbmc_project/dump/internal/manager"
=C2=A0 ],
=C2=A0 "message": "200 OK",
=C2=A0 "status": "ok"
}
=C2=A0
thanks=EF=BC=8C
Byron
=C2=A0
=C2=A0

=C2=A0

=C2=A0



=C2=A0



=C2=A0

--0000000000002ffed20596cb1dfa--