Unisphere for VMAX: Le chiamate API REST hanno esito negativo.
Summary: Unisphere for VMAX: Le chiamate API (Application Programming Interface) REST hanno esito negativo.
Symptoms
Le chiamate API REST hanno esito negativo. Baseboard Management Control (BMC) Capacity Optimization (BCO) è uno strumento che utilizza chiamate API REST per eseguire query sulle informazioni da Unisphere per segnalarle all'interfaccia utente (UI) BCO.
BCO non mostra dati per Symmetrix. BCO è configurato per raccogliere informazioni da Unisphere for VMAX (UNIVMAX) come utente Perfmon.
In questo caso, lo strumento BCO di BMC ha tentato di eseguire una query delle informazioni da Unisphere e ha restituito il seguente errore:
Response: HTTP/1.1 403 Forbidden Server: Apache-Coyote/1.1 Date: Wed, 02 Mar 2016 15:58:55 GMT Accept-Ranges: bytes Server: Restlet-Framework/2.1.2 RESTAPI-PROCESSING-TIME: 22 RESTAPI-ACTIVE-SESSION-COUNT: 2 Content-Type: application/xml Transfer-Encoding: chunked <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <exception xmlns="http://www.emc.com/em/2012/07/univmax/restapi/common" xmlns:ns2="http://www.emc.com/em/2012/07/univmax/restapi/management" xmlns:ns3="http://www.emc.com/em/2012/07/univmax/restapi/mobile" xmlns:ns4="http://www.emc.com/em/2012/07/univmax/restapi/performance" message="User is not authorized for symmetrixId [000xxxxxxxxx]"/> Request: POST https://<UNIVMAX_SERVER_IP>:8443/univmax/restapi/performance/FEDirector/keys HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: application/xml Accept: application/xml Content-Length: 280 Host: UNIVMAX_SERVER:8443 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) Cookie: JSESSIONID=bRaJZl6VUZbus-6yWmD0FZa8 Cookie2: $Version=1 Authorization: Basic <REDACTED> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns2:feDirectorKeyParam xmlns="http://www.emc.com/em/2012/07/univmax/restapi/common" xmlns:ns2="http://www.emc.com/em/2012/07/univmax/restapi/performance"> <symmetrixId>000xxxxxxxxx</symmetrixId> </ns2:feDirectorKeyParam>
Le chiamate RESTAPI da un client Mozilla Firefox a Unisphere for VMAX non riuscivano quando si utilizzava un utente Perfmon. Funziona correttamente con un utente amministratore (smc).
Cause
Resolution
Per risolvere questo problema, assicurarsi che il nome utente (con distinzione tra maiuscole e minuscole) sia stato aggiunto correttamente all'elenco di autorizzazioni Symmetrix (symauth list -users -sid xxx) con privilegi appropriati.
Additional Information
In questo caso, il nome utente aveva un prefisso del nome host, che ha causato il problema. La rimozione del prefisso del nome host per tale utente dall'elenco symauth ha risolto il problema.
Gli utenti a cui è consentito l'accesso alle metriche delle prestazioni Symmetrix:
- Amministratore
- Storage Administrator
- Monitoraggio delle prestazioni
- Monitor
Utenti a cui non è consentito l'accesso alle metriche delle prestazioni Symmetrix:
- Uditore
- Security Administrator
- None
Per informazioni dettagliate, fare riferimento a Unisphere for VMAX RESTAPI Programmer's Guide . La documentazione è disponibile nel supporto online Dell EMC all'indirizzo https://www.dell.com/support/product-details/en-us/product/unisphere-for-vmax/docs