[Openstack] Unable to migrate instance

Remo Mattei remo at italy1.com
Mon Oct 12 15:31:49 UTC 2015


id nova
> On Oct 12, 2015, at 07:53, Nasir Mahmood <nasir.mahmood at gmail.com> 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" <remo at italy1.com <mailto:remo at italy1.com>> 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 <nasir.mahmood at gmail.com <mailto:nasir.mahmood at gmail.com>> 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" <varun292006 at gmail.com <mailto:varun292006 at gmail.com>> 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 <nasir.mahmood at gmail.com <mailto:nasir.mahmood at gmail.com>> wrote:
>> did you enable ssh Keys authentication for nova user between compute nodes?
>> 
>> 
>> On Mon, Oct 12, 2015 at 5:25 PM, varun bhatnagar <varun292006 at gmail.com <mailto:varun292006 at gmail.com>> 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 <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>> Post to     : openstack at lists.openstack.org <mailto:openstack at lists.openstack.org>
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>> 
>> 
>> 
>> 
>> -- 
>> Nasir Mahmood
>> 
>> _______________________________________________
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>> Post to     : openstack at lists.openstack.org <mailto:openstack at lists.openstack.org>
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>> 
>> 
>> !DSPAM:1,561bbfba118169940716644!
> 
> !DSPAM:1,561bcb46152291244917990!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20151012/f1252f2a/attachment.html>


More information about the Openstack mailing list