Logging in to tenant fails after adding authenticated proxy config in VAMI in vRealize Automation 7.x
book
Article ID: 328137
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
Symptoms:
Logging in to a tenant fails after adding authenticated proxy config in VAMI
When using the vsphere.local, the login page comes up. Although no local users have access to the tenant so they are unable to log on
On the Tenant Login page, when trying to use their login domain or the default tenant, you see the error similar to:
Error Unable to get metadata
In the /storage/log/vmware/horizon/connector.log file of the VMware vRealize Automation 7.x appliance, you see entries similar to:
2016-02-05 09:45:17,042 ERROR (tomcat-http--3) [;;] com.vmware.horizon.common.api.token.SuiteToken - Initialization failed: Could not obtain public key from configured URL: <vRAAppFQDN...ibute=publicKey<BR>2016-02-05 09:45:17,042 INFO (tomcat-http--3) [;;] com.vmware.horizon.common.api.token.SuiteToken - Suite token failed to initialize. 2016-02-05 09:45:17,042 INFO (tomcat-http--3) [;;] com.vmware.horizon.common.api.token.SuiteToken - Initializing keyStore for SuiteToken. 2016-02-05 09:45:17,042 ERROR (tomcat-http--3) [;;] com.vmware.horizon.common.api.token.SuiteToken - Couldn't get suite token public key from tenant. java.net.UnknownHostException: HTTPS_PROXY= at java.net.InetAddress.getAllByName0(InetAddress.java:1280)
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Cause
This issue occurs when using an authenticated proxy for the appliance update downloads.
Setting a proxy adds the proxy details in /etc/environment and /etc/sysconfig/proxy file. During login, vIDM reads this information from the /etc/sysconfig/proxy file.
Resolution
This is a known issue affecting VMware vRealize Automation 7.x.
Currently, there is no resolution.
To work around this issue:
Enable authenticated proxy from the Virtual Appliance Management Interface (VAMI).
Open an ssh session to your appliance and log in as the root user.
Open proxy file by running this command:
vi /etc/sysconfig/proxy
Add NO_PROXY=your_hostname.
For example:
After the change, the value of NO_PROXY should look similar to:
NO_PROXY="localhost, 127.0.0.1, vra01.corp.local"
Save the file.
Restart the service by running this command:
service horizon-workspace restart
Wait for about 5 minutes and attempt to log in again.
Another interim solution is to disable the proxy or the proxy authentication in the VAMI again, then restart the horizon-workspace and vcac-server services to be able to successfully log in to the portal.