summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/drivers/modules/drac/test_inspect.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove all references to the "cpus" propertyDmitry Tantsur2023-03-281-22/+0
| | | | | | | | Unused by Nova and unlike memory_mb/local_gb also by Ironic (actually, our usage of local_gb is worth double-checking as well, but at the very least it's referenced by inspection implementations). Change-Id: Ie8b0d9f58f4dcd102c183c30ae7f5acf68a5e4c3
* Fix RedfishManagement.get_mac_addresses and related functionsDmitry Tantsur2021-11-091-1/+1
| | | | | | | | | | | RedfishManagement.get_mac_addresses has two problems: * It returns a dict while the base class documents returning a list * The dict's values are Redfish-specific values This change fixes this function to return a list and significantly simplifies the related create_ports_if_not_exists. Change-Id: I329cabe04662d0d668d4c3e04ecede5b4fdec6c6
* Refactor iDRAC OEM extension manager callsAija Jauntēva2021-05-191-27/+0
| | | | | | | | | | | - Re-usable helper created to avoid duplication. - Although there is only one manager for system in known iDRAC systems still iterate through collection for future changes. - Restructured exception raising and error logging for better feedback. - Removed some unit tests to avoid duplication that is covered by method specific unit tests Change-Id: I03fdb48e47c9557c207a20ee876eccf3f3459d9f
* DRAC : idrac-redfish inspect updates pxe portPradip Kadam2021-03-261-0/+162
| | | | | | | | | | | | | | Extends generic Redfish OOB inspection to add setting pxe_enabled on the discovered ports for the idrac hardware type. It retrieves the list of PXE device MAC addresses using an OEM extension to the Redfish API if necessary and updates the pxe_enabled field of Port. Change-Id: Ife8387a3bdb75717b896cf1067d2490084665e49 Story: 2006819 Task: 37380 Co-Authored-By: Mahendra Kamble <mahendra.kamble358@gmail.com> Co-Authored-By: Sonali Borkar <sonaliborkar85@gmail.com>
* More GPU support in idrac-wsman inspect interfaceMudit2021-02-021-2/+52
| | | | | | | | | Enhance idrac wsman inspect interface to report an additional GPU device, namely GV100GL [Tesla V100 PCIe 16GB]. Story: 2008552 Task: 41682 Change-Id: I368180a15bfa7d166d35cef4cdf9741e787046e8
* Add GPU reporting to idrac-wsman inspect interfaceMudit2020-09-301-3/+112
| | | | | | | | | | | This patch implements reporting number of NVIDIA Tesla T4 devices connected to a system by discovering such devices and reporting them through capability 'pci_gpu_devices'. Change-Id: If713895f05f08a9827c4c085108abb3e388b2a2e Story: 2008118 Task: 40839 Depends-On: https://review.opendev.org/#/c/750364/
* Switch to unittest mockIury Gregory Melo Ferreira2020-04-301-1/+2
| | | | | | | Python3 have a standard library for mock in the unittest module, let's drop the mock requirement and switch tests to unittest mock. Change-Id: I4f1b3e25c8adbc24cdda51c73da3b66967f7ef23
* Set boot_mode in node properties during OOB IntrospectionRachit71942019-03-161-3/+8
| | | | | | | | | | During OOB Introspection, it adds boot mode as capability in node properties so that after preparation of overcloud nodes it will show which node has uefi or bios boot mode properties respectively. Change-Id: Iad8060fa13e37a2fa78d998c56d132b11ff948cf Story: 2005119
* Fix OOB introspection to use pxe_enabled flag in idrac driverdigambar2018-12-041-0/+102
| | | | | | | | | | | | | Baremetal nodes fail to pxe boot during OpenStack deployment. Reason of this failure is because we are not checking the actual pxe device interface and updating the port pxe_enabled field. This patch make sure that everytime when port is created, it checks the the BIOS and UEFI boot modes of node and fetch the pxe device interfaces values matching to nic id and then update the port's pxe_enabled field. Change-Id: I2890bf16110b713e269d4a4fe410f57273dc8e83 Story: 2004340
* Fix CPU count returned by introspection in Ironic iDRAC driverdigambar2018-11-021-4/+20
| | | | | | | | | | | | | | If list_cpus in dracclient, it returns below values - [CPU(id='CPU.Socket.1', cores=14, ht__enabled=True), CPU(id='CPU.Socket.2', cores=14, ht_enabled=True)] Each CPU socket has cores with hyperthreading enabled, so if we calculate the cpu per socket, we will get actual cpu count per socket, So objective of this patch to fetch actual CPU's per socket and sum it Story: #2004155 Change-Id: Ia86b0462a3e73af7a2ce0a6439286f7071f74caa
* Remove the remaining fake driversDmitry Tantsur2018-06-181-6/+3
| | | | | | | | | | | | | | | The following drivers are removed here: * fake_ilo * fake_drac * fake_irmc * fake_ucs * fake_cimc * fake_oneview Some clean up can be done in the unit tests, but this is out of scope for this change. Change-Id: Ifce3f9102384e1424d4ab624d32929f5e832206d
* Remove excessive usage of mock_the_extension_manager in unit tests - part 1Dmitry Tantsur2018-05-151-2/+1
| | | | | | | | | | | This function does not work properly with hardware types, and is not needed in the most cases where it is used. The enabled_drivers option is changed instead where needed. This change covers only a (randomly selected) part of files. Other files will be updated separately. Change-Id: Iae40ed6c5d37bb2d2af3219d2f94922a2b32d78d
* Fix nits on DRAC OOB inspection patchImre Farkas2016-09-131-0/+26
| | | | | | This is a follow-up on da93b01f32e1b9d6efe435c16c9996c3cc45823a. Change-Id: I310d8d3e899567d44b42908a26f7f0779775c11b
* DRAC OOB inspectionImre Farkas2016-09-021-0/+235
Implements out-of-band inspection in the DRAC driver using inspection interface. Change-Id: I0d63f31473776551550f917dbc7237564881f566 Closes-bug: #1603454