PowerFlex: Det går inte att köra REST API-anrop mot PowerFlex IM Gateway

Summary: IM Gateway returnerar HTTP-fel 428 vid försök att testa REST API från IM eller när du försöker använda ett REST API-verktyg (t.ex. "curl") mot dess IP-adress.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Det här problemet kan uppstå när du försöker använda IM Gateway som REST API-slutpunkt. 

Fel vid försök att använda "Test REST configuration" från gatewayen:
 
IM.png

Fel vid försök att ansluta till API-servern (Gateway):
 
Browser.png

Felmeddelande vid försök att använda "curl":
 
curl -k -v --basic --user admin:password https://10.200.x.x/api/login [10.200.x.x]

* About to connect() to 10.200.x.x port 443 (#0)
* Trying 10.200.x.x...
*  Ansluten till 10.200.x.x (10.200.x.x) port 443 (#0)
* Initiering av NSS med certpath: sql:/etc/pki/nssdb
* hoppar över SSL peer-certifikatverifiering
* SSL-anslutning med TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Servercertifikat:
*       subject: CN=ScaleIO-10-200-x-x-GW.sioesxinode06,OU=ASD,O=EMC,L=Hopkinton,ST=Massachusetts,C=US
* startdatum: 2 dec 07:30:05 2019 GMT
* förfallodatum: 5 nov 07:30:05 2024 GMT
* vanligt namn: ScaleIO-10-200-x-x-GW.sioesxinode06
* issuer: CN=ScaleIO-10-200-x-x-GW.sioesxinode06,OU=ASD,O=EMC,L=Hopkinton,ST=Massachusetts,C=US
* Server auth using Basic with user 'admin'
> GET /api/login HTTP/1.1
> Authorization: Basic YWRtaW46U2NhbAFAta=>
User-Agent: curl/7.29.0
>-värd: 10.200.x.x
> Godkänn: */*
>
< HTTP/1.1 428
< Cache-Control:
< upphör att gälla: Tors, 01 jan 1970 00:00:00 GMT
< Blinkma: no-cache
< Cache-Control: no-store
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
< Vary: Acceptera
< datum: Fre, 25 jun 2021, kl. 14:00:00 GMT
< Server: ScaleIO Gateway
<
* Connection #0 to host 10.200.x.x left intact
{"message":"Failed connecting to cluster: 10.200.x.x 10.200.x.x","httpStatusCode":428,"errorCode":0}

IM Gateway "scaleio.log":


2021-06-25 05:14:27,153 [https-jsse-nio-443-exec-7] INFO c.e.s.s.s.ConnectionServiceImpl – Got exception vid försök att ansluta till kluster: tcp://10.200.x.x:6611 (med konfigurerade 10 samtidiga begäranden)
com.emc.ecs.net.exceptions.SecureConnectionDisabledException: null 

 

Effekt
Det går inte att använda REST API med PowerFlex.

Cause

MDM-klustret konfigurerades med säker hanteringskommunikation avaktiverad:


# scli –-query_all | grep -i
secure Management Clients säker kommunikation: Disabled (avaktiverad)

 

IM Gateway har konfigurerats att fungera med följande konfiguration:


# grep -i secure /opt/emc/scaleio/gateway/webapps/ROOT/WEB-INF/classes/gatewayUser.properties
######Secure connection with MDM properties#######
# Tillåt en icke-säker REST-anslutning till MDM om en säker anslutning inte kan upprättas
gateway-security.allow_non_secure_communication=true


På grund av ett programvaruproblem lyckades inte kommunikationen mellan gatewayen och MDM.

Resolution

Ställ in kommunikationen mellan MDM Management-klienter på säkra:
scli --set_management_client_communication --enable_client_secure_communication

Additional Information

Versioner som påverkas:
PowerFlex operativsystem 3.0.x.x.

Adresserad i version:
PowerFlex operativsystem 3.0.1.4 och senare.

Affected Products

PowerFlex Software
Article Properties
Article Number: 000189979
Article Type: Solution
Last Modified: 12 Nov 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.