2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-01 15:53:32 +00:00
Commit Graph

1094 Commits

Author SHA1 Message Date
luyf5
61613f08fb Fix raid drive parameter
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/f107bd2795159aef13d4024c17f15179935f4263 (64105) Fix raid drive parameter
Change-Id: Iabe4eff03251a2c2540e9523a4cb1310bb5440b6
2021-08-31 16:42:25 +08:00
Zuul
30ab021853 Merge "Incomplete memory data for blue Draco" 2021-08-30 12:11:33 +00:00
luyf5
6b46d667ee Incomplete memory data for blue Draco
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/a2376085c3116d180fda44e49cf27b414d991535 fix bug 47636 Incomplete memory data for blue Draco
Change-Id: I010c4526f0e6c4ff9b074d2b14425e8cbd0dab73
2021-08-30 16:27:25 +08:00
luyf5
9c32fb7ace IMMv1 "Unable To Process Request" message
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/a6a4e1968e2b1df660947910e95e33450a520a36 (174389) [pyghmi] SAP Customer - IMMv1 "Unable To Process Request" message.
Change-Id: Ib7b40c6bb95b7b873f68f694ce6a5e92162c4137
2021-08-30 15:56:28 +08:00
Zuul
e9a1ed6710 Merge "Compatible with python3" 2021-08-27 12:20:39 +00:00
Jarrod Johnson
b8cb131a13 Compatible with python3
In test, we found these codes can't be compatible with python3, so change them for supporting both python2.7 and python3.

Change-Id: Id4b2b4ed6b41f9b9cb8569771f4ab587d5fba0f1
2021-08-27 18:32:57 +08:00
Jarrod Johnson
611b8f3a21 Honor access=readonly for Lenovo config
This will more properly alert user that
a setting cannot be manipulated.

Change-Id: Ied336b64512462cdf1cabd842091a544ba203cc9
2021-08-12 11:25:14 -04:00
Vlad Spoiala
1cd47f71b2 Configure default initialization when creating a volume.
When a volume is created the default initialization method can now
be configured.

Change-Id: I6d87c7b5847a2c24858d97928b19bc3a3532eaec
1.5.29
2021-07-16 10:57:46 +03:00
Jarrod Johnson
982ef53f86 Fix redfish firmware update without progress
The caller opting not to have a callback is no longer a problem
for redfish updates.

Change-Id: I10378bb1d0491e1f446569eb443fa3023b4d2af4
2021-07-08 10:14:57 -04:00
Jarrod Johnson
73dfd3c62b Provide access to read redfish location info
The chassis info around location is now made available for
both reading and writing.

Change-Id: I69220acb88edb3cff1074357976c0e5ca01cbab8
2021-06-30 08:36:15 -04:00
Zuul
2577643af0 Merge "Remove nulls and FFs if present" 2021-06-28 21:27:00 +00:00
Jarrod Johnson
01e9c27b3c Adapt the generic redfish virtual media call
Some vendors require the 'Inserted' attribute, others
can't support it at all, try both variants.

Change-Id: Ia8f0480a346cde24c5df99d63f90eba2093c6cfb
2021-06-28 16:02:41 -04:00
Jarrod Johnson
bdc5c0c0c1 Remove nulls and FFs if present
These are binary characters that can work their way into the
normal path.

Change-Id: I2e3f41f8a78e170e4f84f920138e4548290a8dab
2021-06-28 16:01:27 -04:00
Jarrod Johnson
fa21c4ad61 Add location data to redfish module
Redfish has a richer model for standardized location information.
Create a function to expose this.

Change-Id: I1460ee250f163b4d5a2be18147f8f4cd3e3d6a16
2021-06-22 11:23:09 -04:00
Jarrod Johnson
167e256fa0 Tolerate more standard variations
There are more variations on key parameters, tolerate the
distinct responses consistent with existing replies of
similar purpose.

Change-Id: I22c3ecf7b78213cc9b0c1b8c88deb91251c1facd
2021-06-16 08:47:53 -04:00
Jarrod Johnson
213e5f64d8 Fix PSU fan count for 9-PSU chasssis
Only 6 out of the 9 fans were previously
reported, use the get_psu_count function
to accurately get the number of PSUs
in chassis.

Change-Id: I3e227b67f928b9a2c0d82ce119a143ad0d38b040
1.5.28
2021-06-08 09:33:45 -04:00
Jarrod Johnson
1f1a2cac16 Some firmware presents GiB instead of GB
Understand GiB and GB as the same.

