openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [phosphor-host-ipmid] Question about IPMI SDR
@ 2021-11-08  4:01 Chris Chen (TPI)
  2021-11-08 11:37 ` 回覆: " Chris Chen (TPI)
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Chen (TPI) @ 2021-11-08  4:01 UTC (permalink / raw)
  To: openbmc

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

Hi all,

We have added 3 temp sensors by using entity-manager, and looks like we can list them with temp value reading successfully as below.
=====
root@hudsonbay-obmc:~# ipmitool sdr elist
BMC              | 00h | ok  |  7.1 | 27 degrees C
DIMM P0 ABCD P1  | 01h | ok  |  7.1 | 35 degrees C
DIMM P1 EFGH     | 02h | ucr |  7.1 | 40 degrees C
Get SDR 0003 command failed: Invalid data field in request
Get SDR 0003 command failed: Invalid data field in request
Get SDR 0003 command failed: Invalid data field in request
Get SDR 0003 command failed: Invalid data field in request
Get SDR 0003 command failed: Invalid data field in request
root@hudsonbay-obmc:~#
=====

However, there is a kind of error message "Get SDR 0003 command failed: Invalid data field in request" always been shown behind it. I take a look at it via journal log in OpenBMC what error it is. That is:
=====
Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: GetMangagedObjects for getSensorMap failed
Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: getSensorDataRecord: getSensorMap error
Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: ipmiStorageGetSDR: fail to get SDR

root@hudsonbay-obmc:~# journalctl -o json-pretty MESSAGE="GetMangagedObjects for getSensorMap failed"
{
        "_BOOT_ID" : "d932ab64935943c1b937993b3d4c0510",
        "__REALTIME_TIMESTAMP" : "84903987",
        "_SYSTEMD_CGROUP" : "/system.slice/phosphor-ipmi-host.service",
        "PRIORITY" : "3",
        "_CAP_EFFECTIVE" : "1ffffffffff",
        "CODE_FUNC" : "helper_log",
        "_SYSTEMD_UNIT" : "phosphor-ipmi-host.service",
        "_SYSTEMD_SLICE" : "system.slice",
        "_UID" : "0",
        "_HOSTNAME" : "hudsonbay-obmc",
        "MESSAGE" : "GetMangagedObjects for getSensorMap failed",
        "__MONOTONIC_TIMESTAMP" : "84903992",
        "_MACHINE_ID" : "3e55a692862e4acfbfec1956db0d0ee0",
        "_SYSTEMD_INVOCATION_ID" : "20eebfb3a701452ebfc226117b2cbbe9",
        "SYSLOG_IDENTIFIER" : "ipmid",
        "_TRANSPORT" : "journal",
        "ERROR" : "Invalid request descriptor",
        "_PID" : "157",
        "__CURSOR" : "s=2d0eebf065d24b7fba5a24a670d2ffbf;i=30d;b=d932ab64935943c1b937993b3d4c0510;m=50f8838;t=50f8833;x=defc23b87af8e29b",
        "TRANSACTION_ID" : "3524473669",
        "CODE_LINE" : "76",
        "CODE_FILE" : "/usr/src/debug/intel-ipmi-oem/0.1+git999-r0/recipe-sysroot/usr/include/phosphor-logging/log.hpp",
        "_SOURCE_REALTIME_TIMESTAMP" : "84903950",
        "_EXE" : "/usr/bin/ipmid",
        "_GID" : "0",
        "_COMM" : "ipmid",
        "_CMDLINE" : "ipmid"
}
=====

I have tried to figure out it but with limited capability, can someone help to provide some suggestions for me? I mean how to fix it, or I'm able to ignore it because the SDR has been listed?

Thank you.

Regards,
Chris Chen

Legal Disclaimer :
The information contained in this message may be privileged and confidential. 
It is intended to be read only by the individual or entity to whom it is addressed 
or by their designee. If the reader of this message is not the intended recipient, 
you are on notice that any distribution of this message, in any form, 
is strictly prohibited. If you have received this message in error, 
please immediately notify the sender and delete or destroy any copy of this message!

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

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

* 回覆: [phosphor-host-ipmid] Question about IPMI SDR
  2021-11-08  4:01 [phosphor-host-ipmid] Question about IPMI SDR Chris Chen (TPI)
@ 2021-11-08 11:37 ` Chris Chen (TPI)
  2021-11-09  2:48   ` Sui Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Chen (TPI) @ 2021-11-08 11:37 UTC (permalink / raw)
  To: openbmc

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

Hi all,

I think I figured out the error message is due to the phosphor-health-monitor package. The phosphor-health-monitor doesn't have the interface of org.freedesktop.DBus.ObjectManager and with the GetManagedObjects method call, so the getSensorMap() in the intel-ipmi-oem would be failed.

=====
root@hudsonbay-obmc:~# busctl introspect xyz.openbmc_project.HealthMon /
NAME                                TYPE      SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface -         -            -
.Introspect                         method    -         s            -
org.freedesktop.DBus.Peer           interface -         -            -
.GetMachineId                       method    -         s            -
.Ping                               method    -         -            -
org.freedesktop.DBus.Properties     interface -         -            -
.Get                                method    ss        v            -
.GetAll                             method    s         a{sv}        -
.Set                                method    ssv       -            -
.PropertiesChanged                  signal    sa{sv}as  -            -
=====

As I know, the phosphor-health-monitor is a part of the base phosphor package. But there are some questions in my mind still and would like to get help here.

  1.
is it only for monitoring CPU and memory sensor values?  it looks like there is no explanation of it is in the phosphor-health-monitor repo.
  2.
can I remove it? If yes, will I miss any features?

Thanks

Regards,
Chris Chen

________________________________
寄件者: openbmc <openbmc-bounces+chris.chen3=flex.com@lists.ozlabs.org> 代表 Chris Chen (TPI) <Chris.Chen3@flex.com>
寄件日期: 2021年11月8日 下午 12:01
收件者: openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>
主旨: [phosphor-host-ipmid] Question about IPMI SDR

Hi all,

We have added 3 temp sensors by using entity-manager, and looks like we can list them with temp value reading successfully as below.
=====
root@hudsonbay-obmc:~# ipmitool sdr elist
BMC              | 00h | ok  |  7.1 | 27 degrees C
DIMM P0 ABCD P1  | 01h | ok  |  7.1 | 35 degrees C
DIMM P1 EFGH     | 02h | ucr |  7.1 | 40 degrees C
Get SDR 0003 command failed: Invalid data field in request
Get SDR 0003 command failed: Invalid data field in request
Get SDR 0003 command failed: Invalid data field in request
Get SDR 0003 command failed: Invalid data field in request
Get SDR 0003 command failed: Invalid data field in request
root@hudsonbay-obmc:~#
=====

However, there is a kind of error message "Get SDR 0003 command failed: Invalid data field in request" always been shown behind it. I take a look at it via journal log in OpenBMC what error it is. That is:
=====
Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: GetMangagedObjects for getSensorMap failed
Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: getSensorDataRecord: getSensorMap error
Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: ipmiStorageGetSDR: fail to get SDR

root@hudsonbay-obmc:~# journalctl -o json-pretty MESSAGE="GetMangagedObjects for getSensorMap failed"
{
        "_BOOT_ID" : "d932ab64935943c1b937993b3d4c0510",
        "__REALTIME_TIMESTAMP" : "84903987",
        "_SYSTEMD_CGROUP" : "/system.slice/phosphor-ipmi-host.service",
        "PRIORITY" : "3",
        "_CAP_EFFECTIVE" : "1ffffffffff",
        "CODE_FUNC" : "helper_log",
        "_SYSTEMD_UNIT" : "phosphor-ipmi-host.service",
        "_SYSTEMD_SLICE" : "system.slice",
        "_UID" : "0",
        "_HOSTNAME" : "hudsonbay-obmc",
        "MESSAGE" : "GetMangagedObjects for getSensorMap failed",
        "__MONOTONIC_TIMESTAMP" : "84903992",
        "_MACHINE_ID" : "3e55a692862e4acfbfec1956db0d0ee0",
        "_SYSTEMD_INVOCATION_ID" : "20eebfb3a701452ebfc226117b2cbbe9",
        "SYSLOG_IDENTIFIER" : "ipmid",
        "_TRANSPORT" : "journal",
        "ERROR" : "Invalid request descriptor",
        "_PID" : "157",
        "__CURSOR" : "s=2d0eebf065d24b7fba5a24a670d2ffbf;i=30d;b=d932ab64935943c1b937993b3d4c0510;m=50f8838;t=50f8833;x=defc23b87af8e29b",
        "TRANSACTION_ID" : "3524473669",
        "CODE_LINE" : "76",
        "CODE_FILE" : "/usr/src/debug/intel-ipmi-oem/0.1+git999-r0/recipe-sysroot/usr/include/phosphor-logging/log.hpp",
        "_SOURCE_REALTIME_TIMESTAMP" : "84903950",
        "_EXE" : "/usr/bin/ipmid",
        "_GID" : "0",
        "_COMM" : "ipmid",
        "_CMDLINE" : "ipmid"
}
=====

I have tried to figure out it but with limited capability, can someone help to provide some suggestions for me? I mean how to fix it, or I'm able to ignore it because the SDR has been listed?

Thank you.

Regards,
Chris Chen
Legal Disclaimer :
The information contained in this message may be privileged and confidential.
It is intended to be read only by the individual or entity to whom it is addressed
or by their designee. If the reader of this message is not the intended recipient,
you are on notice that any distribution of this message, in any form,
is strictly prohibited. If you have received this message in error,
please immediately notify the sender and delete or destroy any copy of this message!

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

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

* Re: 回覆: [phosphor-host-ipmid] Question about IPMI SDR
  2021-11-08 11:37 ` 回覆: " Chris Chen (TPI)
