Commit Graph

26 Commits

Author SHA1 Message Date
Riccardo Pittau f655e23cef Keep using pysnmp-lextudio to avoid conflict installation
The pysnmp-lextudio version is more recent and maintained, we should
keep using that for the time being to avoid conflicts of
installation with ironic, while using simple pyasn1.

Change-Id: Icb6e7779100b676685e227e225fde5c392141333
2024-03-15 10:43:15 +01:00
Paresh Sao 68e2d8a51c Revert "Migrate to pysnmp lextudio ecosystem"
This reverts commit 56c507344d.

Change-Id: Ie72b2a955d49cd6d1d5a802d499dd45cea9a518e
2024-03-11 05:50:23 -04:00
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 56c507344d Migrate to pysnmp lextudio ecosystem
The pysnmp library is not maintained since 4 years now and it's
incompatible with recent libraries like pyasn1.
Its fork pysnmp-lextudio is regularly maintained, we should move
to that.
For more info see https://github.com/etingof/pysnmp/issues/429

Change-Id: Ic37805b39054b1d6a4a4c69a8faf57b512d920a0
2023-06-13 10:35:53 +02:00
Nisha Agarwal a07293a63f Update Sushy version to latest
Change-Id: I9834d810a4125b40584aa896e707fcaf2794054a
2023-05-09 20:46:49 +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 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
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
Shivanand Tendulker 5bc756917d Updates mimimum version of sushy in requirements
Minimum version of sushy should be 3.1.0

Change-Id: I905b43bc42ad75329938b15f4b5b7873f59e63ee
Closes-bug: #1864187
2020-02-21 07:45:08 -05:00
Nisha Agarwal 1afcadf7c1 jsonschema3.0.1: Uncap jsonschema
This patch uncaps the jsonschema version.

Closes-bug: 1824084

Change-Id: I0f4c0346f6acf934abda4e1bda4064f88eeecfae
2019-04-26 03:55:37 -07: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
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
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
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
Debayan Ray ac0595ecf9 Remove sushy manager hack
Earlier we had included a temporary hack [0] for manager to pass
in 'manager_mock.py' file till the point a new Sushy version is
released with manager feature. This is to remove that temporary
hack as Sushy had been released recently.

Also pegged the version of Sushy to >=1.0.0 in requirements.

[0] https://review.openstack.org/#/c/473719/

Change-Id: I8eb2389730bb5d65338d2562fe2a9462bafc3479
2017-07-20 23:54:35 -04:00
Debayan Ray 100c058a09 Aligning redfish calls to new framework
This patch proposes a new framework to communicate on redfish
protocol in proliantutils.

Change-Id: I719ee8da74ba4109ac1c9dfffdf54baed67cd95c
Closes-Bug: 1646685
2017-06-01 02:35:04 -04:00
Aparna c0ca2d7126 Support to return logs for hpsum firmware update
This commit adds supports to return the log files
for the hpsum based firmware update as gzipped
and base64 encoded string.

Closes-Bug: #1673037
Change-Id: Ie9f165c75e6b47be29927864cbdf2d8b050ef887
2017-05-10 08:52:01 +00:00
Debayan Ray 0a3a490d34 Refactor ris-rest infrastructure
This patch refactors the rest infrastructure in ris in
following ways:

    - Includes ``retrying`` package to retry on redirection
    - Modularized the rest infra code
    - No behaviour change as such barring the log output

Partial-Bug: 1646685

Change-Id: I155f961c034b1d9ac9a962974d8461c1097987e3
2017-04-07 04:54:24 -04:00
ankit 9489e88466 Updating requirements.txt based on ironic
All projects are now using upgraded versions of
packages. We should update it to match global requirement.

Change-Id: I0980019df1cb94427d10c1aeb8834e3b84c079a4
2017-03-15 10:53:48 +00:00
Debayan Ray 5618c0738f [Fix gate] Update pbr requirement
Explicit version dependency of pbr is added in requirements.txt.
Also, since pbr already landed and the old version of hacking
seems not work very well with pbr>=2, we should update it to
match global requirement. Minor flake8 issue resolved in
``proliantutils/hpssa/objects.py``.

Change-Id: I5c019ce41606b73fe12d56b871f76ef17224d4fc
Partial-Bug: #1668848
2017-03-03 00:18:17 -05:00
Nisha Agarwal 59857805d4 snmp inspection for disk size
This patch gets the disk size if RIBCL/RIS
fails to get the same.

Change-Id: I22840bc04f387288672b787ee07cedb884bf5050
2017-01-24 06:19:14 +00:00
Ramakrishnan G 175859abd5 Add support for certificate based authentication
This commit adds support for HTTPS certificate based
authentication in RIBCL and RIS modules. It adds
a new optional argument 'cacert' to IloClient
object constructor in which the root cacertificate
file may be passed for HTTPS authentication.

Change-Id: Iaab525205f4052168e0a37ca5220c26b57f4135c
2015-06-16 22:34:53 -07:00
Ramakrishnan G 34031ba276 Fix gate failures
This commit fixes the gate failures by following changes:
* Removes custom pypi mirror in tox.ini
* Changes oslo.utils to oslo_utils
* Changes oslo.concurrency to oslo_concurrency

Change-Id: Iaf3fa7a76aeb72323df40a7317c23c85cb5d920e
2015-06-09 23:01:39 -07:00
Anusha Ramineni 91062d458f Add Proliant Hardware Manager for IPA
This commit adds a IPA hardware manager for
exposing functions specific to Proliant hardware
in Ironic Python Agent.

Co-Authored-By: Ramakrishnan G <rameshg87@gmail.com>
Implements: blueprint ipa-hardware-manager
Change-Id: I286fcc4e88934b4a425e57f5b676d6cbd64690c4
2015-02-20 15:58:01 +05:30
root fe5bcccfe2 Add hpssa module to proliantutils
This commit introduces the hpssa module. The module has
the ability to parse the current raid configuration and
hardware details of the server. It also has a manager
which has ability to create/delete/get raid configuration.

For now, create is limited to machine-dependent configuration.
Each logical disk to be created will require the controller
and physical disks to be used.

Change-Id: Ib58620d8d4f47eb55c55c6abb5d3b294623205bf
Implements: blueprint hpssa-support
2015-02-13 09:36:26 +00:00
Ramakrishnan G f1cf46f1a8 Add tox for proliantutils module
This commit adds tox support for proliantutils
module.
2015-02-03 03:14:24 -08:00