Commit Graph

117 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
Riccardo Pittau 3cde50caf5 Use tests from antelope
Also fix unit test for sushy update.

Change-Id: I9548e1685f240cc7e559d9f029071099b2191068
2022-12-13 13:45:16 +01:00
Nisha Agarwal 7c2993f336 Update testing to zed and fix the broken test cases
Change-Id: Idb1d362bc890afbc6bd6b4aca42a5eed841d1b35
2022-09-06 10:06:10 +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
Nisha Agarwal ed00e9ee2e Fix test cases for sushy 4.1.0
Change-Id: I28ab424fd1bd371e32288affd52b7d8722d419ae
2022-02-18 10:35:11 +00:00
Nisha Agarwal 9449101bd2 Fix few bugs in inspection
Change-Id: I6ace0784941d29e0ace3bd26a2d261c625765371
2022-02-16 14:15:39 +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
Nisha Agarwal 29751a500b Fix the test cases for latest sushy
This patch fixes the test cases which are dependent on
changes in sushy library version 3.12.0.

Closes-Bug: 1950421
Change-Id: I485010c613b0e8d5d4c9bcb96959730bae42dc88
2021-11-09 23:48:40 -08: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
Shivanand Tendulker 0196cd3162 The _op method has changed in sushy 3.10
The sushy method _op() in connector.py accepts new set of arguments.
Proliantutils needs to accept these arguments in its overridden
method.

Change-Id: If66e23209cfcae7c418d1e0dec34add5ed65dc6c
Closes-Bug: #1863236
2020-02-17 07:15:40 -05:00
Shivanand Tendulker 36f90a22d5 Fixes testcases that are broken due to change in sushy
Few of the testcases were broken as we are asserting sushy method which
got changed.

Change-Id: I05c9eee411cf586b5cfc0f4895ab1efc7d2c9b42
2019-11-15 00:55:16 -05:00
Zuul 28291c6647 Merge "Enable session based authentication used by sushy" 2019-08-30 05:38:54 +00: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
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 7a54e4607c Changing warning to debug
This patch changes LOG.warning to LOG.debug

Change-Id: Id5c03b48019902735d2e3c92be086e057c3e6267
2019-07-03 04:57:16 +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
paresh-sao 254318f608 Added support for IPv6 network
This commit added ilo client changes and redfish connector changes
to enable support for IPv6 network.

Change-Id: Ifefc1f0ee190d5420c0c63ae7674350facde8e27
2019-02-20 09:18:34 +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
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