Commit Graph

32 Commits

Author SHA1 Message Date
kesper 0d9b4ac662 Adds support for one button secure erase
This commit will add support for one button secure erase for iLO5
server.

Change-Id: I71203fa0c500c45d7bc7729c6ad418c11695f1f5
2020-08-06 07:16:36 +00:00
Zuul c57437dc85 Merge "Redfish: Adds APIs to support boot from http url" 2020-07-30 05:23:36 +00:00
vmud213 bf33b36e3a Redfish: Adds APIs to support boot from http url
Adds APIs to set and get http url from which the server is configured to
boot from.

Change-Id: Idcb49d1a55e29fc54c91dd054a0b80593a703b3e
2020-07-19 06:59:34 +00:00
Riccardo Pittau 6e03a55374 Enable check import order
Enable pep8 import order Using flake8-import-order.

Change-Id: I89e192d9c756156b4e86cbbf2399b9b23fb5edd5
2020-07-06 15:20:12 +02:00
Riccardo Pittau 64540ba316 Bump hacking to 3.0.0
The new version enables a lot of standard flake8 checks, so a few
fixes are required. W503 is disabled as it conflicts with W504
and the latter seems to be preferred nowadays.
Also excluding C901 and E731 that should be fixed in different
patches as they require code changes.

Change-Id: I8decccc4925f86e0b979b47e2920d6a782d991d7
2020-03-31 09:45:01 +02:00
kesper bdb14f3419 Follow-up patch for UEFI iSCSI boot nic adapter fix
This commit addresses comments on UEFI iSCSI boot patch
for multiple nic adapter support.

Change-Id: I626bb5db7d496a68c622fdd6ab6c2fa3ecff07fc
2019-08-29 08:30:41 +00:00
paresh-sao 94d4e1c372 Fixed problem with UEFI iSCSI boot for adapters
This commit fixes problem with multiple nic adapter
by adding mac as an optional parameter to pass macs in
such cases.

Change-Id: Iea420d7a047c8ac849fa2eeab5c6892be2d7a6e1
Bug-Id: 1838730
2019-08-23 06:42:45 +00:00
paresh-sao 5b6fc3d7d0 Adds support to get disk types
This commit adds support for getting all the disk types
available in the server. Also its a follow-up patch for
out-of-band disk erase.

Change-Id: Ib5c30efbe48b20120757f763e20305b295e0c270
2019-08-06 06:58:41 +00:00
paresh-sao 1ac8cdd4c4 OOB disk-erase for ilo5 based Proliant Servers
This commit adds support for out-of-band sanitize disk
erase on ilo5 based Proliant Servers.

Change-Id: Ie23b85fc59a2ca3a07074201f099e1018ebee8b3
2019-07-25 12:07:04 +00:00
Debayan Ray efbb63d1af Use Sushy caching decorators
Sushy's caching utility decorators are used now and as a
side effect lot of handcrafted caching code has been reduced.

Also version of Sushy dependency is set to >=1.7.0

Change-Id: I608478f72d4e49f562f4ef9edfdfce057631f39d
2018-11-27 10:54:14 +00:00
Anshul Jain 72ba876a58 Redfish: Adds 'read_raid_configuration' API to get current raid config
This commit adds functionality to verify the success of raid create
or delete operation and gets the current raid configuration on
SmartStorageConfig redfish based iLO.

Co-Authored-By: Paresh Sao <paresh.sao@hpe.com>
Change-Id: I9f546e8ef87229f442dc3855042cbe3ac3a198f8
2018-08-27 09:02:39 +00:00
Anshul Jain 8bda342451 Redfish: Adds `create_raid_configuration` API to create raid.
This commit adds functionality to create logical drives in a
SmartStorageConfig redfish systems.

Co-Authored-By: Paresh Sao <paresh.sao@hpe.com>
Change-Id: I679deac7e6b15d7a0de980fb16c9e283780fca80
Closes-Bug: 1716329
2018-07-23 11:21:28 +00:00
Anshul Jain 2cf3a473c9 Redfish: Adds 'delete_raid_configuration' API to clear raid
The commit adds functionality to delete logical drives in a
SmartStorageConfig redfish systems.

Co-Authored-By: Paresh Sao <paresh.sao@hpe.com>
Change-Id: Id3a07ab0ca1c0ad8199a28ef2efb22aadc5edfd5
2018-07-18 08:38:48 +00:00
Shivanand Tendulker ffe1e61cf2 Add support for retrieving system POST state
This commit adds support for retrieving system POST state for Gen9 and
Gen10 servers.

Note: These is no RIBCL interface to retrieve system POST state.

Change-Id: Ib8d99a9fa3ece9baa17b5bb37d2f87917750350e
Partial-Bug: #1762311
2018-07-13 09:58:15 +00:00
Debayan Ray b913e0f5b2 Changes to support Sushy 1.3.0
The new Sushy 1.3.0 library has some changes for which proliantutils
needs changes to support the existing functionalities which it serves
using Sushy library. This commit takes care of those changes. It also
removes the version dependency of Sushy from proliantutils
requirements and hence the latest Sushy release gets picked up.

Change-Id: I1088d1b357bfe5c7cd76185bc4da484471ac3f6c
2018-01-19 04:47:58 -05:00
paresh-sao cb362a6ce1 Redfish: Changed 'update_persistent_boot' to set 'UefiTarget' boot device.
Also removed 'mac' from 'set_one_time_boot'