Change-Id: I64121e026010dfd65785fe1ff43276d0f1f49c5b
2021-06-07 16:42:16 -04:00
Zuul
d40d017dc2 Merge "Fix SMM build id" 1.5.27 2021-06-02 20:43:27 +00:00
Jarrod Johnson
93447dbe2b Fix SMM build id
Newer platform extends the 0xa8 response.  Do not assume right
indexed access to responses anymore.

Change-Id: I400fd3bc3da1a7aa9f1d96f7a774a17027ac098c
2021-06-02 14:48:43 -04:00
Jarrod Johnson
047f454dec Correct mispelling in error message
Change-Id: Ia6c2d9a4a5e8401d7c2eb64c685dccbbf1794b78
2021-06-02 14:29:52 -04:00
Jarrod Johnson
614b326532 Update to new form of get gpio command
A firmware update changes the reply and has us lose
track of a water cooled chassis.  Support either form of
the reply that may be water cooled.

Change-Id: I94e0b411b1d93caa07387339c2a0655f52621daa
2021-06-02 12:10:35 -04:00
Jarrod Johnson
6e2bdb2d7d Improve generic non-support message
Provide a more informative error message.

Change-Id: I397db4097014537f5b7696d095f3102849234885
2021-05-29 09:49:07 -04:00
Jarrod Johnson
106ea100f5 Fix TSMA error on media upload attempt
Change-Id: I0abea9362e26c3c3b3cb9728ad82138ae538ed3f
1.5.26
2021-05-27 15:49:38 -04:00
Jarrod Johnson
2fb16a444b Apply new PSU configuration to non-FPC variants
FPC had a different command, but for all the newer
variants, also apply the SMM vocabulary for
modifying configuration.

Change-Id: I167de6f1953391d494c2e0c6b4d4d6b9447f0af5
2021-04-20 13:21:55 -04:00
Jarrod Johnson
2ab748f4ce Improve dense PSU support
Add inventory for SMM managed PSUs

Further, support sensors for the
9-PSU variants

Change-Id: I17d4058926884925f3f19557982e87ffcf397946
2021-04-20 11:12:52 -04:00
Zuul
bd7d95ca1d Merge "Fix SOL behavior after print_error" 2021-04-16 21:22:59 +00:00
Jarrod Johnson
ffced06e32 Fix SOL behavior after print_error
print_error deletes reference to
ipmi_session. Be ready to handle
by checking ipmi_session before
use.

Change-Id: Ife5e8b71c4944422c57d7a11c130c4488b214bbc
2021-04-16 15:58:34 -04:00
Jarrod Johnson
96b58359eb Do not error on None callback
A keepalive is not required to provide a callback.

Change-Id: Id7b277f60097e0d825b307b15d39b64f2b3447da
2021-04-16 15:41:25 -04:00
Jarrod Johnson
de1f5f6c60 Fix user enablement on SMM on python3
Normalize to str to have format available
in python 3 environments

Change-Id: I09f12d974a77ddf2526da9e6f276402de0cc5b8d
2021-04-16 11:26:56 -04:00
Jarrod Johnson
19931598a2 Remove null bytes within a string
Null bytes have been observed within strings, remove them to
avoid the binary data in the output.

Change-Id: I651038c45ec346e66b4026c28c72499af8f378df
2021-04-14 08:33:32 -04:00
Jarrod Johnson
b4fd80d530 Support SMMv2 variant of VPD
The SMMv2 changed the
get VPD command to
echo back the reply bytes.

For SMMv2, discard the first
two bytes of the reply.

Change-Id: I31a3c5442cfe15bf44201b5eae594485ac0a3a90
2021-04-12 17:19:42 -04:00
Zuul
8d5213d243 Merge "Add Drip Sensor to water cooled SMMv2" 2021-04-12 19:19:15 +00:00
Zuul
a790fa1446 Merge "Do not use openstackdocstheme" 2021-04-12 18:06:22 +00:00
Jarrod Johnson
ae0e51d4fc Add Drip Sensor to water cooled SMMv2
The water cooled SMM has a special mechanism to
get drip status, implement it.

Change-Id: I1b1dc8a7a5e3a09bfc89b3d1fd1aec9a8dd32ed6
2021-04-12 13:51:20 -04:00
Riccardo Pittau
d390c808ee Use most recent python tests
Align unit tests with xena openstack tests

