after a reboot, you loose the KVM autostart feature

Bug #882815 reported by Mercadolibre CloudBuilders
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

Hi !
in "cactus" when you use KVM and have the flag "--start_guests_on_host_boot=true" set on nova.conf, if you issue an euca-reboot, you loose the "autostart" capabilities ( you loose the symlink in /etc/libvirt/qemu/autostart), so, we replaced in /usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py function "reboot"

The line :
    self._create_new_domain(xml)
for the line:
    domainPT = self._create_new_domain(xml)
    if FLAGS.start_guests_on_host_boot:
            LOG.debug(_("instance %s: setting autostart ON") %
                      instance['name'])
            domainPT.setAutostart(1)

Hope it helps !
Cheers !

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Can you verify this is still a valid bug?

Changed in nova:
status: New → Incomplete
Revision history for this message
Thierry Carrez (ttx) wrote :

We cannot solve the issue you reported without more information. Could you please provide the requested information ?

Revision history for this message
Mercadolibre CloudBuilders (cloudbuilders-n) wrote :

Its fixed on Essex under nova.compute.manager.init_host

Changed in nova:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.