PowerFlex: Kan ikke kjøre REST API-samtaler mot PowerFlex IM Gateway
Summary: IM Gateway returnerer HTTP-feil 428 når du prøver å teste REST-API-en fra IM-en eller når du prøver å bruke et REST API-verktøy (for eksempel "curl") mot IP-adressen.
Symptoms
Feil under forsøk på å bruke «Test REST configuration» (Test REST-konfigurasjon) fra gatewayen:
Feil under forsøk på å koble til API-serveren (gateway):
Feilmelding når du prøver å bruke «curl»:
* Om å koble () til 10.200.x.x port 443 (#0)
* Prøver 10.200.x.x ...
* Koblet til 10.200.x.x (10.200.x.x) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* subject: CN = ScaleIO-10-200-x-x-GW.sioesxinode06, OU = ASD, O = EMC, L = Hopkinton, ST = Massachusetts, C = US
* startdato: 2. desember 07:30:05 2019 GMT
* utløpsdato: 5. november kl. 07.30.05 2024 GMT
* vanlig navn: ScaleIO-10-200-x-x-GW.sioesxinode06
* utsteder: CN = ScaleIO-10-200-x-x-GW.sioesxinode06, OU = ASD, O = EMC, L = Hopkinton, ST = Massachusetts, C = US
* Server auth ved hjelp av Basic med brukeren "admin"
> GET /api/login HTTP/1.1
> Authorization: Basic YWRtaW46U2NhbAFAta==
> User-Agent: curl/7.29.0
> vert: Godta 10.200.x.x
> godta: */*
>
< HTTP/1.1 428
< hurtigbufferkontroll: ingen hurtigbuffer
< utløper: Torsdag 1. januar 1970 klokken 00.00.00 GMT
< Pragma: no-cache
< Cache-Control: no-store
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
< Vary: Godtar
<dato: Fredag 25. juni 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.s.ConnectionServiceImpl – Got exception when trying to connect to cluster: tcp://10.200.x.x:6611 (with configured 10 concurrent requests)
com.emc.ecs.net.exceptions.SecureConnectionDisabledException: null
Innvirkning
Kan ikke bruke REST API med PowerFlex.
Cause
# scli --query_all | grep -i secure
Management Clients sikker kommunikasjon: Deaktivert
# grep -i secure /opt/emc/scaleio/gateway/webapps/ROOT/WEB-INF/classes/gatewayUser.properties
######Secure connection with MDM properties########
# Allow a non-secured REST connection to the MDM if a secured connection can't be established
gateway-security.allow_non_secure_communication=true
På grunn av et programvareproblem var ikke kommunikasjonen mellom gatewayen og MDM vellykket.
Resolution
Angi kommunikasjon for MDM-administrasjonsklienter som skal sikres:
scli --set_management_client_communication --enable_client_secure_communication
Additional Information
Berørte versjoner:
PowerFlex-operativsystem 3.0.x.x.
Adressert i versjon:
PowerFlex-operativsystem 3.0.1.4 og nyere.