Change-Id: I624bb1582cf0b7c75a2142ca78c1be8a7f56f1d2
2021-04-07 18:13:00 +02:00
Jarrod Johnson
78ec0388b2 Reduce average memory of XCC Uefi configuration
The fwo object is fairly large and worth disposing of
when stale, to recover the used memory.

Change-Id: Ic8c003087f61dfd5005b1e73118e6a88209d4097
2021-04-06 09:30:07 -04:00
Jarrod Johnson
0e038cfa12 Remove 2.7 from test
It seems to be not well supported in the test pipeline anywhere.

Change-Id: I931dfdb80bdf348e785b62cce26d7ad5e54e9372
2021-04-05 16:56:16 -04:00
Zuul
5e123f677f Merge "Tolerate spec deviations" 2021-03-26 22:23:33 +00:00
Jarrod Johnson
deb2c6af47 Tolerate spec deviations
There are some popular Redfish implementations
that violate the standard. More gracefully
tolerate the violations.

Change-Id: I52d1bb21a812c8c721a6ee0888dd92b80944fd65
2021-03-26 16:47:30 -04:00
Jarrod Johnson
5494bf50e3 Fix relog attempt
While it would manage to send the first packet of a
relog, it would then go on to report the transient
error.

Change-Id: I9eb39290ffd259fe56c5d923a7ee9ed229f9f6e1
2021-03-26 16:42:27 -04:00
Jarrod Johnson
b4bc1c7245 Fix redfish FFDC name save with autosuffix
Use the code from the IPMI oem enhancer to
be consistent.

Change-Id: I81316bb65e20657e2c48cdec2dc44dc2b890f7ba
2021-03-24 15:27:23 -04:00
Zuul
e498364577 Merge "Fix SMMv2 ffdc download" 1.5.25 2021-03-23 18:33:52 +00:00
Jarrod Johnson
7448c5b256 Fix SMMv2 ffdc download
Change-Id: I6ed9eca50a82d989dcbd679d451dd13ce7833c99
2021-03-23 12:58:54 -04:00
Jarrod Johnson
f0b6160c99 Accept . for _ in redfish names
Prior to ODATA limitations, . was a common delimiter.
If a setting is a good match if substituting . instead
of _, go ahead and consider it a match.

Change-Id: I5da06464f34a1d0d7f4869312ef1c48fe2f858cc
2021-03-23 11:50:09 -04:00
Jarrod Johnson
ce333b3bfc Fix DHCP config logic on static input
Have static address and gateway both clarify
so that the DHCP logic does not get confused.

Change-Id: If1fa41e27c34694fc47d6a805c72ef6922ab38f4
2021-03-23 07:57:23 -04:00
Jarrod Johnson
f42d75ea9d Show LXPM bundle information for TSM
When used as IPMI oem handler, extend the
LXPM info since that is available through
IPMI at least.

Change-Id: Ib3b52b31040ab35c2766f2bbedcc540ae1be0768
1.5.24
2021-03-12 14:23:04 -05:00
Jarrod Johnson
24b3d61a40 Fix TSM LXPM handling
For one, check only basename for
filename conventions.

Secondly, recoginze fw_drv
files as being LXPM class.

Change-Id: I829e4fe0bf1c1eea2d7ec96c5e4aae9a64010a35
2021-03-12 10:45:12 -05:00
Jarrod Johnson
acf837e5ac Fix plain rom update of nextscale
When zipfile checks for zip signatures, it
does not guarantee seek position at end.

Seek to the beginning explicitly after zipfile
is done.

Change-Id: I13d053576ba12ae7cd668d96179c9f435d0fa751
2021-03-05 11:32:26 -05:00
Jarrod Johnson
86845c4e2b Add reseat to redfish command for XCC
This will allow XCC users doing redfish to reseat
using the HTTPS api.

Change-Id: Ib0582f4aafb20cd94972f2080df673fbd3abbab3
2021-03-03 15:23:25 -05:00
Jarrod Johnson
944a239205 Implement support for remote reseat
The v2 generation of Lenovo servers supports remote reseat
for rackmount servers. Expose this as reseating bay '-1'.

Change-Id: Ie6135c030cd5f56970ea9f968f5f5fda8e053341
2021-03-03 13:23:29 -05:00