Notice

This document is for a development version of Ceph.

Hardware Monitoring

node-proxy is the internal name of the agent which inventories a machine’s hardware, provides different statuses, and enables the operator to perform some actions. It gathers details from the Redfish API that is often provided by an out-of-band management interface present on server systems. The data is then processed and pushed to an agent endpoint in the Ceph Manager.

digraph G { node [shape=record]; mgr [label="{<mgr> ceph manager}"]; dashboard [label="<dashboard> ceph dashboard"]; agent [label="<agent> agent"]; redfish [label="<redfish> redfish"]; agent -> redfish [label=" 1." color=green]; agent -> mgr [label=" 2." color=orange]; dashboard:dashboard -> mgr [label=" 3." color=lightgreen]; node [shape=plaintext]; legend [label=<<table border="0" cellborder="1" cellspacing="0"> <tr><td bgcolor="lightgrey">Legend</td></tr> <tr><td align="center">1. Collects data from Redfish API</td></tr> <tr><td align="left">2. Pushes data to Ceph Manager</td></tr> <tr><td align="left">3. Queries Ceph Manager</td></tr> </table>>]; }

Limitations

For the time being, the node-proxy agent relies on the Redfish API. In Tentacle 20.2.3 and later releases, when mgr/cephadm/hw_monitoring_vendor is atollon, it also reads FCM statistics directly from the host’s NVMe drives. The agent runs on each host whose host spec has oob details, and connects to that host’s out-of-band management interface at the address and port given there (oob.addr; if it is not set, the value of mgr/cephadm/oob_default_addr, 169.254.1.1 by default; oob.port, 443 by default).

The Ceph Manager does not connect to the out-of-band network. Each agent sends its data to the cephadm agent endpoint of the active Manager (TCP port 7150, or the next free port up to 7300). The Manager connects to each agent at the host’s address on TCP port 9456 for the ceph orch hardware light, ceph orch hardware powercycle and ceph orch hardware shutdown commands.

Deploying the Agent

The first step is to provide the out-of-band management credentials, and the out-of-band address if it is not the default. This can be done when adding the host with a host spec file (see “Creating many Hosts at Once” in Host Management). In the oob section, username and password are required; addr and port are optional.

cat host.yml
---
service_type: host
hostname: node-10
addr: 10.10.10.10
oob:
  addr: 20.20.20.10
  username: admin
  password: p@ssword

Apply the spec:

ceph orch apply -i host.yml
Added host 'node-10' with addr '10.10.10.10'

Deploy the agent:

ceph config set mgr mgr/cephadm/hw_monitoring true

CLI

ceph orch hardware status [<hostname>] [--category <category>] [--format <format>]

Supported categories are:

  • summary (default)

  • memory

  • storage

  • processors

  • network

  • power

  • fans

  • temperatures

  • firmware (requires a host name; firmwares is accepted as an alias)

  • criticals

  • fcm (statistics of FCM NVMe drives, read on the host; data only when mgr/cephadm/hw_monitoring_vendor is atollon)

  • fullreport (all data for one host; requires a host name and --format json)

The temperatures and fcm categories, and the name firmware, are in Tentacle 20.2.3 and later and in Umbrella 21. Squid 19.2 and Tentacle 20.2.0 to 20.2.2 have no temperatures or fcm category and name the firmware category firmwares.

Examples

Hardware Health Status Summary

ceph orch hardware status
+---------+---------+---------+-----+-----+--------+-------+------+
|   HOST  |    SN   | STORAGE | CPU | NET | MEMORY | POWER | FANS |
+---------+---------+---------+-----+-----+--------+-------+------+
| node-10 | FR8Y5X3 |    ok   |  ok |  ok |   ok   |   ok  |  ok  |
+---------+---------+---------+-----+-----+--------+-------+------+

Memory Report

ceph orch hardware status node-10 --category memory
+---------+--------+---------+--------+---------+
|   HOST  | SYS_ID |   NAME  | STATUS |  STATE  |
+---------+--------+---------+--------+---------+
| node-10 |   1    | DIMM A1 |   OK   | Enabled |
| node-10 |   1    | DIMM A2 |   OK   | Enabled |
| node-10 |   1    | DIMM B1 |   OK   | Enabled |
| node-10 |   1    | DIMM B2 |   OK   | Enabled |
+---------+--------+---------+--------+---------+

Storage Devices Report

ceph orch hardware status node-10 --category storage
+---------+--------+-------------------------------------------------------+------------------+----------------+----------+----------------+------+----+--------+---------+
|   HOST  | SYS_ID |                          NAME                         |      MODEL       |      SIZE      | PROTOCOL |       SN       | SLOT | FW | STATUS |  STATE  |
+---------+--------+-------------------------------------------------------+------------------+----------------+----------+----------------+------+----+--------+---------+
| node-10 |   1    | Disk 8 in Backplane 1 of Storage Controller in Slot 2 | ST20000NM008D-3D | 20000588955136 |   SATA   |    ZVT99QLL    |  8   |    |   OK   | Enabled |
| node-10 |   1    | Disk 0 in Backplane 0 of Storage Controller in Slot 2 | MZ7L33T8HBNAAD3  | 3840755981824  |   SATA   | S6M5NE0T800539 |  0   |    |   OK   | Enabled |
+---------+--------+-------------------------------------------------------+------------------+----------------+----------+----------------+------+----+--------+---------+

Processors Report

ceph orch hardware status node-10 --category processors
+---------+--------+--------------+--------------------------------------------+-------+---------+--------+---------+
|   HOST  | SYS_ID |     NAME     |                   MODEL                    | CORES | THREADS | STATUS |  STATE  |
+---------+--------+--------------+--------------------------------------------+-------+---------+--------+---------+
| node-10 |   1    | cpu.socket.1 | Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz |   16  |    32   |   OK   | Enabled |
| node-10 |   1    | cpu.socket.2 | Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz |   16  |    32   |   OK   | Enabled |
+---------+--------+--------------+--------------------------------------------+-------+---------+--------+---------+

Network Devices Report

ceph orch hardware status node-10 --category network
+---------+--------+----------------------------------+-------+--------+---------+
|   HOST  | SYS_ID |               NAME               | SPEED | STATUS |  STATE  |
+---------+--------+----------------------------------+-------+--------+---------+
| node-10 |   1    | NIC in Slot 1 Port 1 Partition 1 | 10000 |   OK   | Enabled |
| node-10 |   1    |             eno8303              |  1000 |   OK   | Enabled |
+---------+--------+----------------------------------+-------+--------+---------+

Power Supplies Report

ceph orch hardware status node-10 --category power
+---------+------------+----+------------+-------------------------+--------------+--------+---------+
|   HOST  | CHASSIS_ID | ID |    NAME    |          MODEL          | MANUFACTURER | STATUS |  STATE  |
+---------+------------+----+------------+-------------------------+--------------+--------+---------+
| node-10 |     1      | 0  | PS1 Status | PWR SPLY,800W,RDNT,LTON |     DELL     |   OK   | Enabled |
| node-10 |     1      | 1  | PS2 Status | PWR SPLY,800W,RDNT,LTON |     DELL     |   OK   | Enabled |
+---------+------------+----+------------+-------------------------+--------------+--------+---------+

Fans Report

ceph orch hardware status node-10 --category fans
+---------+------------+----+--------------------+---------+-------+--------+---------+
|   HOST  | CHASSIS_ID | ID |        NAME        | READING | UNITS | STATUS |  STATE  |
+---------+------------+----+--------------------+---------+-------+--------+---------+
| node-10 |     1      | 0  | System Board Fan1A |   4800  |  RPM  |   OK   | Enabled |
| node-10 |     1      | 1  | System Board Fan1B |   4680  |  RPM  |   OK   | Enabled |
| node-10 |     1      | 2  | System Board Fan2A |   4920  |  RPM  |   OK   | Enabled |
| node-10 |     1      | 3  | System Board Fan2B |   4560  |  RPM  |   OK   | Enabled |
+---------+------------+----+--------------------+---------+-------+--------+---------+

Temperature Sensors Report

ceph orch hardware status node-10 --category temperatures
+---------+------------+----+---------------------------+---------+-------+--------+---------+
|   HOST  | CHASSIS_ID | ID |            NAME           | READING | UNITS | STATUS |  STATE  |
+---------+------------+----+---------------------------+---------+-------+--------+---------+
| node-10 |     1      | 0  |  System Board Inlet Temp  |    24   |  Cel  |   OK   | Enabled |
| node-10 |     1      | 1  |         CPU1 Temp         |    47   |  Cel  |   OK   | Enabled |
| node-10 |     1      | 2  |         CPU2 Temp         |    45   |  Cel  |   OK   | Enabled |
| node-10 |     1      | 3  | System Board Exhaust Temp |    38   |  Cel  |   OK   | Enabled |
+---------+------------+----+---------------------------+---------+-------+--------+---------+

Firmware Details

