<font size=2 face="sans-serif">As stated below, the following patch addresses
the VM recovery in this and few other scenarios: </font><a href=https://review.openstack.org/#/c/11086/><font size=2 face="sans-serif">https://review.openstack.org/#/c/11086/</font></a>
<br><font size=2 face="sans-serif">Also, there is another patch which can
be used to simplify failure detection: </font><a href=https://review.openstack.org/#/c/10903/><font size=2 face="sans-serif">https://review.openstack.org/#/c/10903/</font></a>
<br><font size=2 face="sans-serif">Unfortunately, neither of the two made
it for Folsom, and are planned to be merged once a stream targeting Grizzly
is available.</font>
<br><font size=2 face="sans-serif">Glad to here that there is a relatively
simple workaround meanwhile. </font>
<br><font size=2 face="sans-serif">Would be good to have a broader discussion
on this at the summit.</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">Alex</font>
<br><font size=2 face="sans-serif"><br>
<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Wolfgang Hennerbichler
<wolfgang.hennerbichler@risc-software.at></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Tom Fifield <fifieldt@unimelb.edu.au>,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">"openstack@lists.launchpad.net"
<openstack@lists.launchpad.net></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">20/09/2012 09:19 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [Openstack]
Compute Node Down!</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">openstack-bounces+glikson=il.ibm.com@lists.launchpad.net</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Thanks, that's what I ended up doing (by intuition
rather than knowledge) yesterday. I didn't know about nova rescue either.
<br>
I think this is a Big Big room for improvement here. In the best case this
should be discovered automatically and the switchover should be done without
human Intervention. <br>
<br>
Wolfgang <br>
<br>
-- <br>
Sent from my mobile device<br>
<br>
On 20.09.2012, at 07:26, "Tom Fifield" <fifieldt@unimelb.edu.au>
wrote:<br>
<br>
> On 20/09/12 13:50, Vishvananda Ishaya wrote:<br>
>> **<br>
>> <br>
>> On Wed, Sep 19, 2012 at 4:03 AM, Wolfgang Hennerbichler<br>
>> <wolfgang.hennerbichler@risc-software.at<br>
>> <</font></tt><a href="mailto:wolfgang.hennerbichler@risc-software.at"><tt><font size=2>mailto:wolfgang.hennerbichler@risc-software.at</font></tt></a><tt><font size=2>>>
wrote:<br>
>> <br>
>>    Hello Folks,<br>
>> <br>
>>    Although it seems a pretty straightforward scenario
I have a hard<br>
>>    time finding documentation on this.<br>
>>    One of my compute nodes broke down. All the instances
are on shared<br>
>>    storage, so no troubles here, but I don't know how
to tell openstack<br>
>>    that the VM should be deployed on another compute
node. I tried<br>
>>    fiddling around in the mysql-db with no success.<br>
>>    Any help is really appreciated.<br>
>> <br>
>>    Wolfgang<br>
> <br>
> <br>
> <br>
> <br>
> == Dead compute host ==<br>
> Working with the host information<br>
> <pre><br>
> i-000015b9 at3-ui02 running nectarkey (376, np-rcc54) 0 m1.xxlarge
2012-06-19T00:48:11.000Z 115.146.93.60<br>
> </pre><br>
> <br>
> # review the status of the host using the nova database, some of the
important information is highlighted below.<br>
> <pre><br>
> SELECT * FROM instances WHERE id = CONV('15b9', 16, 10) \G;<br>
> *************************** 1. row ***************************<br>
>              created_at: 2012-06-19
00:48:11<br>
>              updated_at: 2012-07-03
00:35:11<br>
>              deleted_at: NULL<br>
> ...<br>
>                    
 id: 5561<br>
> ...<br>
>             power_state: 5<br>
>                vm_state: shutoff<br>
> ...<br>
>                hostname: at3-ui02<br>
>                    host:
np-rcc54<br>
> ...<br>
>                    uuid:
3f57699a-e773-4650-a443-b4b37eed5a06<br>
> ...<br>
>              task_state: NULL<br>
> ...<br>
> </pre><br>
> <br>
> Update the vm's compute host.<br>
> <pre><br>
> UPDATE instances SET host = 'np-rcc46' WHERE uuid = '3f57699a-e773-4650-a443-b4b37eed5a06';<br>
> </pre><br>
> <br>
> Update the libvirt xml<br>
> <br>
> * change the DHCPSERVER value to the host ip address.<br>
> * possibly the VNC IP if it isn't already 0.0.0.0<br>
> <br>
> Dump a copy of a nwfilter to use as a template for creating the missing
nwfilter.<br>
> <pre><br>
> virsh nwfilter-list<br>
> vrish nwfilter-dumpxml nova-instance-instance-.....<br>
> </pre><br>
> <br>
> Example of the template file<br>
> <pre><br>
> <filter name='nova-instance-instance-00001cc6-fa163e003b43' chain='root'><br>
>  <uuid>d5f6f610-d0b8-4407-ae00-5dabef80677a</uuid><br>
>  <filterref filter='nova-base'/><br>
> </filter><br>
> <br>
> </pre><br>
> The filter name value is available from the instances.xml file (<filterref
filter="nova-instance-instance-00001cc6-fa163e003b43">).<br>
> *Note the filter name must be exact!<br>
> Generate a new uuid and replace it at the uuid value.<br>
> <br>
> Update filter to match id from instance xml<br>
> <pre><br>
> virsh nwfilter-define /tmp/filter.xml<br>
> virsh define libvirt.xml<br>
> virsh list --all<br>
> </pre><br>
> <br>
> Kill all dnsmasq and restart nova services.<br>
> <pre><br>
> killall dnsmasq; service nova-network restart; service nova-compute
restart<br>
> </pre><br>
> <br>
> Start the vm<br>
> <pre><br>
> virsh start instance-00000<br>
> </pre><br>
> <br>
> On the nova DB<br>
> <pre><br>
> UPDATE instances SET vm_state = 'active', power_state = 1 WHERE uuid
= '3f57699a-e773-4650-a443-b4b37eed5a06';<br>
> </pre><br>
> <br>
> _______________________________________________<br>
> Mailing list: </font></tt><a href=https://launchpad.net/~openstack><tt><font size=2>https://launchpad.net/~openstack</font></tt></a><tt><font size=2><br>
> Post to     : openstack@lists.launchpad.net<br>
> Unsubscribe : </font></tt><a href=https://launchpad.net/~openstack><tt><font size=2>https://launchpad.net/~openstack</font></tt></a><tt><font size=2><br>
> More help   : </font></tt><a href=https://help.launchpad.net/ListHelp><tt><font size=2>https://help.launchpad.net/ListHelp</font></tt></a><tt><font size=2><br>
<br>
_______________________________________________<br>
Mailing list: </font></tt><a href=https://launchpad.net/~openstack><tt><font size=2>https://launchpad.net/~openstack</font></tt></a><tt><font size=2><br>
Post to     : openstack@lists.launchpad.net<br>
Unsubscribe : </font></tt><a href=https://launchpad.net/~openstack><tt><font size=2>https://launchpad.net/~openstack</font></tt></a><tt><font size=2><br>
More help   : </font></tt><a href=https://help.launchpad.net/ListHelp><tt><font size=2>https://help.launchpad.net/ListHelp</font></tt></a><tt><font size=2><br>
<br>
</font></tt>
<br>