Add a host operation successfully with warning message on the UI.

Problem

Add a host operation successfully with warning message on UI.

Explanation

When adding a host successfully some warning information may be shown on the UI. It means the deploy VM basic function works except the migration.

Warning: Existing access key files for user 'username' on compute node 'host_name_id' may lead to live migration not work.

This warning information is shown on the UI:

Existing access key files for user 'username' on compute node 'host_name_id' may lead to live migration not work.

'username': the user name to manage the compute node by the IBM®Cloud Infrastructure Center.

'host_name_id': is the host name which is added to the management node. like: kvm4

Resolution to clean up the failed add host action

This message is caused by the existing key files for the user. The conflicting files need to be removed and the host needs to be added again. Follow the steps beneath for a manual clean up.

  1. Remove the host from the UI.

  2. Get the home directory path of the user from command 'echo ~username' like: 'echo ~root'.

  3. Check and remove the conflicting files. First, login to the host and go to the home directory get from step 2, check the item files 'authorized_keys' and remove the information included in 'id_rsa.pub' from 'authorized_keys'. Finally remove the files 'id_rsa' and 'id_rsa.pub' if they are existing.

  4. Re-add host.