2
0
mirror of https://opendev.org/x/pyghmi synced 2026-05-17 03:44:24 +00:00
Commit Graph

1129 Commits

Author SHA1 Message Date
Zuul f17b46f986 Merge "Support RS160" 2021-09-10 15:53:58 +00:00
luyf5 ca9810ca3a Support RS160
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/919828c30e8c6540f98363885aeb9b69e01b2092 153295)As an user I want to get the inventory information of RS160
   https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/bec53c4b29f7bade6820d5bc6cba0d2c76e80c7a Fixes problems in previous commit regarding support of RS160
   https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/fa25b97c891e6edef64267c60cc9fb3e23f01079 (60750) [legacy_Server][Kent2U4N] Get a wrong UUID of the Kent
   https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/2856c78477aa4081479ed3b55d229b5a4bd31a2a Refine the code in parse_firmware_info to get the firmware version
   https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/1313280d4035b4417a02b8d82b9a353ff1cfb535 (66249)[legacy_Server]Unreasonable firmware GUI diaplay for RS160
   https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/7ba0bf98698df7132333d87bb52da9b11cf833f6 (63296) PIT - LXCA Unable to manage RS160 (Endpoint inventory collection has failed)
   https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/39a52cb29895b2c4f1655b50a66a51c549a91269 (63715)[discovery_Inventory]Only get Memory information of B1 & B2 slot
   https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/2b52df7542e7b45f64be9a3c33d9a3de92f2d76d (64213)[discovery_Inventory][Riddler_Nov_SDV_LXCA][1.2.1-41]Motherboard LED & LXCA Light Path LED behavior are mismatch when trigger sensor
   https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/fa20ef890cc2119a8038a772daab77dd6cfa04ca (67305)[discovery_inventory]When memory install solt 3 and slot 4,Memory Installed Bay Number display error on LXCA Inventory Details page.

Change-Id: I291ca294ab490ce8f6913def95b2e663d6cefda2
2021-09-09 09:25:53 +08:00
luyf5 9a7cd7cf97 set pci vendorid presence to true
the change is from:
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/dc5176ec0ffbb88743939faa8ee1a51e7a561665 fix the bug 47217 and issue #10

Change-Id: I2a68e1579a4d32bf11a0193e5b6e76292570f053
2021-09-02 13:56:19 +08:00
Zuul 4febfff5b8 Merge "Memory part number length is 20" 2021-09-01 12:24:27 +00:00
Zuul ddabe065b1 Merge "change chunksize from 240 to 224" 2021-09-01 12:20:44 +00:00
Zuul 77e14bc6c4 Merge "check the fruinf again as the oem process may return None" 2021-09-01 12:20:42 +00:00
Zuul d6ff1644c7 Merge "TSMC failed to configure the trap destination" 2021-09-01 12:16:09 +00:00
Zuul 95ecacf9ca Merge "fix remote console function for thinkserver" 2021-09-01 12:16:08 +00:00
Zuul 593c5f589e Merge "Bug 100958 - Israel Land Authority - LXCA reporting x3650 M4 false warning" 2021-09-01 12:13:19 +00:00
luyf5 accc24cdd4 change chunksize from 240 to 224
change is from fru.py in below gitlab commit.
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/d09e23fea99664859bf00f3eae80d8720992d68c#dade58c051d057633b161944993db070adc93aa0 collection of M4 and Kent support - 12032015

Change-Id: Idd2197edf49f3ca3df56d21b2082db6f4dd8aa1b
2021-09-01 17:08:13 +08:00
luyf5 f61ffcac04 check the fruinf again as the oem process may return None
the change is from
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/d09e23fea99664859bf00f3eae80d8720992d68c#dade58c051d057633b161944993db070adc93aa0
collection of M4 and Kent support - 12032015

Change-Id: I2546634397ebf705d125be5ff88024533a3196ba
2021-09-01 17:00:12 +08:00
luyf5 bf2c3698c6 Memory part number length is 20
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/30e9f5dc34fcf4f2965b9d79bf9ac70ae17828e0 (163201) [ipmi] [PA_Agile_SDV_Sprint17_LXCA 2.4.0-61_Reno_red]MEM part number in LXCA and in IMM web are mismatched.
Change-Id: Ie184f2fd7e9d0c3fcec74c62a475bf16eb1c056f
2021-09-01 15:46:29 +08:00
luyf5 0b7149c11b fix remote console function for thinkserver
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/6f9e457b5b5767ff51ed93d90d45974a0b8e6087 Fix remote console function for thinkserver

Adds conn.cookies = {} to erase the cookies stored by the webclient.
We do not want to use it's cookies management mechanism, since it will
erase an authentication cookie we need to pass in a following request.

Change-Id: I26e3599caff5c6159ec798b62e972747f0a4109f
2021-09-01 15:34:43 +08:00
luyf5 5c4daa5541 TSMC failed to configure the trap destination
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/2fddbb49fca2b24a7fbc5a3a715f7c5e7121074e (101993) [trap_register] TSMC failed to configure the trap destination on sd350

Configure the destination type to PET trap first, in case the type is email.
In the case of email, TMM will reject to accept the ip as the destination.

