Public bug reported:
[Impact]
* Request to backport the active development series of python-3parclient
to Questing (25.10), Plucky (25.04), Noble (24.04) and Jammy (22.04)
[Fix]
* Driver initialization will succeed for newer arrays like HPE Alletra MP B10000
* The storage array can be used in the OpenStack Cinder use case.
[Test Plan]
1. Install python3-3parclient:
sudo apt update
sudo apt install python3-3parclient
2. Test the connection and initialization on HP Alletra MP B10000:
====
from hpe3parclient import client, exceptions
# this creates the client object and sets the url to the
# 3PAR server with IP 10.10.10.10 on port 8008.
cl = client.HPE3ParClient("http://10.10.10.10:8008/api/v1")
# SSL certification verification is defaulted to False. In order to
# override this, set secure=True. or secure='/path/to/cert.crt'
# cl = client.HPE3ParClient("https://10.10.10.10:8080/api/v1",
# secure=True)
# Or, to use ca certificates as documented by Python Requests,
# pass in the ca-certificates.crt file
# http://docs.python-requests.org/en/v1.0.4/user/advanced/
# cl = client.HPE3ParClient("https://10.10.10.10:8080/api/v1",
# secure='/etc/ssl/certs/ca-certificates.crt')
# Set the SSH authentication options for the SSH based calls.
cl.setSSHOptions(ip_address, username, password)
try:
cl.login(username, password)
print "Login worked!"
except exceptions.HTTPUnauthorized as ex:
print "Login failed."
====
-> Driver Initialization should fail with a trace back
3. Install the patched package from the $series-proposed
sudo apt update
sudo apt install python3-3parclient/$series-proposed
4. Validate connection again, the initialization should succeed
[Where problems could occur]
* The patch removes an unauthenticated getWsApiVersion() call and alters how
the client establishes its session and determines the WSAPI version. If older
3PAR or Primera arrays still expect the getWsApiVersion() request before
authentication, the new client could
- Fail to negotiate the correct WSAPI version.
- Receive unexpected unsupported version or invalid request errors from legacy
arrays.
** Affects: python-3parclient (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2134516
Title:
python-3parclient new upstream release 4.2.14
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-3parclient/+bug/2134516/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs