Libvirt LXC and Xen boot fails with VIR_DOMAIN_START_PAUSED

Bug #1301453 reported by Andrew Melton
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Vladik Romanovsky

Bug Description

Libvirt's lxc driver does not support the VIR_DOMAIN_START_PAUSED flag and thus fails to create the domain. This causes the boot to fail.

Stacktrace:
https://gist.github.com/ramielrowe/9936359

Steps to reproduce:
1) Create devstack with following localrc options
VIRT_DRIVER='libvirt'
LIBVIRT_TYPE='lxc'
2) Boot instance
3) Observe failed boot and exception in compute log

Revision history for this message
iain MacDonnell (dseven) wrote :

This affects Xen too....

2014-04-01 18:43:59.162 6922 TRACE nova.compute.manager [instance: dda6c77c-cca5-48ac-b9d5-b70ac32fd26e] libvirtError: unsupported flags (0x1) in function xenUnifiedDomainCreateWithFlags

Revision history for this message
iain MacDonnell (dseven) wrote :

BTW, this problem was introduced by:

https://github.com/openstack/nova/commit/02aed43b76622f1828d48c982230981bd53e95f7

which is new in icehouse-rc1

Revision history for this message
Simon Pasquier (simon-pasquier) wrote :

Looks like this is a side-effect of this change => https://blueprints.launchpad.net/nova/+spec/admin-event-callback-api

Allison Randal (allison)
tags: added: libvirt
tags: added: icehouse-rc-potential
summary: - Libvirt LXC boot fails with VIR_DOMAIN_START_PAUSED
+ Libvirt LXC and Xen boot fails with VIR_DOMAIN_START_PAUSED
tags: added: icehouse-backport-potential
removed: icehouse-rc-potential
Changed in nova:
assignee: nobody → Vladik Romanovsky (vladik-romanovsky)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/84841

Changed in nova:
status: New → In Progress
Revision history for this message
iain MacDonnell (dseven) wrote :

In addition to setting launch_flags to zero, I had to also set vifs_already_plugged=True in order to get a successful launch with Xen - otherwise it times out waiting for a callback.

Alvaro Lopez (aloga)
tags: added: lxc xen
Changed in nova:
importance: Undecided → High
milestone: none → icehouse-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/84841
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=bfb28fcf9031af4c695177663702ce05edbbfa4d
Submitter: Jenkins
Branch: master

commit bfb28fcf9031af4c695177663702ce05edbbfa4d
Author: Vladik Romanovsky <email address hidden>
Date: Wed Apr 2 15:00:19 2014 -0400

    libvirt: pause mode is not supported by all drivers

    Only KVM/Qemu drivers support the VIR_DOMAIN_START_PAUSED flag
    Booting guests on other drivers with the above flag will make it fail.

    Closes-Bug: 1301453
    Change-Id: Ia98e018b686c4ec3c15fd1f6bcc78188f330fcef

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/85708

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (milestone-proposed)

Reviewed: https://review.openstack.org/85708
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c0feec3f21757efe74f0228b5e05c9edff3bffac
Submitter: Jenkins
Branch: milestone-proposed

commit c0feec3f21757efe74f0228b5e05c9edff3bffac
Author: Vladik Romanovsky <email address hidden>
Date: Wed Apr 2 15:00:19 2014 -0400

    libvirt: pause mode is not supported by all drivers

    Only KVM/Qemu drivers support the VIR_DOMAIN_START_PAUSED flag
    Booting guests on other drivers with the above flag will make it fail.

    Closes-Bug: 1301453
    Change-Id: Ia98e018b686c4ec3c15fd1f6bcc78188f330fcef
    (cherry picked from commit bfb28fcf9031af4c695177663702ce05edbbfa4d)

Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-rc2 → 2014.1
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.