Commit Graph

90 Commits

Author SHA1 Message Date
Nisha Agarwal 5839129389 Adds a retry workaround for power ON failure
Closes: 2021995
Change-Id: Id98474c334840ecc86371aa6b6395f7b4d6b1714
2023-09-06 11:36:15 +00:00
Nisha Agarwal 43570962b3 Fix the method create_csr
Change-Id: I89c930b2c4f7363821441b17ff29755b559061db
2022-03-29 17:41:54 +00:00
ankit 084b0acb8b Making changes to csr and https certificate
This commit will support creation of https certificate.

Change-Id: I58989351b24f7cc2520caff5351ab8a6e553554c
2022-02-18 11:12:24 +00:00
paresh-sao 792cd4185b Fix virtual media insertion of invalid url
This patch fixes 'insert_virutal_media' api to through an error
when the url given is either invalid or unreachable.

Closes-Bug: 1958976
Change-Id: I1d49086e214fe86a5bf5bc3986e7e886ee28ff30
2022-02-16 01:21:55 +00:00
Riccardo Pittau 682eb63985 Update testing to yoga
Update jobs and requirements to yoga
Also fix tests where needed

Change-Id: I5dbf28d0ac77d81cc8f79496777aa15be3c52dd0
2021-12-03 08:58:54 +01:00
Dmitry Tantsur 500f518d40 Update for sushy 4.0.0
* Mappings used to be an implementation detail, and now they're gone.
  The CPU architecture handling was wrong anyway, copy it from Redfish.
* Update some tests to rely on Sushy constants rather than their copies.
* Mock sleep() in tests that can take a lot of time to finish.

Change-Id: I681c829a806fdf2c69ad0af8bbba1b527bffb926
2021-11-30 10:54:25 +01:00
Zuul abc6432029 Merge "Adding changes for HTTPS Cert" 2021-07-29 05:14:47 +00:00
vmud213 06b4eed744 Add support to exclude finger prints of certs
Currently while removing the CA certificates from the iLO, when certificate
file list is empty, all the CA certificates from the iLO are removed. In some
cases certain certificates are required to be retained on the iLO. This
patch fixes the issue by accepting the list of certificates to be retained on
the iLO.

Change-Id: I4898361527e5785e181cffaf294557db0078c93d
2021-07-14 15:23:45 +00:00
ankit 79c2384a54 Adding changes for HTTPS Cert
This commit adds support for generating Certificate
Signing Request and importing Signed Certificates to iLO5.

Change-Id: I116e685d4f1e190679c2faa8fa296202f2433759
2021-06-23 12:32:25 +00:00
Zuul 2be2d0e18d Merge "Adds changes for security_dasboard clean_step" 2021-03-05 10:48:00 +00:00
Nisha Agarwal 03e0d7a3c4 Adds changes for security_dasboard clean_step
Adding changes for below security params
* Password_Complexity
* RequiredLoginForiLORBSU
* RequireHostAuthentication
* MinPasswordLength
* IPMI/DCMI_Over_LAN
* Authentication_failure_Logging
* Secure_Boot

Change-Id: Iac423c409ebec86f65af4b93bbcea161a7bb60af
2021-03-05 09:58:37 +00:00
Nisha Agarwal 8729133641 Adds more gpu capabilities
Change-Id: I1772f794370d4fb2291473f07ee75b9c975c4530
2021-03-04 09:37:32 +00:00
vmud213 43ad8ae6dd Support to clear certificates when no certificates
Adds support to clear certificates when no certificates are provided. In
this case the certificates that currently exist on the ilo are removed.

Change-Id: I351554a0c65d60b63fb7bf57ed1a6bae89f2d71c
2020-11-10 09:12:22 +00:00
Zuul 9a29e32bb2 Merge "[Redfish] Enhance removing TLS certificates" 2020-08-27 16:00:33 +00:00
vmud213 92b9d4ac1b [Redfish] Enhance removing TLS certificates
Enhances the TLS certificate removal logic so that it now accepts
the list of TLS certificate files instead of fingerprints. Also
enhances the logic of exporting TLS certificates if multiple
certificates are present in a single file.

Change-Id: Ida1f13c27cea1134a38f5f8465398c63272494fb
2020-08-27 09:19:59 +00:00
Zuul 9734712019 Merge "Add security dashboard attributes" 2020-08-27 08:20:20 +00:00
Nisha Agarwal 699dfb0041 Add security dashboard attributes
Change-Id: Ic89c56e178b478a0c653b76a588c10aef037f318
2020-08-26 14:32:04 +00:00
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
vmud213 af96983b3d [Redfish] Provides APIs to add/remove TLS certificate
Change-Id: I25c827b5dbd443c2827c0faeb9c92c06e7f778f7
2020-07-30 08:20:27 +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
Zuul 28291c6647 Merge "Enable session based authentication used by sushy" 2019-08-30 05:38:54 +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
vmud213 48e58fd50c Enable session based authentication used by sushy
This commit delegates the session handling to sushy. Earlier
proliantutils was useing Basic authentication even as Sushy was using
session based authentication owing to the limitation on the
number of sessions being created on the iLO redfish systems. Currently
the session creation is delegated to sushy and relies on authentication
mechanism used by it.

Change-Id: Ib150e2662ac664b635c9395096cdecff75bd4ea1
2019-08-23 03:45:58 +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
ankit 689accce86 Adding changes to support sushy virtual media
This commit adds support to use sushy virtual media
and if it fails then fall back to protiantutils
virtual media.

