Unable to update master entry in the /etc/hosts error
search cancel

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

  1. SSH connectivity issues
  2. 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:
  1. 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.
  2. Perform below steps on all the vIDM nodes
    1. Login to vIDM nodes using sshuser credentials
    2. 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
    3. 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
    4. Restart sshd service on the node
      $sudo service sshd restart
    5. Once the sshd service is started, try SSH login using root user credentials to confirm the changes are applied
    6. Retry the request from vRealize Lifecycle Manager

          Note: Provide password when prompted while executing sudo commands