PowerFlex: La chiamata API REST ha esito negativo con risposta incompleta
Summary: La chiamata API REST ha esito negativo con risposta incompleta.
Symptoms
Alcune chiamate API REST (ad esempio "/api/instances") hanno esito negativo con risposta incompleta. Ad esempio:
...vtreeMigrationInfo":{"sourceStoragePoolId":"<storage_pool_id>","destinationStoragePoolId":{"message":"ERROR","httpStatusCode":500,"errorCode":0}
Tuttavia, localhost_access registro segnala una richiesta riuscita (stato 200):
<client ip> - - [12/Jun/2020:13:23:01 +0000] "GET /api/instances HTTP/1.1" 200 106376
Mentre scaleio-trace.log contiene la seguente eccezione:
2020-06-12 13:23:01,377 [https-jsse-nio-443-exec-8] DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Resolving exception from handler [public java.lang.Object com.emc.s3g.scaleio.web.controller.SpecialImplController.getAllInstances(javax.servlet.http.HttpServletRequest) throws com.emc.s3g.scaleio.common.gateway.ScaleIOException]: org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: (was java.lang.NullPointerException) (through reference chain: java.util.HashMap["vTreeList"]->java.util.ArrayList[74]->com.emc.s3g.scaleio.repository.entity.wrappers.VTreeWrapper["rootVolumes"]); nested exception is org.codehaus.jackson.map.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: java.util.HashMap["vTreeList"]->java.util.ArrayList[74]->com.emc.s3g.scaleio.repository.entity.wrappers.VTreeWrapper["rootVolumes"]) 2020-06-12 13:23:01,377 [https-jsse-nio-443-exec-8] DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver - Invoking @ExceptionHandler method: public com.emc.s3g.scaleio.web.entity.Result com.emc.s3g.scaleio.web.controller.BaseController.handleException(java.lang.Exception,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2020-06-12 13:23:01,389 [https-jsse-nio-443-exec-8] ERROR c.e.s.s.w.c.SpecialImplController - Got an exception in handleException org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: (was java.lang.NullPointerException) (through reference chain: java.util.HashMap["vTreeList"]->java.util.ArrayList[74]->com.emc.s3g.scaleio.repos itory.entity.wrappers.VTreeWrapper["rootVolumes"]); nested exception is org.codehaus.jackson.map.JsonMappingException: (was java.lang.NullPointerException
Scenario
Si sono verificate eliminazioni di volumi poco prima della chiamata all'API REST.
Impatto
Errori di query dell'API REST
Cause
L'eliminazione dei volumi richiede tempo e non tutte le strutture di dati vengono rimosse contemporaneamente. Ciò potrebbe far sì che il server API REST non riesca a generare una risposta ad alcune chiamate API REST.
Resolution
Riprova più tardi.
Al termine del processo in background per l'eliminazione del volume, la stessa chiamata API REST dovrebbe avere esito positivo.
Additional Information
Versioni interessate
3.0.x
3.0.1.x