Change-Id: Iff07050e6e1929fb1b6a29379d208e22f82ea641
2019-03-01 04:44:41 +00:00
vmud213 377a8a96c0 Adds API to get the results of the BIOS settings
This commit adds an API to get the results of the BIOS settings applied
prior to the latest power cycle.

Change-Id: Ia6786889b717105e9af67faa15da815ad2f4e4cb
Closes-Bug: 1790776
2018-10-04 16:04:03 +05:30
Zuul 8ac17b2f84 Merge "Validates the BIOS settings before applying" 2018-09-07 12:51:34 +00:00
vmud213 0e9f3d1b46 Validates the BIOS settings before applying
If 'only_allowed_settings' filter is applied, this change validates if
each of the settings provided is supported. If any setting is provided which
is not supported by the user, 'IloError' exception is thrown.

Change-Id: I966db94634b7e3021f07dc45dcca5cc4f5120329
Closes-Bug: 1785782
2018-09-07 13:22:57 +05:30
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
vmud213 d0dd4add5d iLO Redfish: Adds support to manage BIOS settings
Adds support to get current BIOS settings, default BIOS settings and pending
BIOS settings for redfish based systems. Also provides support to update the
BIOS configuration with the given configuration.

Change-Id: I309d4226ba456a7df6dc4f1167d5a3f9acd69dd1
2018-07-19 12:21:10 +05:30
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
Zuul 48741568b1 Merge "Add support for NMI(Non Maskable Interrupt)" 2018-07-13 06:20:54 +00:00
Shivanand Tendulker f3db9b7c8a Add support for NMI(Non Maskable Interrupt)
This commit adds support for NMI for Gen9 and Gen10 servers.

Note: These is no RIBCL interface to perform NMI using RIBCL.

Change-Id: Iaf663443179417e47d022098c73a4776d41d4287
Partial-Bug: #1762311
2018-07-10 08:18:10 -04:00
wangqi 4ba1ac55dd Using assertIsNone() instead of assertEqual(None)
Following OpenStack Style Guidelines:
[1] http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises
[H203] Unit test assertions tend to give better messages for more specific
assertions. As a result, assertIsNone(...) is preferred over
assertEqual(None, ...) and assertIs(..., None)

Change-Id: Iaf770fcd26bedfc2abb51b876ca87944dc4be9a4
2018-04-20 07:49:35 +00:00
mvpnitesh da0c7b3db9 Fixes session issue for Gen10 servers
For HPE Gen10 servers we are not able to receive consistent response
while accessing the System with id: "/redfish/v1/Systems/1".
The reason was related to multiple Sushy object creation which in
turn will create multiple active sessions for the same Redfish
controller at any given point.

Instead of using session based authentication (the default behaviour
in Sushy) we use basic authentication at the time of Sushy object
creation. This fixes the session issue for Gen10 servers.

Change-Id: Ic13da26a77863f8c383fa8ba185e05a8fc2e9fcf
Closes-Bug: #1764395
2018-04-17 10:12:24 +00:00
mvpnitesh 3886a0235d Fixes secure_boot capability
This patch fixes the `secure_boot` capability for Gen10 servers.

Change-Id: I56de423106a9e9e8e2cbe93630b8b7981b1eb30f
Closes-Bug: #1749076
2018-02-20 10:58:04 +00:00
vmud213 42f14bd6a7 Retain "mac" argument for backward compatibility
Add methods to support backward compatibility by retaining the "mac" argument
for the exisiting methods that support managing iSCSI information.

Change-Id: I5e006556e5303fd8febc836b1bd355b87933f1eb
Closes-Bug: #1744307
2018-01-19 18:29:05 +05:30
paresh-sao b86754f50a Redfish: Adding the ability to get and set iSCSI initiator
This commits adds new functions 'set_iscsi_initiator_info' and
'get_iscsi_initiator_info' of iLO.

Change-Id: I802f7bb8ccf351e8c6be530bd7f743d75f22a0c2
2018-01-12 11:04:37 +00:00
Zuul ed291b5ce0 Merge "Redfish: Changed 'update_persistent_boot' to set 'UefiTarget' boot device. Also removed 'mac' from 'set_one_time_boot'" 2018-01-12 10:31:26 +00:00
paresh-sao 5f71652533 Redfish: Adding the ability to set and unset iSCSI boot info
This commits adds new functions 'set_iscsi_boot_info' and
'unset_iscsi_boot_info' to change iSCSI settings on iLO.

Change-Id: I855ae6a4b2ab84e939cf6b0c49f2af001f6a3173
2018-01-11 11:19:59 +00: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 9a7735aea2 Redfish: Adds drive_rotational_<speed>_rpm attribute to server capabilities
Change-Id: Id99d2b232ab8c915855c3aafe966d77fd162f1cc
2017-08-09 00:44:02 -07:00
Nisha Agarwal 9d1f856ffc Redfish: Adds logical_raid_level_<raid_level> attributes to server capabilities
Change-Id: I77c519b95be19e6fbac66471c6771de8daa044ae
2017-08-08 01:34:28 -07:00
Jenkins f077b9e772 Merge "Change server capability 'raid_support' to 'hardware_supports_raid'" 2017-08-07 11:54:11 +00:00