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

Enhance PyU4V error when attempting connection with bad credentials #214

Open
benoit-fabre-dell opened this issue Mar 21, 2025 · 0 comments

Comments

@benoit-fabre-dell
Copy link

Hello,

While attempting to logging to Unisphere with wrong credentials, the SDK raised an error message which may lead to confuse with networking issue, see the error below:

The GET request to URL https://pmax:8443univmax/restapi/version timed-out, but may have been successful. Please check Unisphere Server for any slowness, long-running API calls are a symptom of Unisphere Server limits being reached. HTTPSConnectionPool(host=’pmax, port=8443): Read timed out. (read timeout=120). See https://developer.dell.com/apis/4458/versions/10.0/docs/Getting%20Started/4.concurrent_operations.md, To ensure limits are not being exceeded verify the number of connections and calls in Unisphere for PowerMax under Support > Management Server Resources or using system call get_management_server_resources()
[WARNING] issue in check_ports_not_online: <class 'PyU4V.utils.exception.VolumeBackendAPIException'>: Bad or unexpected response from the storage volume backend API: Error GET None. The status code received is None and the message is None.

See code:

except requests.Timeout as error:

We would like to request to enhance the SDK to throw a more operator friendly message when the credentials are not correct, basically diffentiating network error from authentication errors.

Thank you!

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

1 participant