Thanks a lot Remo and Nasir for your quick replies but I am still facing
this problem.
Based on your replies I did some googling and found this website which
showed how to configure sshkeys for nova

http://www.adminz.in/2015/04/enabling-instance-resizing-in-openstack.html

After following this I get a different error which says "Permission Denied"

The situation on my setup is that I have multinode setup and the storage is
mounted over nfs and /var/lib/nova folder is mounted on each compute node
so .ssh folder will be having same data on all the compute nodes.

192.168.x.x:/home/shared  1.1T   74G  921G   8% /var/lib/nova


This is how my files look
[root@controller ~(keystone_admin)]# ls -ltr /root/.ssh/
total 16
-rw-r--r--. 1 root root  400 May 25 08:15 id_rsa.pub
-rw-------. 1 root root 1675 May 25 08:15 id_rsa
-r--------. 1 root root  400 May 25 08:15 authorized_keys
-rw-r--r--  1 root root 1888 Oct 12 07:07 known_hosts
[root@controller ~(keystone_admin)]#

[root@controller ~(keystone_admin)]# ls -ltr /var/lib/nova/.ssh/
total 24
-rw------- 1 root root  981 Oct 13 04:04 authorized_keys
-rw------- 1 root root  23 Oct 13 04:04 config
-rw------- 1 root root 1678 Oct 13 04:04 id_rsa
-rw-r--r-- 1 root root  400 Oct 13 04:04 id_rsa.pub
[root@controller ~(keystone_admin)]#


BR,
Varun

On Mon, Oct 12, 2015 at 5:31 PM, Remo Mattei <[email protected]> wrote:

> id nova
>
> On Oct 12, 2015, at 07:53, Nasir Mahmood <[email protected]> wrote:
>
> Remo us right,
>
> Do a test here,
>
> On compute1
>
> #su - nova
> #touch `hostname.dat`
> #scp -p `hostname.dat` compute2:/var/lib/nova/instances/
>
> On compute2:
>
> #su - nova
> #touch `hostname.dat`
> #scp -p `hostname.dat` compute1:/var/lib/nova/instances/
>
> I don't remember exact username for nova user.
> On 12 Oct 2015 19:43, "Remo Mattei" <[email protected]> wrote:
>
>> To make this work just login as nova, create an ssh key copy that key
>> over the compute and you should be fine. I would do ssh-copy-id from the
>> nova to the other machines.
>>
>> Repeat this as needed. (compute 1 to compute 2 etc)
>>
>> Remo
>>
>> On Oct 12, 2015, at 07:00, Nasir Mahmood <[email protected]> wrote:
>>
>> Varun,
>>
>> Yes,  it's key based authentication for nova user or in other words
>> passwordless authentication based on ssh keys.. apologise for confusing
>> lines
>> On 12 Oct 2015 18:20, "varun bhatnagar" <[email protected]> wrote:
>>
>>> Hello Nasir,
>>>
>>> Thanks for your reply.
>>> When you say "enable ssh Keys authentication for nova user between
>>> compute nodes" do you mean setting some parameter in nova.conf or do you
>>> mean setting public keys so that a user can ssh without using password?
>>>
>>> BR,
>>> Varun
>>>
>>> On Mon, Oct 12, 2015 at 2:37 PM, Nasir Mahmood <[email protected]>
>>>  wrote:
>>>
>>>> did you enable ssh Keys authentication for nova user between compute
>>>> nodes?
>>>>
>>>>
>>>> On Mon, Oct 12, 2015 at 5:25 PM, varun bhatnagar <[email protected]
>>>> > wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have OpenStack Juno with multinode setup.
>>>>> The instance storage is mounted over NFS and is shared between all the
>>>>> computes.
>>>>> I am trying to migrate an instance but while doing so the instance
>>>>> runs into ERROR state by throwing the below error message:
>>>>>
>>>>> *Failed to launch instance "test_instance": Please try again later
>>>>> [Error: Unexpected error while running command. Command: ssh
>>>>> 192.168.151.104 mkdir -p
>>>>> /var/lib/nova/instances/328dc46e-8a1e-44ae-8450-6619b66203cd Exit code: 
>>>>> 255
>>>>> Stdout: u'' Stderr: u'Host key verification failed.\r\n']. *
>>>>>
>>>>> When I try to execute this command *(mkdir -p
>>>>> /var/lib/nova/instances/328dc46e-8a1e-44ae-8450-6619b66203cd) *it
>>>>> gets executed properly.
>>>>>
>>>>> Can anyone please help in fixing this?
>>>>>
>>>>> BR,
>>>>> Varun
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list:
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>> Post to     : [email protected]
>>>>> Unsubscribe :
>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Nasir Mahmood
>>>>
>>>
>>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : [email protected]
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>> !DSPAM:1,561bbfba118169940716644!
>>
>>
>> !DSPAM:1,561bcb46152291244917990!
>
>
>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to