2
0
mirror of https://opendev.org/x/pyghmi synced 2026-01-11 02:32:31 +00:00
Commit Graph

1400 Commits

Author SHA1 Message Date
Jarrod Johnson
9a5b0ccce2 Provide specific error when querying a bad bay in sharedio
Change-Id: Id64fa502ac319d6671aaf15cf1cce927e3762d1a
2025-04-09 15:42:59 -04:00
Jarrod Johnson
afac5284ab Fallback to intense fixup of bad binary XML data
If the XML parser fails, attempt to replace binary data
to try again.

Change-Id: I659aec451b3ac596dc090c125939370bb251a62a
2025-04-08 18:17:50 -04:00
Jarrod Johnson
1a1e449965 Recognize and add thermal_log to XCC2
If an XCC refuses to FFDC due to missing thermal_log,
apply that parameter.

Change-Id: Iaf0c4884d8915b12253a20c78176d0320ed69358
2025-04-08 10:08:01 -04:00
Zuul
a9d393c229 Merge "Add get screenshot capability" 2025-04-05 17:46:25 +00:00
Jarrod Johnson
db29760efd Add get screenshot capability
This can get image files from the BMCs representing the current graphical console.

Change-Id: Ibe45e9584cb5445b92139bd563372180b630b219
2025-04-05 13:40:17 -04:00
Jarrod Johnson
0cedc68573 Report ready for more redfish update
Some services do not contain a Health attribute,
try to make do with the ServiceEnabled field.

Change-Id: I85f526dd0a2ebde56059980ca582a2c09de5e42b
2025-03-19 17:59:54 -04:00
Jarrod Johnson
b8e6a1f8ae Add facility to check update status
Firmware has mechanism to advertise the
health of the updateservice.  Provide this as a function.

Change-Id: Iaa1f2055bfea1eef3c8307a56a68098ce136fcb1
2025-03-19 15:29:31 -04:00
Jarrod Johnson
4e19aa985c Add facility for managing ikvm launch
Change-Id: I7db63b95d5740b3fa94ab70da0e7a4db56a5690c
2025-03-13 15:43:28 -04:00
Zuul
c392b76b37 Merge "Fix password epiration set in xcc3" 2025-03-06 20:19:49 +00:00
Jarrod Johnson
9128758502 Fix password epiration set in xcc3
Change-Id: Ifc534c97963127b60fdb7b153cf22e7f8c0ab401
2025-03-06 15:09:00 -05:00
Jarrod Johnson
c70cc5f6a5 Provide build id values for SMMV3 firmware
Provide an OEM method to get Oem data from firmware into
the normalized form, and use that to hook the SMM
firmware information.

Change-Id: I7028c510afebf103fb6e0aaabdf085de3472eef2
2025-03-04 09:06:13 -05:00
Jarrod Johnson
949cf8ea9b Catch more core firmware oddities in the firmware version fixup for XCC3
Change-Id: I4846444da464e3fdfc7352eb17bb8fe8ee632b63
2025-02-26 15:54:39 -05:00
Jarrod Johnson
dbeb5e0893 Fix SMMv3 model disploy in inventory
Change-Id: I41d6e2f5e37465085ad0d57e042d65bdbdbfd4be
2025-02-26 15:36:52 -05:00
Jarrod Johnson
94693b705e Add FFDC retrieval to SMM3
Change-Id: I59ed0828dc105d3fae2e47f253c3b101da366325
2025-02-25 15:31:39 -05:00
Jarrod Johnson
4bbf63c96b Fix numeric indexs into configuration
Settings may dictate the index, and we must preserve that.

Change-Id: Idd010e81013df26bcddb12f1654f259175e4dd70
1.5.77
2025-02-21 12:23:35 -05:00
Jarrod Johnson
345fd8b44e Handle redfish modeling of some IB adapters
IB adapters may be modeled with 'None' Ethernet elements.

Handle this and also check for InfiniBand instead.

Change-Id: I80b6769b3bb4c5f478cb48b261f5666dfd6a97e0
1.5.76
2025-02-07 15:15:48 -05:00
Jarrod Johnson
2cde74a34f Add XCC3 specific health check
The active events interface is more useful and informative than
generic redfish.

Change-Id: I20af532f32dfde1b596ac8c974ba1089705b5aae
2025-02-07 14:51:51 -05:00
Jarrod Johnson
2a91bb3f80 General fixup for sensor handling
Fixup more sensor scenarios.