Adds modification in 'update_persistent_boot' to set 'UefiTarget'
as boot device, without using 'mac'. Also removed 'mac' from
'set_one_time_boot' and 'update_persistent_boot'

Change-Id: If47f68d25d2e3a3a1b58606c415c53b108e90cc1
2018-01-10 09:49:08 +00:00
Nisha Agarwal 88294f20cf Redfish: Add local_gb attribute to get_essential_properties
This commit adds the local_gb attribute to the
get_essential_properties() method.
It also adds the utility function max_safe() which
doesn't raise ValueError exception if max() fail with that
exception.

Change-Id: Ie1543e9f5653a025b484726ce278500ee8fdb261
2017-08-03 10:04:21 -07:00
Nisha Agarwal f901f22145 Redfish: Adds memory attributes to server capabilities
This commit adds nvdimm_n, logical_nvdimm_n,
persistent_memory attributes

Change-Id: Ib7af8796055dbd2d4b79b35fa96ff3e2e0159932
Co-Authored-By: Paresh Sao <paresh.h.sao@gmail.com>
2017-08-03 05:41:45 +00:00
Nisha Agarwal 4ee1f19368 Redfish: Adds SimpleStorage URI for local_gb discovery
Change-Id: I51be5006c5eaec2b233568db4bd13ae8fdfe13bd
2017-08-01 07:09:11 +00:00
Nisha Agarwal 196108acc1 Redfish: Add the Storage and its related URIs for local_gb discovery
Change-Id: Ie963c439cdb40681f819c418a529b3a1d785a67b
2017-08-01 07:05:42 +00:00
Nisha Agarwal ede50237fd Redfish: Adds SmartStorage and its related URIs for local_gb discovery
Change-Id: Iff415e0ed83c546469d70e25318d48c361c765a8
2017-07-27 05:35:21 -07:00
Nisha Agarwal 7a01a4fd98 Redfish: Adds macs discovery
This patch adds EthernetInterfaces subresource.
It returns the data in the form of a dictionary as
{'Port 1': 'aa:bb:cc:dd:ee:ff'}

Change-Id: I123bdc4aae68bbbdf9b637746aa4d7f109d12b03
2017-07-26 23:32:12 -07:00
Aparna a1ac87394c Redfish: Adds support for boot mode capabilities
This commit adds the following server capabilities
    1) boot_mode_uefi
    2) boot_mode_bios

Change-Id: Id06803f01d5746137d9edf6dc100b5594c511445
2017-07-26 09:13:24 +00:00
ankit df11e21349 Redfish: Adds server capabilities
This commit adds the following server capabilities
   1)ilo_firmware_version
   2)rom_firmware_version
   3)server_model

Change-Id: Ia6ab3937af33cc6789b95603d09ce088f30ceb25
2017-07-20 10:46:46 +00:00
vmud213 ff36d7d7d5 Redfish: Add secure boot API support
This commit adds secure boot support via redfish APIs.
Following methods are introduced on redfish ops:

    1) get_secure_boot_mode
    2) set_secure_boot_mode
    3) clear_secure_boot_keys
    4) reset_secure_boot_keys

Co-Authored-By: Debayan Ray <debayan.ray@gmail.com>
Partial-Bug: 1691955

Change-Id: I60384a1e8093a2e926fc4341e89b559218d10d4f
2017-07-20 15:21:09 +05:30
Nisha Agarwal ca5a0c973e Redfish: Add the get_server_capabilities() and pci_gpu_device attribute
This patch adds the routine get_server_capabilities()
and one of the capability 'pci_gpu_devices' which gives
the count of gpu devices.

Change-Id: Iff38aa201b7a1658723d926292707e163c22c34d
2017-07-19 08:15:25 +00:00
kesper f7d5dedc56 Redfish: Follow-up patch for update persistent device
This commits modify 'update_persistent_device' by adding new
function for getting boot string for uefi target.

Change-Id: Iffbd42c1f52e9afd7339deb2f6cd2f9888a01038
2017-07-18 07:57:59 +00:00
kesper 289de798cc Redfish: Adding the ability to set boot mode and devices
This commits adds new function 'set_pending_boot_mode',
'update_persistent_boot' and 'set_one_time_boot' to
the server

Change-Id: I7609eac74143f4b529b011ed1cbab96b578770b8
2017-07-14 05:15:15 +00:00
kesper 09d869326a Redfish: Adding the ability to get current boot mode
This commit adds new function 'get_current_boot_mode' to get
current boot mode for server.

Change-Id: I85c1376457698bda81120b74f54e08e5236c9974
2017-07-07 09:43:44 +00:00
kesper c7c07642e3 Redfish: Adding the ability to get pending boot mode
This commit adds new function 'get_pending_boot_mode' to
get pending boot mode for server.
Change-Id: If4f2b5ef9fff1c25b233621004c1a4efa2dd0f64
2017-07-06 13:12:07 +00:00
Debayan Ray e2f1bb4167 Redfish: Add system push power button operations
This patch adds system power operations in proliantutils via
redfish way. These 2 methods are introduced on redfish ops:

    1) press_pwr_btn
    2) hold_pwr_btn

Change-Id: Ie6281b9ad608e50fc274a8e1b32d539b6a174e5d
Partial-Bug: 1691955
2017-06-09 07:28:07 -04:00
vmud213 3ff2a0582f Add HPE extensions support to redfish connection lib
This commit adds support to have HPE root and system
resource extensions to redfish connection library.

Partial-Bug: #1691955
Change-Id: I65bf78d6471a5246465e0a6b226844748888ca73
2017-06-08 12:28:57 +05:30