<div class="gmail_quote">On Thu, May 24, 2012 at 11:32 AM, Andrew Glen-Young <span dir="ltr"><<a href="mailto:andrew.glen-young@canonical.com" target="_blank">andrew.glen-young@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu <a href="tel:24-05-2012%2010" value="+12405201210">24-05-2012 10</a>:57 ›, Christian Parpart wrote:<br>
> On Thu, May 24, 2012 at 10:49 AM, Diego Parrilla Santamaría <<br>
> <a href="mailto:diego.parrilla.santamaria@gmail.com">diego.parrilla.santamaria@gmail.com</a>> wrote:<br>
><br>
> > You have two interesting parameters you can use to automatically launch<br>
> > the images after reboot:<br>
> ><br>
> > resume_guests_state_on_host_boot<br>
> > start_guests_on_host_boot<br>
> ><br>
><br>
> Yep, I first thought it might be something like this, too, however, the<br>
> dashboard actually pretends that they're up.<br>
> but nothing is running. The `nova list` output even says that they're<br>
> running, too, but they aren't :)<br>
> So I then tried to push the "reboot" button in the dashboard, and since<br>
> then they're in infinite "restarting" state.<br>
<br>
</div>The running status may be a result of the 'reboot' definition in the<br>
compute API.<br>
<br>
The VM state is first set to active and then the VM is told to reboot.<br>
If the VM fails to come up, the database will have the VM marked as<br>
active even if it really is not.<br>
<br>
<br>
nova/compute/api.py:<br>
<br>
<br>
    def reboot(self, context, instance, reboot_type):<br>
        """Reboot the given instance."""<br>
        state = {'SOFT': task_states.REBOOTING,<br>
                 'HARD': task_states.REBOOTING_HARD}[reboot_type]<br>
        self.update(context,<br>
                    instance,<br>
                    vm_state=vm_states.ACTIVE,<br>
                    task_state=state)<br>
        self._cast_compute_message('reboot_instance', context, instance,<br>
                params={'reboot_type': reboot_type})<br>
<br>
<br>
To get the system into a good state, I have needed to terminate the<br>
instances. The termination throws an exception on the compute nodes, but<br>
the VMs are no longer marked as running.</blockquote><div><br></div><div>Hey,</div><div><br></div><div>and this means, that it is a bug in Nova Compute.</div><div>Trying to follow your hint, to (fake) terminate, to reset the state, did not work,</div>
<div>as it is now also in infinite Termination state.</div><div><br></div><div>Am I too rude to my install, or is it that Nova is not really as production ready as the internet showed me.</div><div><br></div><div>Best regards,</div>
<div>Christian.</div></div>