Give OEM a mechanism to opt out of generic sensors. If, for example, the
platform is unreasonably slow at servicing the sensors.

Change-Id: Ie8668ac219fc5d90f95dd980ffecd73a09ddd0cd
2025-02-07 11:42:13 -05:00
Jarrod Johnson
d17eef9b2a Suspend use of token for remote media attach
Some implementations forcibly detach on token expiry,
switch to basic authentication to persist remote media mount.

Change-Id: I39231e257156c48a8b4f21ea73aa8fcdcfe879c2
2025-02-07 11:22:10 -05:00
Jarrod Johnson
8666417d61 Add standard NTP handling to redfish
Map the IPMI API to redfish behavior for generic redfish
manipulation.

Also, have the SMM3 handler explicitly indicate that system config
does not apply.

Change-Id: I1bbb16507b6e76bb460217c63d326c8e45155d89
1.5.75
2025-02-04 14:43:58 -05:00
Jarrod Johnson
7482692cdd Attempt to get half-working sysurl if broken
For identify, there are implementations with
partially broken system urls that are not good for general
operation, but are still the only target for identify.

Change-Id: I82f77e667974a57ee857082e6cbc98b78b818ccd
2025-02-04 14:08:03 -05:00
Jarrod Johnson
1bf95406b5 Handle inventory for systemless redfish endpoint
If an endpoint has no system, use chassis for data.

Further, for SMM3, do some fixup on 'Model' versus 'SKU'.

Change-Id: Ibf8d72381057d43f9ad59469078fd4899330c74f
2025-02-04 11:55:16 -05:00
Jarrod Johnson
5bb678229c Prefer generic sensors and handle system-less
When generic sensors are available, use them over the older,
more limited CPU and thermal data.

Also, if an endpoint has no viable system, allow sensors to
dig into chassis anyway, for enclosure type endpoints.

Change-Id: Ifd575797381801c60cff6e4dc2053f4e25002a15
2025-02-04 11:27:34 -05:00
Jarrod Johnson
1a6bfbdbf1 Relocate event log to oem, override for SMMv3
SMMv3 does something a bit peculiar, and to accomodate it,
provide a way for the OEM code to describe additional
log services not attached to the BMC resource.

Change-Id: I01a6ba50ac462840749eeb6b07400b66930beb1d
2025-02-04 09:51:52 -05:00
Jarrod Johnson
ca0b100fbb Add reseat for SMMv3
Add reseat functionality for SMMv3

Change-Id: I0c78ba2fe68a37ece5154601b22d26a09d22cc8b
2025-02-04 09:01:55 -05:00
Jarrod Johnson
8106eed782 Fix coordinate calculation for XCC3 in new DWC chassis
Change-Id: Ic4f9836b50f584d1616a3b2a9e9b9849cf7a5386
2025-01-30 10:04:59 -05:00
Jarrod Johnson
3455d4f03d Implement next gen SMM3 support
The SMM3 for the 2025 generation of DWC represents
a 13U chassis and vertical geometry.

Make provisions to support a redfish endpoint with no
or malfunctioning 'system' for enclosure-only redfish.

Change-Id: I0625e4587da3b76343cf796c45a9e79f240f394c
2025-01-30 08:33:19 -05:00
Jarrod Johnson
2ec3387e5e Fix redfish reset BMC to defaults
Change-Id: Ia9810aa9344fafc10d29bd8dfa8d9572f0084c3c
2025-01-15 08:07:52 -05:00
Jarrod Johnson
63cf0e2185 Handle new variants of USB ethernet configuration in XCC3
XCC3 has renamed some normalized settings, detect
and adjust to the detected dialect.

Change-Id: Ic248c9aac01c19041e44ab116f8c59e41fcda2b3
2025-01-09 13:54:12 -05:00
Jarrod Johnson
7fdf48ec05 Add FFDC support for XCC3
Change-Id: Iabe6117ecac27faea8a6791b5e507dcece1b2d1e
2025-01-09 09:31:56 -05:00
Jarrod Johnson
a1e29baf8b Provide update for backup XCC3 bank
Similar to XCC2, we must get at the underlying uxz file
if we want to steer it.

We also must use the multipart form data to pass json with right
Content-Type, add a mechanism to auto-json a dict to acheive this.

Change-Id: If204d7a05399e39cd43ffd7622559ab10d906b47
2025-01-07 15:52:01 -05:00
Jarrod Johnson
8f94185418 Implement normalized bmc settings for XCC3
Provide a measure of compatibility with previous generations.