@ 2021-11-09  2:48   ` Sui Chen
  2021-11-09  5:40     ` 回覆: " Chris Chen (TPI)
  0 siblings, 1 reply; 4+ messages in thread
From: Sui Chen @ 2021-11-09  2:48 UTC (permalink / raw)
  To: openbmc

On 11/8/21 3:37 AM, Chris Chen (TPI) wrote:
> Hi all,
> 
> I think I figured out the error message is due to the 
> phosphor-health-monitor package. The phosphor-health-monitor doesn't 
> have the interface of org.freedesktop.DBus.ObjectManager and with the 
> GetManagedObjects method call, so the getSensorMap() in the 
> intel-ipmi-oem would be failed.

Thanks for catching this, it seems there exists a change to make 
phosphor-health-monitor compatible with `ipmitool sdr`: 
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-health-monitor/+/41228

>  1.
>     is it only for monitoring CPU and memory sensor values?  it looks
>     like there is no explanation of it is in the phosphor-health-monitor
>     repo.

Yes it is for monitoring the BMC's CPU, memory and storage usage, and 
other metrics.

>  2.
>     can I remove it? If yes, will I miss any features?

Yes it is safe to remove, there are plans to use phosphor-health-monitor 
sensors in Redfish but the Schemas and bmcweb-side changes are still in 
progress, so you won't miss too many features for now.

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

