/home/gabrield/venv/venv3.6_wsapi/lib64/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
RESP:{'Date': 'Tue, 19 Mar 2019 06:55:52 GMT'
'Server': 'hp3par-wsapi'
'Content-Type': 'application/json'
'Connection': 'close'
'status': '500'
'content-location': 'https://10.250.7.6:8080/api/v1/credentials'}
RESP BODY:{"code":1,"desc":"internal server error"}
Traceback (most recent call last):
File "", line 1, in
File "/home/gabrield/venv/python-3parclient/hpe3parclient/client.py", line 294, in login
self.http.authenticate(username, password, optional)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 124, in authenticate
resp, body = self.post('/credentials', body=info)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 376, in post
return self._cs_request(url, 'POST', kwargs)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 321, in _cs_request
kwargs)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 297, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 262, in request
raise exceptions.from_response(resp, body)
hpe3parclient.exceptions.HTTPInternalServerError: Internal Server Error (HTTP 500) 1 - internal server error
The WSAPI server is enabled:
showwsapi -d
-----------------WSAPI Server Configuration-----------------
service State : Enabled
server State : Active
HTTP State : Disabled
HTTP Port : 8008
HTTPS State : Enabled
HTTPS Port : 8080
Number of sessions In Use : 0
System Resource Usage : 72
Version : 1.5.3
Session Timeout : 15 Minutes
Policy : tls_strict
API URL : https://10.250.7.6:8080/api/v1
Hello, I'm trying to login to a 3PAR but I got the HTTP 5000 error:
REQ: curl -i https://10.250.7.6:8080/api -X GET -H "User-Agent: python-3parclient" -H "Accept: application/json"
/home/gabrield/venv/venv3.6_wsapi/lib64/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) RESP:{'Date': 'Tue, 19 Mar 2019 06:55:31 GMT' 'Server': 'hp3par-wsapi' 'Cache-Control': 'no-cache' 'Pragma': 'no-cache' 'Content-Type': 'application/json' 'Connection': 'close' 'status': '200' 'content-location': 'https://10.250.7.6:8080/api'}
RESP BODY:{"major":1,"minor":5,"revision":3,"build":30202750}
REQ: curl -i https://10.250.7.6:8080/api/v1/credentials -X POST -H "User-Agent: python-3parclient" -H "Accept: application/json" -H "Content-Type: application/json"
REQ BODY: {"user": "gabrield", "password": "****"}
/home/gabrield/venv/venv3.6_wsapi/lib64/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) RESP:{'Date': 'Tue, 19 Mar 2019 06:55:52 GMT' 'Server': 'hp3par-wsapi' 'Content-Type': 'application/json' 'Connection': 'close' 'status': '500' 'content-location': 'https://10.250.7.6:8080/api/v1/credentials'}
RESP BODY:{"code":1,"desc":"internal server error"}
Traceback (most recent call last): File "", line 1, in
File "/home/gabrield/venv/python-3parclient/hpe3parclient/client.py", line 294, in login
self.http.authenticate(username, password, optional)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 124, in authenticate
resp, body = self.post('/credentials', body=info)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 376, in post
return self._cs_request(url, 'POST', kwargs)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 321, in _cs_request
kwargs)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 297, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/home/gabrield/venv/python-3parclient/hpe3parclient/http.py", line 262, in request
raise exceptions.from_response(resp, body)
hpe3parclient.exceptions.HTTPInternalServerError: Internal Server Error (HTTP 500) 1 - internal server error
The WSAPI server is enabled: showwsapi -d -----------------WSAPI Server Configuration----------------- service State : Enabled server State : Active HTTP State : Disabled HTTP Port : 8008 HTTPS State : Enabled HTTPS Port : 8080 Number of sessions In Use : 0 System Resource Usage : 72 Version : 1.5.3 Session Timeout : 15 Minutes Policy : tls_strict API URL : https://10.250.7.6:8080/api/v1
Can you please tell me what am I doing wrong?