PowerFlex: PowerFlex IM Gateway에 대해 REST API 호출을 실행할 수 없음
Summary: IM에서 REST API를 테스트하려고 하거나 IP 주소에 대해 REST API 툴(예: "curl")을 사용하려고 할 때 IM 게이트웨이가 HTTP 오류 428을 반환합니다.
Symptoms
게이트웨이에서 "테스트 REST 구성"을 사용하려고 할 때 오류가 발생했습니다.
API 서버(게이트웨이)에 연결하는 동안 오류가 발생했습니다.
"curl"을 사용하려고 할 때 오류 메시지:
* About to connect() to 10.200.x.x port 443 (#0)
* Trying 10.200.x.x...
* Connected to 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
* start date: Dec 02 07:30:05 2019 GMT
* expire date: Nov 05 07:30:05 2024 GMT
* common name: 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
> Host: 10.200.x.x
> Accept: */*
>
< HTTP/1.1 428
< Cache-Control: no-cache
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-store
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
< Vary: Accept-Encoding
< Date: Fri, 25 Jun 2021 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 when trying to connect to cluster: tcp://10.200.x.x:6611 (with configured 10 concurrent requests)
com.emc.ecs.net.exceptions.SecureConnectionDisabledException: null
영향
PowerFlex에서 REST API를 사용할 수 없습니다.
Cause
# scli --query_all | grep -i secure
관리 클라이언트 보안 통신: 비활성화됨
# grep -i secure /opt/emc/scaleio/gateway/webapps/ROOT/WEB-INF/classes/gatewayUser.properties
#######Secure connection with MDM properties#######
# 보안 연결을 설정할 수 없는 경우 보안되지 않은 REST 연결을 MDM에 허용합니다.
gateway-security.allow_non_secure_communication=true
소프트웨어 문제로 인해 게이트웨이와 MDM 간의 통신이 실패했습니다.
Resolution
MDM 관리 클라이언트 통신을 보안으로 설정:
scli --set_management_client_communication --enable_client_secure_communication
Additional Information
영향을 받는 버전:
PowerFlex 운영 체제 3.0.x.x.
다음 버전에서 해결:
운영 체제 3.0.1.4 이상