Change-Id: I37137c3c61bfa85d1ef259574a2e1831e4e7547b
2024-10-25 17:17:31 -04:00
Zuul
46ce42e081 Merge "Ignore exhaust when looking for inlet" 2024-10-25 15:54:10 +00:00
Jarrod Johnson
7e643ce3b5 Ignore exhaust when looking for inlet
External environment is vague, but 'exhaust' in the name
is a pretty safe disqualifier.

Change-Id: I4395b89d48ea25f72abe6136856401598d8346f7
2024-10-25 11:41:12 -04:00
Jarrod Johnson
b7349965af Fix omitted comma in replace call
Change-Id: I8ba08216aa198cefa2b0f8c95d64d7caa6cc4067
2024-10-16 12:12:48 -04:00
Jarrod Johnson
3f16d45c1e Move normalized CPU and power to OEM
This permits OEM extensions, and use this to provide data for
XCC3 accurately.

Change-Id: I67e31839810ddf6740a99cf118e31287ec7fa2ba
2024-09-27 12:28:10 -04:00
Jarrod Johnson
764524cb33 Fix returning too much data when asked only for names
Change-Id: Ibff814f76695676467ceda36f906ba5ed2f7f1fc
2024-09-27 11:49:51 -04:00
Jarrod Johnson
cb5146c736 Repair session token implicitly on expiration in OEM
If the token is invalidated, retry to get a new token and
attempt to transparently continue.

Change-Id: Ib0d963010a0d464b46cf97f12267909b7caa8dc4
2024-09-13 09:08:57 -04:00
Jarrod Johnson
61f463885f Fix IPMI identify on/off for IMM/XCC systems
Change-Id: I0fff2fe94d194e44f75dd09f73a6a326f127f8c8
2024-09-12 15:37:40 -04:00
Jarrod Johnson
3278c762f9 Add RDOC support for XCC3
Change-Id: Iae47c220a595b2636986cf8dc00b31052d1b0b23
2024-09-12 15:22:26 -04:00
Jarrod Johnson
e09da05a45 Fix issues with OEM retrieval
Also small performance boost to XCC3 retrieval.

Change-Id: I186c2f87f4dbc213b4a56de3b18de5afcf62f08a
2024-09-12 14:19:27 -04:00
Jarrod Johnson
2ee10df146 Attempt generic height information extraction
Change-Id: I751f4bbe00c0aaa9d4dd57e33c1343e883807167
2024-09-12 11:28:17 -04:00
Jarrod Johnson
36c6285715 Add expanded/emulated expanded redfish support
This allows OEM to opt in to expanding a single
request to incur fewer requests.

Change-Id: I417492e68682f66afd992e40fa780e5592000d75
2024-09-12 11:04:18 -04:00
Jarrod Johnson
4dd8b6403b Negotiate a redfish session, if possible
Particularly newer redfish implementations can
be much quicker if the user/password is omitted

Change-Id: Idd964dd6393d91196dce23a75a91c600e9f9d273
2024-09-11 16:52:47 -04:00
Jarrod Johnson
ff04e4fa32 Add blink support to Lenovo "IPMI" support
Hop over to redfish to implement blink support
in the identify LED.

Change-Id: I9f304c3a135b7b00c6e20167940f86f5f375b5ad
2024-09-11 09:12:14 -04:00
Jarrod Johnson
b6776ce2ee Rework get description to enable it to work fer XCC3
Change-Id: I3c1fdb74bd68571e81963037bc339bff8228ccea
1.5.72
2024-09-09 07:44:00 -04:00
Jarrod Johnson
74b2e6da48 Modify build for snap versions
Snapshots need to be treated special by various distributions

Change-Id: I158cb713548920c5a45790bce00c97f2e00a8f32
2024-09-04 12:22:27 -04:00
Zuul
72c90d65e1 Merge "Amend deb package build to avoid extranoeus content" 2024-09-04 14:41:19 +00:00
Jarrod Johnson
6c9a64dd1f Amend deb package build to avoid extranoeus content
Change-Id: I6619e057874ee84d42bac6d35456278ae90f16f2
2024-09-04 10:31:14 -04:00
Jarrod Johnson
9e47a44b93 Use approved method to determine XCC vintage
Use the model on the Manager instance to determine XCC 3 vs. prior generations.

Change-Id: I2c192d6d1842af9a512396769e56a42e1cef14a7
2024-08-30 13:37:15 -04:00