<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/OpenBmc/bmcweb.git/redfish-core/include/utils, branch master</title>
<subtitle>A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/'/>
<updated>2026-11-25T14:21:42+00:00</updated>
<entry>
<title>Fix system dump task completion Location</title>
<updated>2026-11-25T14:21:42+00:00</updated>
<author>
<name>Shivraj Toravi</name>
<email>shivrajnt@ami.com</email>
</author>
<published>2026-10-28T10:34:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=c06bb36ea8d45b835243a58ace17ea39574af51d'/>
<id>urn:sha1:c06bb36ea8d45b835243a58ace17ea39574af51d</id>
<content type='text'>
Dump creation tasks always report a completion Location under the
Manager dump collection, including for system dumps.

Pass the dump type through task creation and use getDumpEntriesUrl()
to select the correct collection for the completion Location.

Tested: Cross-built bmcweb for Romulus.
Verified BMC dump creation, task completion Location, and entry GET
on QEMU. Verified BMC and System completion Locations with an isolated
on-target callback test.

Change-Id: I6ef5a20767d5d9f8e1ed0558e11faf6eee5d5e2f
Signed-off-by: Shivraj Toravi &lt;shivrajnt@ami.com&gt;
</content>
</entry>
<entry>
<title>utils: Fix function name in getResourceState log</title>
<updated>2026-11-25T13:55:48+00:00</updated>
<author>
<name>Bill Chan</name>
<email>bill_chan@jabil.com</email>
</author>
<published>2026-11-25T07:23:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=344623cfee04e37a8a1549b5ea3c04e25e0b391d'/>
<id>urn:sha1:344623cfee04e37a8a1549b5ea3c04e25e0b391d</id>
<content type='text'>
The debug log in getResourceState prints "getResourceStatus", a
function that does not exist, so the log points at the wrong symbol.
Log the actual function name.

Tested: Log message change only; no functional change.

Change-Id: If0e2963b817d9c538b83765f47b67c94d192457f
Signed-off-by: Bill Chan &lt;bill_chan@jabil.com&gt;
</content>
</entry>
<entry>
<title>location_utils: return the LocationType enum</title>
<updated>2026-11-25T07:28:35+00:00</updated>
<author>
<name>Ender Hsieh</name>
<email>andhsieh@nvidia.com</email>
</author>
<published>2026-10-07T04:52:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=60a0de171edf3b5ee9dc4f5af84cadb98988b690'/>
<id>urn:sha1:60a0de171edf3b5ee9dc4f5af84cadb98988b690</id>
<content type='text'>
getLocationType() handed the Redfish LocationType back as a bare string,
so a caller writing it into a response got no checking against the
schema and a wrong value would only show up at runtime. Return the
generated resource::LocationType enum instead. It serializes to the same
strings, so the compiler now rejects anything the schema does not
define.

Tested: Unit tests pass. The helper has no caller on master yet, so no
Redfish response changes, and the enum serializes to the same "Slot" and
"Embedded" values the function returned before.

Change-Id: I4e8e5f2bf6a8c4feebe4d25f627c25c6acc39cd1
Signed-off-by: Ender Hsieh &lt;andhsieh@nvidia.com&gt;
</content>
</entry>
<entry>
<title>query_param: propagate session in processOnly</title>
<updated>2026-11-19T16:09:29+00:00</updated>
<author>
<name>Chandramohan Harkude</name>
<email>chandramohan.harkude@gmail.com</email>
</author>
<published>2026-07-24T15:34:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=7885cdcc6ba1b7e77d310ecaee21abc187bc2bc9'/>
<id>urn:sha1:7885cdcc6ba1b7e77d310ecaee21abc187bc2bc9</id>
<content type='text'>
The $only sub-request was created without the originating session.
On routes with D-Bus privilege checks, the null session caused a
null pointer dereference in dbus_privileges.hpp, returned as HTTP
500.
The fix is to copy the session onto the sub-request, similarly how
startQuery already does it.

Tested:
Before:
```
curl -k -u root:&lt;Password&gt; -X GET -H 'Content-Type: application/json' https://&lt;IP&gt;/redfish/v1/AccountService/Accounts?only
{
  "error": {
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_1_1.Message",
        "Message": "The request failed due to an internal service error.  The service is still operational.",
        "MessageArgs": [],
        "MessageId": "Base.1.18.1.InternalError",
        "MessageSeverity": "Critical",
        "Resolution": "Resubmit the request.  If the problem persists, consider resetting the service."
      }
    ],
    "code": "Base.1.18.1.InternalError",
    "message": "The request failed due to an internal service error.  The service is still operational."
  }
}
After:
 curl -k -u root:&lt;Password&gt; -X GET -H 'Content-Type: application/json' https://&lt;IP&gt;/redfish/v1/AccountService/Accounts?only
{
  "@odata.id": "/redfish/v1/AccountService/Accounts/root",
  "@odata.type": "#ManagerAccount.v1_7_0.ManagerAccount",
  "AccountTypes": [
    "HostConsole",
    "IPMI",
    "Redfish",
    "WebUI",
    "ManagerConsole"
  ],
  "Description": "User Account",
  "Enabled": true,
  "Id": "root",
  "Links": {
    "Role": {
      "@odata.id": "/redfish/v1/AccountService/Roles/Administrator"
    }
  },
  "Locked": false,
  "Locked@Redfish.AllowableValues": [
    "false"
  ],
  "Name": "User Account",
  "Password": null,
  "PasswordChangeRequired": false,
  "RoleId": "Administrator",
  "StrictAccountTypes": true,
  "UserName": "root"
}
```

Change-Id: I4dbb9e2f0c45d8b9d605e096b49db3c963fb280e
Signed-off-by: Chandramohan Harkude &lt;chandramohan.harkude@gmail.com&gt;
</content>
</entry>
<entry>
<title>bmcweb: add support for rotational_position sensor</title>
<updated>2026-10-30T16:55:11+00:00</updated>
<author>
<name>Will Tsai</name>
<email>will.tsai@quantatw.com</email>
</author>
<published>2026-10-13T06:02:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=8790bfdbc0a5d8d8b915c9e26002523162ce74f3'/>
<id>urn:sha1:8790bfdbc0a5d8d8b915c9e26002523162ce74f3</id>
<content type='text'>
Currently, bmcweb does not recognize the rotational_position sensor
type under /xyz/openbmc_project/sensors/rotational_position, which is
already defined and documented in phosphor-dbus-interfaces (PDI).
Consequently, sensors such as ABSOLUTE_ROTATIONALPOS_RAD exposed by
valves (e.g. Belimo valves) are filtered out from the Chassis Sensors
collection (/redfish/v1/Chassis/&lt;ChassisId&gt;/Sensors).

This commit adds support for rotational_position sensors:
1. Add /xyz/openbmc_project/sensors/rotational_position to
   getSensorPaths() in sensors.hpp.
2. Map rotational_position to ReadingType::RotationalPosition and
   ReadingUnits "rad" in sensor_utils.hpp.
3. Use "rotation" prefix for rotational_position in getSensorId()
   and handle decoding back to "rotational_position" in
   splitSensorNameAndType().
4. Add unit test coverage in sensor_utils_test.cpp.

Tested:
1. Verified on Ventura2 BMC with Belimo valve:
   GET /redfish/v1/Chassis/SupplyValve2_1/Sensors
   - Observed
     rotation_SupplyValve2_1_ABSOLUTE_ROTATIONALPOS_RAD in Members.
2. Queried the specific sensor URI:
   GET /redfish/v1/Chassis/SupplyValve2_1/Sensors/
       rotation_SupplyValve2_1_ABSOLUTE_ROTATIONALPOS_RAD
   - Verified the response contains:
     "ReadingType": "RotationalPosition",
     "ReadingUnits": "rad",
     "Reading": &lt;reading_in_radians&gt;
3. Unit tests in sensor_utils_test pass.
4. Redfish Service Validator passes on
   /redfish/v1/Chassis/SupplyValve2_1/Sensors:
   - 246 Pass / 0 Warn / 0 Fail

Change-Id: I080305ef72dff484d1c70083a14f728e504f718f
Signed-off-by: Will Tsai &lt;will.tsai@quantatw.com&gt;
</content>
</entry>
<entry>
<title>IndicatorLED: Remove deprecated property</title>
<updated>2026-10-29T03:05:50+00:00</updated>
<author>
<name>Eric Liu</name>
<email>liuer@nvidia.com</email>
</author>
<published>2026-10-19T05:37:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=522e6b7e94163565f4644d19f4a7703823d1a8a2'/>
<id>urn:sha1:522e6b7e94163565f4644d19f4a7703823d1a8a2</id>
<content type='text'>
The redfish-allow-deprecated-indicatorled option was disabled by default
in 2025 [1] and scheduled for removal by March 2026. Remove the option
and the IndicatorLED code under it: Chassis and ComputerSystem GET and
PATCH, and the Thermal Fans and Power PowerSupplies entries. Redfish
deprecated IndicatorLED in favor of LocationIndicatorActive, which is
unchanged. Sensor inventory lookups no longer read inventory LEDs,
which only fed that property. A PATCH of IndicatorLED still returns
PropertyUnknown, as it did with the option disabled.

