Il nuovo deployment di Avamar - Dell EMC Cloud Director Data Protection Extension (DPE) non riesce con errore "The cloud credentials are invalid."

Summary: DPE: il nuovo deployment ha esito negativo con messaggio di errore "The cloud credentials are invalid".

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

Durante il deployment iniziale di Dell EMC Cloud Director Data Protection Extension (DPE) versione 19.3 o successiva, il passaggio iniziale del deployment del nodo non riesce per l'ambiente

vCloud 10.x. L'output è simile al seguente:
dpe.example.com: # vcp-cli node init -c=node-init.yaml
Input password:
Error:
The cloud credentials are invalid.

Tuttavia, le credenziali vcloud in node-init.yaml sono corrette e l'accesso all'interfaccia utente di VMware Provider (https://vcloud.example.com/provider ) in un browser ha esito positivo.


Nel nodo DPE, in /var/log/vcp/vcp-manager.log viene visualizzato quanto segue: 
 
2021-04-22 14:47:04.218  INFO 12941 --- [https-jsse-nio-9000-exec-3] com.emc.vcp.dpem.service.NodeService     : login to cloud: vcloud.example.com by user administrator@system
2021-04-22 14:47:04.243  WARN 12941 --- [https-jsse-nio-9000-exec-3] c.e.v.d.e.ExceptionConfiguration         :
com.emc.vcp.dpem.exception.AppServerException: The cloud credentials are invalid.
        at com.emc.vcp.dpem.service.NodeService.cloudLogin(NodeService.java:391)
        at com.emc.vcp.dpem.service.NodeService.setCloud(NodeService.java:355)
        at com.emc.vcp.dpem.service.NodeService.init(NodeService.java:203)
        at com.emc.vcp.dpem.controller.NodeController.init(NodeController.java:50)
        at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 

Cause

Il VMware Cloud System Administrator ha disabilitato l'endpoint API legacy. 

Normalmente questo servizio è abilitato per impostazione predefinita ed è richiesto per DPE.     Nella cella vcloud l'amministratore vmware ha eseguito questo comando vcd cell management per modificare il comportamento dell'API; questo comando vmware causerà un errore di deployment del DPE. 
 
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n vcloud.api.legacy.nonprovideronly -v true

Per ulteriori informazioni, consultare questa pagina:  

https://docs.vmware.com/en/VMware-Cloud-Director/10.0/com.vmware.vcloud.install.doc/GUID-84390C8F-E8C5-4137-A1A5-53EC27FE0024.htmlRisoluzione dei problemi: 

Seguendo VMware KB 56948 , possiamo notare che anche l'endpoint api/sessioni ha esito negativo con HTTP 401, indipendentemente dalla versione dell'API o dal nome utente/password utilizzati. 

Ad esempio, questo comando curl testerà l'accesso ad api/sessioni utilizzando nome utente administrator@system/password 30.0 
curl -k -I --header "Accept: application/*;version=30.0"  --header "Authorization: Basic `echo -n administrator@system:Password |base64`"  --request POST https://vcloud.example.com/api/sessions

Quando l'API legacy è abilitata, il comando curl dovrebbe restituire il codice di stato HTTP 200 e il token di autenticazione come questo 
 
HTTP/1.1 200 OK
Date: Thu, 03 Jun 2021 19:59:20 GMT
X-VMWARE-VCLOUD-REQUEST-ID: c8cb4fe3-e9ea-4abc-a135-cb284b7e1ea5
X-VMWARE-VCLOUD-ACCESS-TOKEN: eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yIiwiaXNzIjoiYTkzYzlkYjktNzQ3MS0zMTkyLThkMDktYThmN2VlZGE4NWY5QGNhODM3MGRmLWFhM2QtNGE4YS1iZDNkLTM5MzZjOGJkMzAxNiIsImV4cCI6MTYyMjgzNjc2MCwidmVyc2lvbiI6InZjbG91ZF8xLjAiLCJqdGkiOiIyYjIyZDkwNDk1NTI0MDJjOTI4YzRmYzFiYzUyNGY5YiJ9.HttOVBg-mRm94c64GdTyvofcK6m22PSPbY-qNrKnVGg6ATcfabRsSJ_q-3YdKGx37BizRGOnxGwCG3mVc3O4suv6qU8WOQgmhd9-f-FF-xL9KHz3m5t2dxwSIUOJ0-0ePLfLrYdBy5l-H-1BHaU9bsMnGXem9ql1oAAuVAf5Epv0lZ7j9CBQG7-V1HP35dv2FAUuS5Mdppc1onOlOhxsBU8N9DKzy04wWkRAXpOz1z32lE4vKP-gqlw8nNxI6z_XpaUcg-BWuduhJt2jJrqTKyEo1lqvTixGyNIUI7XSJ1JDP76YgN1jO8qcl4NsYihRe60X8Fqv-z7xlcA_9j1Rpg
X-VMWARE-VCLOUD-TOKEN-TYPE: Bearer
x-vcloud-authorization: 2b22d9049552402c928c4fc1bc524f9b
Content-Type: application/vnd.vmware.vcloud.session+xml;version=30.0
X-VMWARE-VCLOUD-REQUEST-EXECUTION-TIME: 404
Cache-Control: no-store, must-revalidate
Vary: Accept-Encoding, User-Agent
Content-Length: 2512
dpe-test:~ #

quando api/sessions è disabilitato (vcloud.api.legacy.nonprovideronly -v true), la risposta HTTP sarà sempre HTTP 401, indipendentemente dal nome utente e dalla password.  
dpe-test:~ # curl -k -I --header "Accept: application/*;version=30.0"  --header "Authorization: Basic `echo -n administrator@system:Password |base64`"  --request POST https://vcloud.example.com/api/sessions
HTTP/1.1 401 Unauthorized
Date: Thu, 03 Jun 2021 21:08:26 GMT
X-VMWARE-VCLOUD-REQUEST-ID: f620175f-0df2-43dd-8ac6-0b8246ca9e2f
Content-Length: 0

Resolution

Per utilizzare Dell EMC Cloud Director Data Protection Extension (DPE), è necessario che l'amministratore del sistema vcloud riattivi l'endpoint API legacy eseguendo questo comando sulle celle di directory vcloud.  
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n vcloud.api.legacy.nonprovideronly -v false

Affected Products

Avamar
Article Properties
Article Number: 000188038
Article Type: Solution
Last Modified: 23 ذو القعدة 1447
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.