<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Has anybody ever written a script that grabs the host public key from the instance's console and updates the .ssh/config/known_hosts file accordingly, instead of throwing away host key checking?  That would be a handy little thing if it was out there.<br><div><br></div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/">www.nimbisservices.com</a></div><div><br></div></div></span></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On May 21, 2012, at 6:09 AM, Joe Breu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Eric,
<div><br>
</div>
<div>It would appear that the nova user on one of the compute nodes had at one time cached the SSH host key of the other node and now the key has changed.  You can bypass this by adding the following to ~nova/.ssh/config on both compute nodes:</div>
<div><br>
</div>
<div>
<div>Host *</div>
<div>   StrictHostKeyChecking no</div>
<div>   UserKnownHostsFile=/dev/null</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>---</div>
<div>Joseph Breu</div>
<div>Deployment Engineer</div>
<div>Rackspace Cloud Builders</div>
<div>210-312-3508</div>
</div>
</div>
<br>
<div>
<div>On May 21, 2012, at 11:34 AM, Eric Luo wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hello ,all.
<div><br>
</div>
<div>I have a two nodes installation . OS1 is the cloud controller ,and OS2 is a nova-compute node.</div>
<div>I have a vm (name as vm1)  running on OS1.</div>
<div>When I use the command <b>  nova migrate  vm1 </b></div>
<div><b><br>
</b></div>
<div>The dashboard is showing the vm1 as : status :error ,task :<span style="color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:13px;line-height:18px;text-align:left">Resize Prep</span></div>
<div><span style="text-align:left"><font color="#333333" face="Ubuntu, Bitstream Vera Sans, DejaVu Sans, Tahoma, sans-serif"><span style="line-height:18px">I tail ed  the nova-compute.log in OS1, and found the following error information while running the  </span></font></span><b> nova
 migrate  vm1 </b>command :</div>
<div><br>
</div>
<div><br>
</div>
<div>Can someone please explain to me what does these error mean ,and what's wrong with my config ...</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><font color="#ff0000">2012-05-21 17:20:45 ERROR nova.compute.manager [req-d0f494cb-e9d6-41d2-b6df-6faa432a644d 6ffaaedb60c24f5eb888319e1e387d75 0d7a5a12b6f54aa9bff986bf138bc0b7] Unex </font><span style="color:rgb(255,0,0)">pected error while running command.</span></div>
<div><font color="#ff0000">Command: ssh 192.168.0.205 mkdir -p /var/lib/nova/instances/instance-0000000a</font></div>
<div><font color="#ff0000">Exit code: 255</font></div>
<div><font color="#ff0000">Stdout: ''</font></div>
<div><font color="#ff0000">Stderr: 'Host key verification failed.\r\n'. Setting instance vm_state to ERROR</font></div>
<div>2012-05-21 17:20:45 ERROR nova.rpc.amqp [req-d0f494cb-e9d6-41d2-b6df-6faa432a644d 6ffaaedb60c24f5eb888319e1e387d75 0d7a5a12b6f54aa9bff986bf138bc0b7] Exception during message handling</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp Traceback (most recent call last):</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 252, in _process_data</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     rval = node_func(context=ctxt, **node_args)</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     return f(*args, **kw)</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 153, in decorated_function</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     function(self, context, instance_uuid, *args, **kwargs)</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_function</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     sys.exc_info())</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     self.gen.next()</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 171, in decorated_function</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     return function(self, context, instance_uuid, *args, **kwargs)</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1330, in resize_instance</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     self._set_instance_error_state(context, instance_uuid)</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     self.gen.next()</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1325, in resize_instance</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     instance_type_ref, self._legacy_nw_info(network_info))</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp     return f(*args, **kw)</div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 2363, in migrate_disk_and_power_off</div>
<div><font color="#ff0000">2012-05-21 17:20:45 TRACE nova.rpc.amqp     raise e</font></div>
<div><font color="#ff0000">2012-05-21 17:20:45 TRACE nova.rpc.amqp ProcessExecutionError: Unexpected error while running command.</font></div>
<div><font color="#ff0000">2012-05-21 17:20:45 TRACE nova.rpc.amqp Command: ssh 192.168.0.205 mkdir -p /var/lib/nova/instances/instance-0000000a</font></div>
<div><font color="#ff0000">2012-05-21 17:20:45 TRACE nova.rpc.amqp Exit code: 255</font></div>
<div><font color="#ff0000">2012-05-21 17:20:45 TRACE nova.rpc.amqp Stdout: ''</font></div>
<div><font color="#ff0000">2012-05-21 17:20:45 TRACE nova.rpc.amqp Stderr: 'Host key verification failed.\r\n'</font></div>
<div>2012-05-21 17:20:45 TRACE nova.rpc.amqp</div>
<div>^C</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br>
</blockquote>
</div>
<br>
</div>
</div>

_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></body></html>