Skip to main content

Library to use HPE OneView to provide nodes for Ironic

This library adds a communication layer between Ironic and OneView and abstracts the version of OneView in place.

Features

Audit logging

python-oneviewclient is capable of logging method calls to OneView for auditing. Currently, data about request timing and method names, parameters and return values, can be recorded to be used in the auditing process to discover and better understand hotspots, bottlenecks and to measure how the user code and OneView integration performs.

Enabling audit logging

To enable audit logging, the user code has to set three parameters in the constructor of the client object. namely: audit_enabled, audit_map_file and audit_output_file. audit_map_file and audit_output_file must be filled with the absolute path to the audit map file and the audit output file.

The audit map file

The audit map file is composed of two sections, audit and cases. In the audit section there should be a case option where one, and just one, of the audit logging cases needs to be specified. The cases section needs to be filled with a name for a case followed by the methods that the user wants to audit logging. The methods that are allowed for the audit logging are those decorated by @auditing.audit in python-oneviewclient.

See an example of an audit map file:

[audit]

# Case to be audit logged from those declared in cases section.

case = case_number_one

[cases]

# Possible auditable case name followed by the audit loggable
# methods' names.

case_number_one = first_method,second_method,third_method
case_number_two = first_method,third_method,fifth_method

The audit output file

The result of the audit logging process is a JSON formatted file that can be used by auditors, operators and engineers to obtain valuable information about performance impacts of using python-oneviewclient to access OneView, and better understand possible hotspots and bottlenecks in the integration of the user code and OneView.

See an example of an audit output file:

{
    "method": "get_node_power_state",
    "client_instance_id": 140396067361488,
    "initial_time": "2016-08-29T17:32:01.403420",
    "end_time": "2016-08-29T17:32:01.439126",
    "is_ironic_request": true,
    "is_oneview_request": false,
    "ret": "Off"
}

Metadata

Release files for python-oneviewclient 2.6.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-oneviewclient 2.6.6
File Size Uploaded
python-oneviewclient-2.6.6.tar.gz 54.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-oneviewclient 2.6.6
File Interpreter ABI Platform
python_oneviewclient-2.6.6-py2-none-any.whl Python 2 none any Details

Total release size: 114.5 kB

Release files / python-oneviewclient-2.6.6.tar.gz

Download URL python-oneviewclient-2.6.6.tar.gz
Size 54.3 kB
Tags Source
SHA-256 checksum
How to use checksums
11dd0f32263472d31dce96a947c732014ebbcb2d3a3ac9dfeb376801248edf2a
BLAKE2b-256 checksum
How to use checksums
ef1441195c09bf0b4baa8ad8dad2c863134f38657e310ee434ad251893d646c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_oneviewclient-2.6.6-py2-none-any.whl

Download URL python_oneviewclient-2.6.6-py2-none-any.whl
Size 60.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
269294638736f2ac844e27874d2970c14b54c656443ff84017b85417b662c6c9
BLAKE2b-256 checksum
How to use checksums
47c1c3c0a1c48f1cf1eee7e83dff8f919ca157cfc830cadf6951327ebe04821b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.6.6 This release

2 release files

2.6.5

2 release files

2.6.4

2 release files

2.6.3

2 release files

2.6.2

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page