OpenStack Juno migration permission denied error
I have a Juno multinode setup( Controller node, Network node, 2 Compute nodes) and I am trying to migrate a VM from 1 compute host to the other. I have been facing an error from sometime regarding “Permission denied, please try again”. Also when I try to do SSH from 1 host to other it asks for password and after entering the password it gives a permission denied error.
I was having a “host key verification failed” error and I followed these steps to solve that :
- 1 Obtain a key pair (public key and private key). You can use the root key that is in the `/root/.ssh/id_rsa and /root/.ssh/id_ras.pub directories or you can generate a new key pair.
Enable login abilities for the Nova user.
usermod -s /bin/bash nova
Now you can switch to the Nova account by using the following command.
su nova
Create the folder that is needed by ssh and place the private key that you obtained in step 1 into this folder.
mkdir -p /var/lib/nova/.ssh cp <private key> /var/lib/nova/.ssh/id_rsa cat<pub key> >> /var/lib/nova/.ssh/authorized_keys echo 'StrictHostKeyChecking no' >> /var/lib/nova/.ssh/config chmod 600 /var/lib/nova/.ssh/id_rsa /var/lib/nova/.ssh/authorized_keys
Repeat steps 2-4 on each node.
Ensure that the key is working properly.
su - nova ssh node-another
After following these steps we have landed into an error “Permission denied, please try again” and also we are not able to SSH between nodes and it is asking for a password.
You can get verbose information out of ssh with
ssh -vvv node-another
. Figure out if the otherside is rejecting the public key, or you are not sending it.Running the command we are getting an error "Permission denied". We followed the steps and have same public and private keys for controller node and compute hosts. Kindly let us know how to proceed. We are not even able to ssh between nodes may be that is the reason why migration is not happening.