Commit 82c5b74
authored
This commit is doing Battery Concurrent Maintenance with proper
setting functional property after that.
* Set Functional property after battery CM (#558)
When bmcweb is told the RTC battery is replaced after a CM operation,
set the Functional property on its assembly object path back to true
before restarting the adcsensor daemon.
This does two things:
1) Causes the fault LED to turn off
2) Sets the Redfish representation back to healthy so the web UI doesn't
show it has unhealthy it after the CM operation. Of course if
adcsensor detects an error again it would go back to unhealthy.
Since this is handling the fault LED, the previous code that explicitly
turned off the fault LED group was removed.
* OEM Battery Concurrent Maintenance For Everest System (#549)
The current implementation of this feature supports the redfish OEM
ReadyToRemove property for the TOD battery on assembly. The TOD battery
is put in the ReadyToRemove state by stopping the adcsensor application.
The reverse occurs when the adcsensor application is restarted.
The adcsensor is stopped and started by calling systemd.
Note that this implementation only works if the adcsensor application
handles one ADC sensor.
The properties of an assembly have been extended to include
`["Oem"]["OpenBMC"]["ReadyToRemove"]`
The GET and PATCH methods to the route
`/redfish/v1/Chassis/chassis/Assembly` now handle the property
`["Oem"]["OpenBMC"]["ReadyToRemove"]`
The following commands were tested:
```
curl -k -X GET https://${bmc}/redfish/v1/Chassis/chassis/Assembly
```
```
curl -k -H "Content-Type: application/json" -X PATCH \
https://${bmc}/redfish/v1/Chassis/chassis/Assembly \
-d '{"Assemblies":[{"MemberId" : "35", "LocationIndicatorActive": true, "Oem": { "OpenBMC": { "ReadyToRemove": true }}}]}'
curl -k -H "Content-Type: application/json" -X PATCH \
https://${bmc}/redfish/v1/Chassis/chassis/Assembly \
-d '{"Assemblies":[{"MemberId" : "35", "LocationIndicatorActive": false, "Oem": { "OpenBMC": { "ReadyToRemove": false }}}]}'
```
NOTE:
The explicit `-H "Content-Type: application/json"` request header is
needed for the OWASP security guideline by
1aa0c2b
* The following modifications are included:
1) Currently there is only one assembly that contains an OEM
entity. There must exist a method to identify the assembly that
contains the TOD battery other than the presence of an OEM property,
since more OEM properties could be added on other assemblies.
Previously the memberId associated with the battery OEM assembly
was used, but the memberId may change. This modification identifies
the OEM battery assembly by its name on DBUS.
2)The memberId will not be required in the PATCH request when
only the Oem/OpenBMC/ReadyToRemove property for the battery
is contained in the PATCH request.
3) If the LocationIndicatorActive LED flag is included in the
PATCH request with the Oem/OpenBMC/ReadyToRemove property or
without the Oem/OpenBMC/ReadyToRemove property, the memberId
will be required.
4) If the LocationIndicatorActive LED flag for any other assembly
is included in the PATCH request the associated memberId is required.
Signed-off-by: Tom Ippolito <[email protected]>
Signed-off-by: Myung Bae <[email protected]>
1 parent 61de051 commit 82c5b74
File tree
5 files changed
+293
-5
lines changed- redfish-core
- lib
- schema/oem/openbmc
- csdl
- json-schema
5 files changed
+293
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
136 | 178 | | |
137 | 179 | | |
138 | 180 | | |
| |||
168 | 210 | | |
169 | 211 | | |
170 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
171 | 223 | | |
172 | 224 | | |
173 | 225 | | |
| |||
263 | 315 | | |
264 | 316 | | |
265 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
266 | 408 | | |
267 | 409 | | |
268 | 410 | | |
| |||
295 | 437 | | |
296 | 438 | | |
297 | 439 | | |
| 440 | + | |
298 | 441 | | |
299 | 442 | | |
300 | 443 | | |
301 | 444 | | |
302 | 445 | | |
| 446 | + | |
303 | 447 | | |
304 | | - | |
305 | | - | |
306 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
307 | 451 | | |
308 | 452 | | |
309 | 453 | | |
| |||
322 | 466 | | |
323 | 467 | | |
324 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
325 | 483 | | |
326 | 484 | | |
327 | 485 | | |
| |||
334 | 492 | | |
335 | 493 | | |
336 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
337 | 536 | | |
338 | 537 | | |
339 | 538 | | |
340 | 539 | | |
341 | 540 | | |
342 | | - | |
| 541 | + | |
343 | 542 | | |
344 | 543 | | |
345 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
346 | 550 | | |
347 | 551 | | |
348 | 552 | | |
| |||
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments