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

Initialising connection "conn = PyU4V.U4VConn()" failed #173

Closed
seckjun-song-otsk opened this issue Nov 24, 2023 · 3 comments
Closed

Initialising connection "conn = PyU4V.U4VConn()" failed #173

seckjun-song-otsk opened this issue Nov 24, 2023 · 3 comments
Assignees

Comments

@seckjun-song-otsk
Copy link

seckjun-song-otsk commented Nov 24, 2023

Hello,

Thank you for your endeavor for PyU4V.
To monitor PowerMAX, VMAX performance, I would like to use PyU4V.
Even though I followd guide of "https://pyu4v.readthedocs.io/en/latest/quick_start.html", but failed.
May I have your advice to fix this situation ?
Thank you.

b.rgds

//
// Summary
//

  1. Network connection & username, password: OK
  2. Installation of PyU4V: OK
  3. Creating conf file: OK
  4. Initialising the connection with Unisphere use: Failed
    With below msg
    "PyU4V.utils.exception.VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Error GET None. The status code received is 500 and the message is {'message': 'The server encountered an unexpected condition which prevented it from fulfilling the request'}."

//
// Detail
//

  1. network connectivity
    $ping -c 1 10.65.224.185
    PING 10.65.224.185 (10.65.224.185) 56(84) bytes of data.
    64 bytes from 10.65.224.185: icmp_seq=1 ttl=125 time=99.0 ms

--- 10.65.224.185 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 98.981/98.981/98.981/0.000 ms

  1. port 8443 connection
    $telnet 10.65.224.185 8443
    Trying 10.65.224.185...
    Connected to 10.65.224.185.
    Escape character is '^]'.

  2. SSL Certificate
    $ openssl s_client -showcerts -connect 10.65.224.185:8443 </dev/null 2>/dev/null|openssl x509 -outform PEM > unisphere90.pem

adding the cert to a CA certificate bundle
$ sudo cp unisphere90.pem /usr/share/ca-certificates/unisphere90.crt
$ sudo dpkg-reconfigure ca-certificates

  1. SETUP
    $ cat PyU4V.conf
    [setup]
    username=monitor
    password=******** (intentionally changed for security)
    server_ip=10.65.224.185
    port=8443
    array=00029780**** (intentionally changed for security)
    verify=True

$ pip show PyU4V
Name: PyU4V
Version: 10.1.0.0
Summary: A Python library for use with Dell EMC's Unisphere for PowerMax REST API.
Home-page: https://github.com/dell/PyU4V/
Author: Dell Inc. or its subsidiaries
Author-email: helen.walsh@dell.com
License: Apache 2.0
Location: /home/sjsong/.local/lib/python3.8/site-packages
Requires: six, requests, sphinx-rtd-theme, prettytable, urllib3
Required-by:
$

$ python3 -V
Python 3.8.10
$

$ python3
Python 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import PyU4V
conn = PyU4V.U4VConn()
Traceback (most recent call last):
File "", line 1, in
File "/mnt/c/Users/seckjun.song/UBUNTU/EMC/PyU4V/PyU4V/univmax_conn.py", line 124, in init
self.validate_unisphere()
File "/mnt/c/Users/seckjun.song/UBUNTU/EMC/PyU4V/PyU4V/univmax_conn.py", line 187, in validate_unisphere
uni_ver, major_ver = self.common.get_uni_version()
File "/mnt/c/Users/seckjun.song/UBUNTU/EMC/PyU4V/PyU4V/common.py", line 523, in get_uni_version
response = self.get_resource(category=VERSION, no_version=True)
File "/mnt/c/Users/seckjun.song/UBUNTU/EMC/PyU4V/PyU4V/common.py", line 339, in get_resource
return self.get_request(
File "/mnt/c/Users/seckjun.song/UBUNTU/EMC/PyU4V/PyU4V/common.py", line 313, in get_request
self.check_status_code_success(operation, sc, message)
File "/mnt/c/Users/seckjun.song/UBUNTU/EMC/PyU4V/PyU4V/common.py", line 180, in check_status_code_success
raise exception.VolumeBackendAPIException(
PyU4V.utils.exception.VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Error GET None. The status code received is 500 and the message is {'message': 'The server encountered an unexpected condition which prevented it from fulfilling the request'}.

@rawstorage
Copy link
Collaborator

What version of Unisphere for PowerMax are you running? PyU4V 10.1 needs version 10.1, some older versions may fail the version check.

@rawstorage rawstorage self-assigned this Nov 28, 2023
@seckjun-song-otsk
Copy link
Author

Hi Paul Martin,

Thank you for your comment.
With you comment, I just checked the version.
"Unisphere for PowerMax
Version Number: V9.0.2.19"

I will update Unisphere for PowerMax version to the latest version.
(downloading "UNIVMAX_10.1.0.1_RELEASE_WINDOWS_X86_64.exe" file from Dell)
and then back here with the result.

Thank you again for your time.

b.rgds

@rawstorage
Copy link
Collaborator

Thanks, the error message should have been clearer, if you are upgrading Unisphere you will first need to upgrade solutions enabler as your upgrade will fail otherwise.

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

2 participants