ceph orch hardware status node-10 --category firmware
+------------+----------------------------------------------------------------------------+--------------------------------------------------------------+----------------------+-------------+--------+
|    HOST    |                                 COMPONENT                                  |                             NAME                             |         DATE         |   VERSION   | STATUS |
+------------+----------------------------------------------------------------------------+--------------------------------------------------------------+----------------------+-------------+--------+
|   node-10  |               current-107649-7.03__raid.backplane.firmware.0               |                         Backplane 0                          | 2022-12-05T00:00:00Z |     7.03    |   OK   |


... omitted output ...


|   node-10  |               previous-25227-6.10.30.20__idrac.embedded.1-1                |             Integrated Remote Access Controller              |      00:00:00Z       |  6.10.30.20 |   OK   |
+------------+----------------------------------------------------------------------------+--------------------------------------------------------------+----------------------+-------------+--------+

Hardware Critical Warnings Report

ceph orch hardware status --category criticals
+---------+--------+-----------+------------+----------+-----------+
|   HOST  | SYS_ID | COMPONENT |    NAME    |  STATUS  |   STATE   |
+---------+--------+-----------+------------+----------+-----------+
| node-10 |   1    |   power   | PS2 Status | critical | unplugged |
+---------+--------+-----------+------------+----------+-----------+

For Developers

class cephadm.agent.NodeProxyEndpoint(mgr)
NodeProxyEndpoint.__init__(mgr)
NodeProxyEndpoint.oob()

Get the out-of-band management tool details for a given host.

Returns:

oob details.

Return type:

dict

NodeProxyEndpoint.data()

Handles incoming data via a POST request.

This function is exposed to handle POST requests and expects incoming JSON data. It processes the incoming data by first validating it through the validate_node_proxy_data method. Subsequently, it extracts the hostname from the data and saves the information using mgr.node_proxy.save. Finally, it raises alerts based on the provided status through the raise_alert method.

Returns:

None

Return type:

None

NodeProxyEndpoint.fullreport(**kw)

Handles GET request to retrieve a full report.

This function is exposed to handle GET requests and retrieves a comprehensive report using the ‘fullreport’ method from the NodeProxyCache class.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

The full report data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.summary(**kw)

Handles GET request to retrieve summary information.

This function is exposed to handle GET requests and fetches summary data using the ‘summary’ method from the NodeProxyCache class.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Summary information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.criticals(**kw)

Handles GET request to retrieve critical information.

This function is exposed to handle GET requests and fetches critical data using the ‘criticals’ method from the NodeProxyCache class.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Critical information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.memory(**kw)

Handles GET request to retrieve specific information.

This function is exposed to handle GET requests and fetch specific data using the ‘common’ method from the NodeProxyCache class with.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Specific information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.storage(**kw)

Handles GET request to retrieve specific information.

This function is exposed to handle GET requests and fetch specific data using the ‘common’ method from the NodeProxyCache class with.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Specific information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.network(**kw)

Handles GET request to retrieve specific information.

This function is exposed to handle GET requests and fetch specific data using the ‘common’ method from the NodeProxyCache class with.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Specific information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.power(**kw)

Handles GET request to retrieve specific information.

This function is exposed to handle GET requests and fetch specific data using the ‘common’ method from the NodeProxyCache class with.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Specific information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.processors(**kw)

Handles GET request to retrieve specific information.

This function is exposed to handle GET requests and fetch specific data using the ‘common’ method from the NodeProxyCache class with.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Specific information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.fans(**kw)

Handles GET request to retrieve specific information.

This function is exposed to handle GET requests and fetch specific data using the ‘common’ method from the NodeProxyCache class with.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Specific information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.temperatures(**kw)
Return type:

Dict[str, Any]

NodeProxyEndpoint.firmware(**kw)

Handles GET request to retrieve firmware information.

This function is exposed to handle GET requests and fetches firmware data using the ‘firmware’ method from the NodeProxyCache class.

Parameters:

kw (dict) -- Keyword arguments for the request.

Returns:

Firmware information data.

Return type:

dict[str, Any]

Raises:

cherrypy.HTTPError 404 -- If the passed hostname is not found.

NodeProxyEndpoint.led(**kw)

Handles enclosure LED operations for the specified hostname.

This function handles GET and PATCH requests related to LED status for a specific hostname. It identifies the request method and provided hostname. If the hostname is missing, it logs an error and returns an error message.

For PATCH requests, it prepares authorization headers based on the provided ID and password, encodes them, and constructs the authorization header.

After processing, it queries the endpoint and returns the result.

Parameters:

kw (dict) -- Keyword arguments including ‘hostname’.

Returns:

Result of the LED-related operation.

Return type:

dict[str, Any]

Brought to you by the Ceph Foundation

The Ceph Documentation is a community resource funded and hosted by the non-profit Ceph Foundation. If you would like to support this and our other efforts, please consider joining now.