* 回覆: 回覆: [phosphor-host-ipmid] Question about IPMI SDR
  2021-11-09  2:48   ` Sui Chen
@ 2021-11-09  5:40     ` Chris Chen (TPI)
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Chen (TPI) @ 2021-11-09  5:40 UTC (permalink / raw)
  To: Sui Chen, openbmc

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

Hi Sui,

Understood. Thanks for your sharing and explanation.:)

Regards,
Chris Chen

________________________________
寄件者: openbmc <openbmc-bounces+chris.chen3=flex.com@lists.ozlabs.org> 代表 Sui Chen <suichen@google.com>
寄件日期: 2021年11月9日 上午 10:48
收件者: openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>
主旨: Re: 回覆: [phosphor-host-ipmid] Question about IPMI SDR

On 11/8/21 3:37 AM, Chris Chen (TPI) wrote:
> Hi all,
>
> I think I figured out the error message is due to the
> phosphor-health-monitor package. The phosphor-health-monitor doesn't
> have the interface of org.freedesktop.DBus.ObjectManager and with the
> GetManagedObjects method call, so the getSensorMap() in the
> intel-ipmi-oem would be failed.

Thanks for catching this, it seems there exists a change to make
phosphor-health-monitor compatible with `ipmitool sdr`:
https://urldefense.com/v3/__https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-health-monitor/*/41228__;Kw!!HSntlCg!DzN2BnayriYpQCdSx4TogrU5g1VExABJGrJlJ3l1_UbGPNCYoZQmrOXbxyGG-nki$

>  1.
>     is it only for monitoring CPU and memory sensor values?  it looks
>     like there is no explanation of it is in the phosphor-health-monitor
>     repo.

Yes it is for monitoring the BMC's CPU, memory and storage usage, and
other metrics.

>  2.
>     can I remove it? If yes, will I miss any features?

Yes it is safe to remove, there are plans to use phosphor-health-monitor
sensors in Redfish but the Schemas and bmcweb-side changes are still in
progress, so you won't miss too many features for now.

Legal Disclaimer :
The information contained in this message may be privileged and confidential. 
It is intended to be read only by the individual or entity to whom it is addressed 
or by their designee. If the reader of this message is not the intended recipient, 
you are on notice that any distribution of this message, in any form, 
is strictly prohibited. If you have received this message in error, 
please immediately notify the sender and delete or destroy any copy of this message!

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

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

end of thread, other threads:[~2021-11-09  6:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08  4:01 [phosphor-host-ipmid] Question about IPMI SDR Chris Chen (TPI)
2021-11-08 11:37 ` 回覆: " Chris Chen (TPI)
2021-11-09  2:48   ` Sui Chen
2021-11-09  5:40     ` 回覆: " Chris Chen (TPI)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).