LXC rootfs not correctly mounted before booting instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Low
|
Unassigned |
Bug Description
At the point nova tries to start the LXC instance, there are no directories except for proc, dev and tmp on the rootfs, causing the LXC container to fail to start. If I manually set up an nbd device from the qcow image, mount it and start the instance using virsh, it boots correctly. This has worked in previous versions.
Based on past experience, when booting an LXC instance I would expect compute to get a root image, create a qcow image from it, create an nbd device from the qcow and mount the nbd as the instance rootfs, as seen in the below extract from the log files from a previous working nova version:
Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_
Running cmd (subprocess): sudo qemu-nbd -c /dev/nbd13 /var/lib/
Running cmd (subprocess): sudo mount /dev/nbd13 /var/lib/
instance instance-00000003: is running
In the version currently available in Ubuntu and the trunk ppa I see the creation of the qcow and immediately after that the boot of the instance:
Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_
instance instance-00000001: is running
Last known working version: 2011.3~
Not Working versions: 2011.3~
Related branches
tags: | added: lxc |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in nova: | |
status: | Confirmed → Incomplete |
Do you try to start your instance without key or network file or metadata to inject ?
It looks as a duplicated bug: https:/ /bugs.launchpad .net/nova/ +bug/838154