<tt><font size=2>Hi Chris,</font></tt>
<br>
<br><tt><font size=2>You probably encountered this bug: </font></tt><a href="https://bugs.launchpad.net/nova/+bug/1156269"><tt><font size=2><b>https://bugs.launchpad.net/nova/+bug/1156269</b></font></tt></a>
<br><tt><font size=2>It been fixed here: </font></tt><a href=https://review.openstack.org/#/c/24600/><tt><font size=2>https://review.openstack.org/#/c/24600/</font></tt></a><tt><font size=2><br>
Btw, what code are you using?</font></tt>
<br>
<br><tt><font size=2>Thanks,</font></tt>
<br><tt><font size=2>Pavel</font></tt>
<br>
<br><tt><font size=2>> Date: Wed, 2 Oct 2013 15:30:11 -0600<br>
> From: Chris Friesen <chris.friesen@windriver.com><br>
> <br>
> Hi all,<br>
> <br>
> I posted this on the IRC channel but got no response, so I'll try
here.<br>
> <br>
> Suppose I do the following:<br>
> <br>
> 1) create an instance (instance files not on shared storage)<br>
> 2) kill its compute node and evacuate the instance to another node<br>
> 3) boot up the original compute node<br>
> 4) kill the second compute node and evacuate back to the first compute
node<br>
> <br>
> In step 4 it seems to be failing a check in rebuild_instance() because
<br>
> it finds the old instance file on the disk at/var/lib/nova/instances/.
<br>
> Is this a bug? If not, what's the intended behaviour
in this case? <br>
> Surely the admin isn't supposed to manually wipe a compute node before
<br>
> reconnecting it to the network...<br>
> <br>
> It seems to me that when the original compute node boots up it should
<br>
> recognize that the instance has been evacuated and delete the instance
<br>
> file on the disk.<br>
> <br>
> Or is the problem that it doesn't know whether the instances are on
<br>
> shared storage (in which case we wouldn't want to delete the instance
<br>
> file) or local storage (in which case we would)? If this is
the case, <br>
> then maybe we should embed the storage type in the instance itself--this
<br>
> would also let us avoid having to manually specify --on-shared-storage
<br>
> in the "evacuate" call.</font></tt>
<br>
<br>
<br><tt><font size=2><br>
> <br>
> Thanks,<br>
> Chris<br>
</font></tt>