Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sorry Mate for the late reply. I hope you got it fixed by now. Nova user has no password, as the service is not interactive, it needs passwordless access to the compute nodes. To enable this create a .ssh directory in the Nova user’s home directory, its specified in the /etc/passwd file entry for nova. 1) Edit /etc/passwd to have the following: nova:x:115:122::/var/lib/nova:/bin/bash 2) next you need to generate rsa keys for each node and assign those to every other node, so as the root user on every host do:

su – nova

$pwd (should be in /var/lib/nova) $mkdir .ssh $chmod 700 .ssh $cd .ssh $ssh-keygen – press “enter” for each prompt create an "authorized_keys" file and copy the id_rsa.pub from each host into each others authorized_keys file. So 3 hosts equals 3 entries for each host's authorized_keys file. $chmod 600 authorized_keys – make sure the authorized_keys file is read/write by nova only Log into each host from every other host, if prompted to accept a key, do so! $su - nova $ssh nova@compute2 $ssh nova@compute1 Please let me know if you need any more clarification in any steps.

Sorry Mate for the late reply. I hope you got it fixed by now. now.

Nova user has no password, as the service is not interactive, it needs passwordless access to the compute nodes. To enable this create a .ssh directory in the Nova user’s home directory, its specified in the /etc/passwd file entry for nova.

1) Edit /etc/passwd to have the following: following:

nova:x:115:122::/var/lib/nova:/bin/bash

2) next you need to generate rsa keys for each node and assign those to every other node, so as the root user on every host do:

su
#su – nova

nova $pwd (should be in /var/lib/nova) $mkdir .ssh $chmod 700 .ssh $cd .ssh $ssh-keygen – press “enter” for each prompt create

3) Create an "authorized_keys" file and copy the id_rsa.pub from each host into each others authorized_keys file. So 3 hosts equals 3 entries for each host's authorized_keys file. file.

$chmod 600 authorized_keys  – make sure the authorized_keys file is read/write by nova only

Log into each host from every other host, if prompted to accept a key, do so!

$su - nova
$ssh nova@compute2
$ssh nova@compute1 
nova@compute1

Please let me know if you need any more clarification in any steps.