Change-Id: Id581bd8204489de1d88d0bc21b74c71e8ed68de2
2021-09-01 15:27:47 +08:00
luyf5 c68c56f9d0 Bug 100958 - Israel Land Authority - LXCA reporting x3650 M4 false warning
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/ad17f492cc69a83e769fc11ea44ac38bb87c4115 (100958) [pyghmi] Bug 100958 - Israel Land Authority - LXCA reporting x3650 M4 false warning "The Cooling Device sensor for Fan Zone 2 reported 658179 status with severity of WARNING"

Change the sdr decoding to add the assertion event mask.

Change-Id: I0ecbd90275acd2dfa79bcb8a113ad610e9dcd3d7
2021-09-01 14:40:00 +08:00
Jarrod Johnson 2f1fc1e0d9 Discard disused webclient
In some environments, this was keeping a stale file
descriptor alive.

Change-Id: Iad94c9dc6a7bb46dce6d7597e1639e127363c5b9
2021-08-31 15:48:01 -04:00
Zuul 9d548ce378 Merge "add PSU Redundancy sensor type" 2021-08-31 12:01:34 +00:00
Zuul 0b8a25d585 Merge "Edit FRU parser to get board Id" 2021-08-31 12:01:33 +00:00
Zuul 79d63c218a Merge "Fix raid drive parameter" 2021-08-31 12:01:31 +00:00
Zuul 3310389448 Merge "Accept utf8 strings in FRU data" 2021-08-31 11:57:53 +00:00
Zuul 2a98eb74c9 Merge "Fix typo in param description" 2021-08-31 11:54:03 +00:00
Zuul 8bb1dbe023 Merge "fru: add chassis type 0: Unspecified" 2021-08-31 11:53:12 +00:00
Zuul 9bcb355759 Merge "Use weak reference to return a proxy of object for gc" 2021-08-31 11:51:36 +00:00
Zuul 1f9b9a60de Merge "visualize version numbers according to format x.x.x" 2021-08-31 11:50:09 +00:00
Zuul af547fe953 Merge "Fix expired weakref reference exception" 2021-08-31 11:41:26 +00:00
Zuul ae4decba2a Merge "Allow Confluent to create users with KVM bit" 2021-08-31 11:40:59 +00:00
luyf5 0ef75a0e21 Use weak reference to return a proxy of object for gc
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/a64eb41ecdb72270d5db26a5ef6c850ee79cab10 (75175)[legacy_Servers]Electrolux - M4/M5 Nodes appear offline
use weak reference to return a proxy of object for garbage collection

Change-Id: I89ea4f06c5b163e576491e74a5c62b66eb6fcc7a
2021-08-31 17:45:41 +08:00
luyf5 3163281c01 add PSU Redundancy sensor type
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/176f890d4c0efeabc9bc9c5a9f2a6a24f7f98608 (70395)[pyghmi]add psu redundanch sensor type
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/a65ff374914fe3f94410fa49cfe9f7528dbabcab (70395)[pyghmi]add PSU Redundancy sensor type and change PSU Redundancy mode event data
Change-Id: Id81e0a62f2ae4233ee6d7bc2b549c77ba62782c8
2021-08-31 17:18:17 +08:00
luyf5 4f9c415bc0 Edit FRU parser to get board Id
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/618e32b5f20fd0b3cb223a6800bae977d9c1ee6d Edit FRU parser to get board Id
Change-Id: If9d969cd21e1d6b5092cea8301af6e4ae1b1c626
2021-08-31 17:08:34 +08:00
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
luyf5 f8b77da3d4 Accept utf8 strings in FRU data
https: //gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/09b93e84ba2093ccbd2f7536832cbcf8c15a6abc Accept utf-8 strings in FRU data Some ThinkServers have FRU elements that can return unicode strings. This patch adds support for this data.
Change-Id: If64cee6d132272ef1756dfcbdd1e056fafd2a3c2
2021-08-31 13:57:20 +08:00
luyf5 0e2d21e0ce visualize version numbers according to format x.x.x
https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/2ea6994c95f15c5495024e6cda273600dc6b9399 Implement a way to get BIOS number versions in ThinkServers Currently the BIOS version for thinkservers is displaying a string with numbers and letters. This patch changes this situation, allowing to visualize version numbers according to format x.x.x 23.

https://gitlab.icelab.lenovo.com/pygcon/pyghmi/commit/55d158335daf023233c1be5f7581ea95d5c3a392 Fix Bug 50355 - PIT LXCA - Unable to manage Kent successfully (edit)

Change-Id: I074acd578b95bdbe1b0458f50b53294b5d91b76c
2021-08-31 13:33:24 +08:00
luyf5 d3f0046839 Allow Confluent to create users with KVM bit
Fixes a bug when Confluent creates the IPMI user - it was not setting
the KVM bit and the created users do not have permission to launch the
console.

Change-Id: I324cffecb5b973eafa31c108db9d89caa93100a0
2021-08-31 10:26:49 +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
Jarrod Johnson 6d56f21772 Fix expired weakref reference exception
there is a global cache in sdr.py. Sensors and FRUs are cached here. So if ipmicmd is reinitialized, Sensors in cache still ref to old ipmicmd, then it will throw expired weakref reference exception when call these cached Sensors. Current changes will still cache Sensors and FRUs, but when call cached sensors every time, we pass in current using ipmicmd.

Change-Id: I976760d8cb0a7f78a4f6468c52212649790dbbc2
2021-08-30 13:47:52 +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
Riccardo Pittau 79d4d32aba Fix typo in param description
Change-Id: I622ee817e178e3cdce6409ee3ef3aa48e51d1c3b
2021-07-08 11:47:52 +02: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