Unable to update master entry in the /etc/hosts error
book
Article ID: 323305
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
The purpose of this article is to enable SSH login for root user incase of VMware Identity Manager cluster installation failure in vRealize Lifecycle Manager.
Symptoms: VMware Identity Manager cluster installation fails in vRealize Lifecycle manager with the error message "Unable to update master entry in the /etc/hosts file on the vIDM instance.Refer to the log for additional details and retry." And exception message "Cannot execute SSH commands. Verify the SSH login credentials."
Cause
SSH connectivity issues
Failing to enable root user SSH login for one or multiple nodes
Resolution
vRealize Lifecycle Manager 8.4.1 Patch 1
Workaround: To workaround this issue:
Check if login for root user works on all the vIDM nodes, If yes, retry the request from vRealize Lifecycle manager. The issue might have been caused due to temporary SSH connectivity issue. If unable to login using root user, proceed to the step 2.
Perform below steps on all the vIDM nodes
Login to vIDM nodes using sshuser credentials
Check if root user login is enabled by executing below command, ‘PermitRootLogin’ value should be ‘yes’ in /etc/ssh/sshd_config if root user login is enabled. $sudo grep "PermitRootLogin" /etc/ssh/sshd_config
If root user login is not enabled, then execute below commands to enable root user $sudo sed -i -e "s/\(PermitRootLogin\ \).*/\1yes/" /etc/ssh/sshd_config
Restart sshd service on the node $sudo service sshd restart
Once the sshd service is started, try SSH login using root user credentials to confirm the changes are applied
Retry the request from vRealize Lifecycle Manager
Note: Provide password when prompted while executing sudo commands