NVP vProxy: Registrazione non riuscita "Impossibile accedere a vCenter.. Nome utente o password non corretti"
Summary: La registrazione di un vProxy NetWorker VMware Protection (NVP) ha esito negativo. L'errore restituito è "HTTP 500 Unable to log in to vCenter 'vcsa.amer.lan': ServerFaultCode: Impossibile completare l'accesso a causa di nome utente o password errati."" ...
Symptoms
La registrazione di un vProxy NetWorker VMware Protection (NVP) ha esito negativo.
Il seguente errore viene registrato nella sezione Log della scheda Monitoring di NetWorker Management Console (NMC):
VM proxy Warning: Unable to register NSR VMware proxy 'VPROXY_NAME': Received an HTTP code: 500, libcurl message: "", vProxy message: "Error received from vProxy ="500: Unable to log in to vCenter 'VCENTER_NAME': ServerFaultCode: Cannot complete login due to an incorrect user name or password.".
La daemon.raw di rendering del server NetWorker riporta gli stessi errori:
Windows: C:\Program Files\EMC NetWorker\nsr\logs\daemon.raw
Esempio:
71193 02/05/2025 10:50:45 AM nsrd NSR info VM proxy Info: Initiating registration of NSR VMware proxy 'nsr-vproxy01.amer.lan' 71193 02/05/2025 10:50:50 AM nsrd NSR info VM proxy Warning: Unable to register NSR VMware proxy 'nsr-vproxy01.amer.lan': Received an HTTP code: 500, vProxy ="500: Unable to log in to vCenter 'vcsa.amer.lan': ServerFaultCode: Cannot complete login due to an incorrect user name or password.".
L'aggiornamento di VMware View di NMC funziona. Ciò convalida che il server NetWorker disponga delle credenziali vCenter corrette.
Cause
Scenario di esempio.
L'appliance vProxy ha un indirizzo IP errato nel file /etc/hosts. Il vProxy può eseguire il ping di questo indirizzo IP. L'indirizzo IP è per un altro VMware vCenter, quindi anche le connessioni alla porta 443 hanno esito positivo; tuttavia, non è il vCenter corretto, quindi l'autenticazione non riesce:
nsr-vproxy01:~ # ping -c 4 vcsa.amer.lan PING vcsa.amer.lan (192.168.9.114) 56(84) bytes of data. 64 bytes from vcsa.amer.lan (192.168.9.114): icmp_seq=1 ttl=64 time=0.455 ms 64 bytes from vcsa.amer.lan (192.168.9.114): icmp_seq=2 ttl=64 time=0.399 ms 64 bytes from vcsa.amer.lan (192.168.9.114): icmp_seq=3 ttl=64 time=0.698 ms 64 bytes from vcsa.amer.lan (192.168.9.114): icmp_seq=4 ttl=64 time=0.361 ms --- vcsa.amer.lan ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3049ms rtt min/avg/max/mdev = 0.361/0.478/0.698/0.131 ms nsr-vproxy01:~ # nsr-vproxy01:~ # curl -v vcsa.amer.lan:443 * Trying 192.168.9.114:443... * Connected to vcsa.amer.lan (192.168.9.114) port 443 (#0) > GET / HTTP/1.1 > Host: vcsa.amer.lan:443 > User-Agent: curl/8.0.1 > Accept: */* > * Empty reply from server * Closing connection 0 curl: (52) Empty reply from serverDal server NetWorker è possibile vedere che vCenter viene risolto in un indirizzo IP diverso:
[root@nsr ~]# nslookup vcsa.amer.lan
Server: 192.168.9.100
Address: 192.168.9.100#53
Name: vcsa.amer.lan
Address: 192.168.9.111
Resolution
Si tratta di un problema di risoluzione dei nomi.
NetWorker: Best practice per la risoluzione dei problemi relativi alla risoluzione dei nomi
- Se l'indirizzo IP di vCenter è impostato nel file /etc/hosts di vProxy, assicurarsi che sia l'indirizzo IP corretto per vCenter. Inoltre, assicurarsi che il file /etc/hosts non contenga più voci per il nome host o l'indirizzo IP di vCenter.
- Se l'indirizzo IP di vCenter non è impostato nel file /etc/hosts del vProxy, assicurarsi che venga risolto nel server DNS corretto. Gli indirizzi dei server DNS sono definiti nel file /etc/resolv.conf di vProxy.
- Le impostazioni del server DNS vProxy possono essere corrette come segue: NVP vProxy: Come modificare manualmente le impostazioni dell'interfaccia di rete dell'appliance vProxy
- In alternativa, è possibile definire l'indirizzo IP corretto nel file /etc/host del vProxy aderente al formato del file hosts:
IP_ADDRESS VCENTER_FQDN VCENTER_SHORTNAME_ALIAS
Una volta che il vProxy viene risolto nell'indirizzo IP vCenter corretto, il processo di registrazione riesce:
Additional Information
Se l'aggiornamento di VMware View NMC non riesce, potrebbe essersi verificato un problema durante la risoluzione o l'autenticazione con vCenter dal server NetWorker.
1. Assicurarsi che il server NetWorker stia risolvendo il nome host vCenter nell'indirizzo IP corretto. Controllare il file hosts del server NetWorker per individuare eventuali indirizzi IP in conflitto per il vCenter Server.
Windows: C:\Windows\System32\drivers\etc\hosts
C. Se non è possibile accedere a vSphere, consultare l'amministratore VMware per verificare che l'account sia corretto, non bloccato e che la password sia corretta.
L'utilità ProxyHC può essere utilizzata anche per convalidare la connettività e le autorizzazioni di vCenter. Consultare: NVP-vProxy: Come utilizzare lo strumento di controllo integrità ProxyHC sull'appliance vProxy