[1]: https://github.com/openbmc/bmcweb/commit/f664fd8abeba11c7aa06d5119423a27b9d40d045

Tested: Build an image for nvl32-obmc.

```
$ curl -sk -u &lt;credentials&gt; https://${bmc}/redfish/v1/Systems/system | grep -cE "IndicatorLED|LocationIndicatorActive"
0
$ curl -sk -u &lt;credentials&gt; https://${bmc}/redfish/v1/Chassis/Nvidia_Alon8_HPM | grep -cE "IndicatorLED|LocationIndicatorActive"
0
$ curl -sk -u &lt;credentials&gt; -w '\n%{http_code}\n' -X PATCH -H 'Content-Type: application/json' -d '{"IndicatorLED":"Lit"}' https://${bmc}/redfish/v1/Systems/system | grep -E '"code"|^[0-9]{3}$'
    "code": "Base.1.19.PropertyUnknown",
400
$ curl -sk -u &lt;credentials&gt; -w '\n%{http_code}\n' -X PATCH -H 'Content-Type: application/json' -d '{"IndicatorLED":"Lit"}' https://${bmc}/redfish/v1/Chassis/Nvidia_Alon8_HPM | grep -E '"code"|^[0-9]{3}$'
    "code": "Base.1.19.PropertyUnknown",
400
$ curl -sk -u &lt;credentials&gt; -o /dev/null -w '%{http_code}\n' -X PATCH -H 'Content-Type: application/json' -d '{"LocationIndicatorActive":true}' https://${bmc}/redfish/v1/Systems/system
200
$ curl -sk -u &lt;credentials&gt; https://${bmc}/redfish/v1/Systems/system | jq .LocationIndicatorActive
true
$ curl -sk -u &lt;credentials&gt; -o /dev/null -w '%{http_code}\n' -X PATCH -H 'Content-Type: application/json' -d '{"LocationIndicatorActive":true}' https://${bmc}/redfish/v1/Chassis/MockLedChassis
204
$ curl -sk -u &lt;credentials&gt; https://${bmc}/redfish/v1/Chassis/MockLedChassis | jq .LocationIndicatorActive
true
$ curl -sk -u &lt;credentials&gt; "https://${bmc}/redfish/v1/Chassis/Nvidia_RTX_PRO_6000_Blackwell_0/Sensors?\$expand=." | jq -c '.Members[] | {Id, ReadingType}'
{"Id":"voltage_GPU_0_Voltage_0","ReadingType":"Voltage"}
{"Id":"energy_GPU_0_Energy_0","ReadingType":"EnergyJoules"}
{"Id":"power_GPU_0_Power_0","ReadingType":"Power"}
{"Id":"temperature_GPU_0_TEMP_1","ReadingType":"Temperature"}
{"Id":"temperature_GPU_0_DRAM_0_TEMP_0","ReadingType":"Temperature"}
{"Id":"temperature_GPU_0_TEMP_0","ReadingType":"Temperature"}

Summary - PASS: 63, WARN: 0, FAIL: 0, NOT TESTED: 79
Summary - PASS: 27, WARN: 0, FAIL: 0, NOT TESTED: 55
```
1. Systems/system and Chassis/Nvidia_Alon8_HPM return no IndicatorLED.
2. A PATCH of IndicatorLED returns PropertyUnknown on both resources.
3. This machine has no LED groups, so a test D-Bus service stood in
   for phosphor-led-manager. A PATCH of LocationIndicatorActive sets
   the LED group on Systems/system and on a chassis with an identifying
   LED group, a GET reads it back, and every response matches the build
   before the change.
4. Redfish Service Validator over both resources reports no failures.
5. bmcweb unit tests pass, including FillPowerThermalIdentity.
6. Sensors $expand, which runs the sensor inventory lookup, returns the
   same members and fields as before the change.

