Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for 92 endpoint to be used in later versions of U4V #133

Closed
helenwalsh opened this issue Oct 14, 2021 · 6 comments
Closed

Allow for 92 endpoint to be used in later versions of U4V #133

helenwalsh opened this issue Oct 14, 2021 · 6 comments
Assignees

Comments

@helenwalsh
Copy link
Contributor

No description provided.

@212850a
Copy link

212850a commented Jan 23, 2024

@rawstorage as far as I see it's closed as completed.
Does it mean it is possible to connect to Unisphere 10.1.0.0 with PyU4V 9.2.1.7?
I've just checked and it does not work.

@rawstorage
Copy link
Collaborator

Roman,
see test performed this morning in my environment, this is working. i've reopened for your to confirm

import PyU4V
from pprint import pprint
from importlib.metadata import version

conn = PyU4V.U4VConn(
username='smc',
password='smc',
server_ip='ipaddress',
port='8443', array_id='000297600841',
verify=False)

print(version('PyU4V'))
print(conn.common.get_uni_version())
print(conn.common.get_array_list())

C:\Users\martip5\PycharmProjects\PyU4V_Playground\venv\Scripts\python.exe C:\Users\martip5\AppData\Roaming\JetBrains\PyCharm2023.2\scratches\scratch_4.py
9.2.1.7
('V10.1.0.1', '101')
['000220200226', '000297600841']

Process finished with exit code 0

@rawstorage rawstorage reopened this Jan 23, 2024
@212850a
Copy link

212850a commented Jan 23, 2024

Sorry, my statement was not correct. You're right it's possible to connect to Unisphere 10.1 from PyU4V 9.2.1.7.
But what does not work for me is ability to connect from PyU4V 10.1 to Unisphere 9.2.
I believe it's done by design and there is no way to make it working?

If 92 endpoint is created for Unisphere 10.1, do you know how I should run provisioning.get_srp('SRP_1') and performance.get_array_stats(metrics='ALL', start_time, end_time) functions there?
If I try to run them from PyU4V 9.2.1.7 for Unisphere 10.1 (PMAX 2500) I get exceptions.

@rawstorage
Copy link
Collaborator

Roman,
we hardcoded on the version, in PyU4V under the covers the API endpoint is coded to work with the endpoints in corresponding version of Unisphere and forward compatibility is built into the tool any functions that worked in 9.2 version of PyU4V will work in 10.1 version of PyU4V but the version of Unisphere must be at the minimum version supported for PyU4V.

With Unisphere 10.1 the following versions of the API are provided and supported by Unisphere

{
"version": "V10.1.0.1",
"api_version": "101",
"supported_api_versions": [
"101",
"100",
"92"
]
}

This means I can use PyU4V version 10.1/10.0 or 9.2 against this instance of Unisphere.

PyU4V 10.1 is not tested and therefore blocked with an error e.g

Unisphere version V9.2.1.6 does not meet the minimum requirement of v10.1.x Please upgrade your version of Unisphere to use this SDK. Exiting...

You can spin off your own branch of code and create a package that will support both however that is outside the scope and we wouldn't support that as it's not tested.

There are advantages to upgrading to 10.1 version especially for performance stats as you can take advantage of the enhanced api calls which will make it easier and quicker to get metrics. Also the new volumes and storage groups bulk calls get you a load of new information.

I understand if you are using Embedded Unisphere this means you will need an external client to get this functionality.

The alternative is to use virtual environments with the version of PyU4V for each setup and activate the correct venv with PyU4V based on version of Unisphere.

@rawstorage rawstorage assigned rawstorage and unassigned helenwalsh Jan 23, 2024
@212850a
Copy link

212850a commented Jan 24, 2024

Many thanks Paul for comprehensive details. Happy to close this discussion.

@rawstorage
Copy link
Collaborator

No Problem Roman, if you need anything else just reach out. if it's not a bug though you can Open a discussion on GitHub and we are more than happy to have technical conversations.. Glad to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants