Starting a LXC container fails

Bug #1126348 reported by Chuck Short
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Chuck Short

Bug Description

Starting a LXC container fails due to the recent blockinfo changes.

when launching an LXC instance it fails to copy the disk, since the disk_mapping is empty since the get_disk_mapping function returns an empty array when using LXC.

Tags: lxc
Chuck Short (zulcss)
tags: added: lxc
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/22065

Changed in nova:
assignee: nobody → Chuck Short (zulcss)
status: New → In Progress
Revision history for this message
Chuck Short (zulcss) wrote :

2013-02-15 08:02:57.413 INFO nova.virt.disk.mount.nbd [req-ca171b12-66ef-4a16-beca-61dac6116ddb demo demo] NBD mount error: qemu-nbd error: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf qemu-nbd -c /dev/nbd8 /opt/stack/data/nova/instances/instance-00000001/disk
Exit code: 1
Stdout: ''
Stderr: "qemu-nbd: Failed to bdrv_open '/opt/stack/data/nova/instances/instance-00000001/disk': No such file or directory\n"

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/22065
Committed: http://github.com/openstack/nova/commit/4cc266427307f4d9776207d30ceb1fbec35b3111
Submitter: Jenkins
Branch: master

commit 4cc266427307f4d9776207d30ceb1fbec35b3111
Author: Chuck Short <email address hidden>
Date: Fri Feb 15 14:07:03 2013 -0600

    libvirt: Fix LXC container creation

    Recent changes to the blockdev creation introduced in
    7be531fe9462f2b07d4a1abf6687f649d1dfbb89 caused a regression
    when LXC containers were being created.

    When the image is being fetched from glance, the disk mappings
    for the disk bus, disk information, etc is checked before being
    copied. However since LXC does not understand this concept it was
    not passing any information, so the image was never being copied.

    Send some basic information about the disk when the instance is being
    created in order for the image to begin. Fixes LP: #1126348

    Change-Id: I90daf853903737013be0cd23f78c7f61e4e15a77
    Signed-off-by: Chuck Short <email address hidden>

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-3 → 2013.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.