Change-Id: Id744b1d2092cf24faa4ee7ab25d8747c397e982d
Signed-off-by: Eric Liu &lt;liuer@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Handle all dump progress statuses explicitly</title>
<updated>2026-10-27T20:56:05+00:00</updated>
<author>
<name>Oliver Brewka</name>
<email>oliver.brewka@9elements.com</email>
</author>
<published>2026-09-07T11:55:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=c846fb5d6f816a85c27b9f54a012058a75c0b7f4'/>
<id>urn:sha1:c846fb5d6f816a85c27b9f54a012058a75c0b7f4</id>
<content type='text'>
Prior to this patch the logic treated both InProgress and NotStarted
status as InProgress. Same for Failed and Aborted, which both are
treated as Failed.

To align with the pdi definition of xyz.openbmc_project.Common.Progress
Status property [1], add the NotStarted and Aborted status to the
DumpCreationProgress enum and adapt progress logic to account for these
statuses explicitly.

Tested: Manually tested on romulus running in qemu with ibm dump
extension enabled, to get access to /xyz/openbmc_project/dump/system.

Put machine state into Quiesced:
```
busctl set-property xyz.openbmc_project.State.Host0 \
/xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host \
CurrentHostState \
s "xyz.openbmc_project.State.Host.HostState.Quiesced"

```

POST request
```
curl -v -k  POST 'https://localhost:44443/redfish/v1/Systems/system/
LogServices/Dump/Actions/LogService.CollectDiagnosticData' \
    -H 'X-Auth-Token: '"$BMCWEB_SESSION_TOKEN_ROML"'' \
    -H "Content-Type: application/json" -d \
    '{"DiagnosticDataType":"OEM", "OEMDiagnosticDataType":"System"}'
```

Dump manager tree
```
busctl tree xyz.openbmc_project.Dump.Manager

`- /xyz
  `- /xyz/openbmc_project
    `- /xyz/openbmc_project/dump
      |- /xyz/openbmc_project/dump/bmc
      | `- /xyz/openbmc_project/dump/bmc/entry
      |   `- /xyz/openbmc_project/dump/bmc/entry/1
      |- /xyz/openbmc_project/dump/faultlog
      |- /xyz/openbmc_project/dump/resource
      `- /xyz/openbmc_project/dump/system
        `- /xyz/openbmc_project/dump/system/entry
          |- /xyz/openbmc_project/dump/system/entry/1
          `- /xyz/openbmc_project/dump/system/entry/2
```

Set progress to NotStarted

```
busctl set-property xyz.openbmc_project.Dump.Manager \
/xyz/openbmc_project/dump/system/entry/2 \
xyz.openbmc_project.Common.Progress Status \
s "xyz.openbmc_project.Common.Progress.OperationStatus.NotStarted"

journalctl -u bmcweb
...
Sep 07 14:55:21 romulus bmcweb[200]: [dump_utils.hpp:655]
/xyz/openbmc_project/dump/system/entry/2: Dump creation task is in
progress
```

Set progress to Aborted

```
busctl set-property xyz.openbmc_project.Dump.Manager \
/xyz/openbmc_project/dump/system/entry/2 \
xyz.openbmc_project.Common.Progress Status \
s "xyz.openbmc_project.Common.Progress.OperationStatus.Aborted"

journalctl -u bmcweb
...
Sep 07 14:55:42 romulus bmcweb[200]: [dump_utils.hpp:646]
/xyz/openbmc_project/dump/system/entry/2: Aborted creating dump

```
Verified successful dump creation flow works the same as before,
following same testing as in previous patch.

