[phosphor-virtual-sensor] get sensor service fail

Matt Spinler mspinler at linux.ibm.com
Tue Mar 30 05:53:24 AEDT 2021



On 3/29/2021 4:13 AM, Harvey Wu (吳崇維) wrote:
> Hi All, In current phosphor-virtual-sensor, the function getService 
> will return empty string only when catch error name = 
> “xyz.openbmc_project.Common.Error.ResourceNotFound” 
> (https://github.com/openbmc/phosphor-virtual-sensor/blob/master/dbusUtils.hpp#L37 
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
>
> Hi All,
>
>         In current phosphor-virtual-sensor, the function getService 
> will return empty string only when catch error name = 
> “xyz.openbmc_project.Common.Error.ResourceNotFound” 
> (https://github.com/openbmc/phosphor-virtual-sensor/blob/master/dbusUtils.hpp#L37 
> <https://github.com/openbmc/phosphor-virtual-sensor/blob/master/dbusUtils.hpp#L37>).
>
>         But in my system, when bus call didn’t get sensor service, the 
> exception name will be “org.freedesktop.DBus.Error.FileNotFound”, and 
> then service will be get failed.
>
>         It seems need to modified the origin condition or add another 
> elseif condition. Do I misunderstand something?
>

You seem to just be missing the mapper commit 
https://github.com/openbmc/phosphor-objmgr/commit/3735ea2ee546b2436895cf956daf0090a6d2d406 
which will return ResourceNotFound.

> Thanks.
>
> Harvey Wu
>
> Email: Harvey.Wu at quantatw.com <mailto:Harvey.Wu at quantatw.com>
>
> Ext: 17408
>



More information about the openbmc mailing list