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
* 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
This patch fixes the test cases which are dependent on
changes in sushy library version 3.12.0.
Closes-Bug: 1950421
Change-Id: I485010c613b0e8d5d4c9bcb96959730bae42dc88
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
This commit adds support for generating Certificate
Signing Request and importing Signed Certificates to iLO5.
Change-Id: I116e685d4f1e190679c2faa8fa296202f2433759
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
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
Following inband deploy steps are added:
1. 'apply_configuration' is added for 'raid' interface.
2. 'flash_firmware_sum' is added for 'management' interface.
Change-Id: I42e153aaa52befb13d0471a2a1f0a2401684aaea
Adds py3 and removes py27 from tox environment
Fixes testcases that were failing for py38 environment.
Depends-on: https://review.opendev.org/#/c/738168/
Change-Id: I1a5f88c06808449e906d9b8ad43d690136737800
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
Decodes bytes object of fru print to string, was failing
during an ilo inspection.
Change-Id: Ieed55ffca1e839ff5a5dfe523038ba03ea14d0d7
Closes-Bug: 1853210
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
When updating firmware, some devices return a cookie with a newline in.
This can result in the following error:
Invalid return character or leading space in header: Cookie
This is due to the header validation in the requests library, which
requires no newlines in headers.
This change fixes the issue by stripping whitespace from the cookie.
Change-Id: Ib2dab7beef0da415e8f2358b459ec1205bf688b4
Closes-Bug: #1859616
Currently the IloClient object cached uses iLO host as the key.
This can be issue if the iLO credentials are changed. The cached
node will not use new credentials leading to failure in
communication with iLO.
Change-Id: Ie1ea10aae78c4dab307d8a31996322597046ecb1
Closes-Bug: 1852688
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
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
This patch fixes the storage code which
fails in certain cases while fetching
certain storage related capabilities.
Change-Id: If7e3e0cfd8342f1d5c0deccca528fd9d23451a55
Instead of creating different objects everytime for
each proliant API call, this change uses existing ilo object.
This helps:
1) To fix the issue with session management in redfish based systems
2) To avoid unnecesary call to get_product_name
3) To avoid creating and deleting RISOperations, RIBCLOperations,
and Redfish operations.
4) To make the reading of the logs easy by removing the
unnecessary and duplicated logs generated as part of the
recreation logic.
5) And last but not the least, it will enable to provide more
caching mechanism eventually.
Change-Id: Iec13a8ee970ef687e4df59ac493f1e13e4db0c7b
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
This fix changes the default behavior to consider all the BIOS settings
rather than applying filter on them for only specific settings.
Change-Id: I19dc807c41a52136e8f7c306004508885af2733d