[1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/0be76aeee7e5c7d8235ea830049aa99fd9bf731c/yaml/xyz/openbmc_project/Common/Progress.interface.yaml#L32

Change-Id: I4911de4476156e043ef5e5eddaa950e40535754e
Signed-off-by: Oliver Brewka &lt;oliver.brewka@9elements.com&gt;
</content>
</entry>
<entry>
<title>clang-tidy: fix readability-container-contains and identifier-naming</title>
<updated>2026-10-09T15:38:32+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2026-10-09T04:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=65d474c3fcf39187c8efec4694bcc70014304975'/>
<id>urn:sha1:65d474c3fcf39187c8efec4694bcc70014304975</id>
<content type='text'>
Replace .find() != npos patterns with C++23 std::string::contains
and rename interface_map to interfaceMap to satisfy clang-tidy 23.

Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
Change-Id: I28c90d862c536873c482e25caf29a32f97e99330
</content>
</entry>
<entry>
<title>Refactor chassis_utils getValidChassisPath lambda</title>
<updated>2026-10-08T16:34:36+00:00</updated>
<author>
<name>Yuvakumar Selvamani</name>
<email>yuvakumars@ami.com</email>
</author>
<published>2026-08-17T12:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=dba5d4ddde45989e017d3842370852266983a243'/>
<id>urn:sha1:dba5d4ddde45989e017d3842370852266983a243</id>
<content type='text'>
The getValidChassisPath function contained an inline lambda that
triggered the long-lambda ast-grep rule, requiring an inline suppression
(// ast-grep-ignore: long-lambda). Since callback is a forwarding-
reference template parameter, std::bind_front cannot be used directly
here.

This commit extracts the lambda body into a separate templated
afterGetValidChassisPath function, leaving a short delegating lambda in
getValidChassisPath that simply forwards to it. This follows the
alternative pattern documented for forwarding-reference callbacks,
improves readability, and allows the removal of the static analysis
suppression.

Tested on AST2600 SoC (live D-Bus tested).
- `HEAD /redfish/v1/Chassis/&lt;invalid-id&gt;/ThermalSubsystem` (exercises
  getValidChassisPath())
  Expected: HTTP 404 Base.1.19.ResourceNotFound
  Actual:   HTTP 404 Base.1.19.ResourceNotFound
- `HEAD /redfish/v1/Chassis/&lt;valid-id&gt;/ThermalSubsystem` (a Chassis
  object registered live on D-Bus for this test)
  Expected: HTTP 200 (chassis resolves)
  Actual:   HTTP 200 with the correct Link header - confirms the
            templated afterGetValidChassisPath() match-found branch
- RSV: 5845 Pass / 353 Warn / 0 Fail

Change-Id: I76ed9cc42fa4e49e49e6dc7c3cfc85b75f0d2741
Signed-off-by: Yuvakumar Selvamani &lt;yuvakumars@ami.com&gt;
</content>
</entry>
<entry>
<title>sensor: add ReadingTime to sensor responses</title>
<updated>2026-10-07T04:51:22+00:00</updated>
<author>
<name>Ender Hsieh</name>
<email>andhsieh@nvidia.com</email>
</author>
<published>2026-08-17T15:48:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=778d1eaa71eed629f1cec73f3790be127939b564'/>
<id>urn:sha1:778d1eaa71eed629f1cec73f3790be127939b564</id>
<content type='text'>
Add ReadingTime so a client can tell how old a reading is instead of
assuming it is current, which is what a consumer closing a control loop
on power and thermal readings needs in order to notice a device that has
stopped responding.

The value comes from the UpdatedTime property defined in:
https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/84171
A service that has not obtained a reading leaves the property zero,
which is skipped rather than published as a bogus date.

ReadingTime is already in the installed Sensor schema and is not part of
any sensor excerpt, so only Redfish.md needed updating.

Tested:

```
curl -k -H "X-Auth-Token: $token" \
  https://&lt;bmc_ip&gt;/redfish/v1/Chassis/Nvidia_*/Sensors/temperature_GPU_*_TEMP_0

  {
    "@odata.id": "/redfish/v1/Chassis/Nvidia_*/Sensors/temperature_...",
    "@odata.type": "#Sensor.v1_11_1.Sensor",
    "Id": "temperature_...",
    "Name": "",
    "PhysicalContext": "Accelerator",
    "Reading": 26.19921875,
    "ReadingRangeMax": 127.0,
    "ReadingRangeMin": -128.0,
    "ReadingTime": "2026-08-17T15:54:30.392391+00:00",
    "ReadingType": "Temperature",
    "ReadingUnits": "Cel",
    "Status": { "Health": "OK", "State": "Enabled" }
  }

Redfish Service Validator:
Summary - PASS: 9453, WARN: 361, FAIL: 0, NOT TESTED: 12407
Validating /redfish/v1/Chassis/Nvidia_*/Sensors/temperature_...
  - Pass: 14, Warn: 0, Fail: 0, Skip: 54
```
1. ReadingTime carried the time the reading was acquired from the
   sensor, matching the clock to microsecond precision
2. All 58 sensor resources validated with no new failures
3. A service that does not publish UpdatedTime omits ReadingTime rather
   than reporting the Epoch

Change-Id: Ib97dff91b19a7da4b3b99384dc9940333a92c3e1
Signed-off-by: Ender Hsieh &lt;andhsieh@nvidia.com&gt;
</content>
</entry>
</feed>
