[Openstack] LXC and block device mappings at boot

Sam Morrison sorrison at gmail.com
Thu Jan 16 05:40:53 UTC 2014


Hi,

I’m trying to get LXC working with nova stable/havana and everything works great except I’m having some issues with block device mappings.

I can attach a volume fine but if I hard reboot a volume it disappears from the instances point of view.
On the compute node it does all the right stuff in terms of mounting iscsi and multi path etc. but it doesn’t add it to the libvirt xml so the instance doesn’t see it.

I also see the same issue when booting an instance and giving it a block device mapping at boot time that contains a volume.

Has anyone got this working? In nova/virt/libvirt/blockinfo.py there are a few “if lxc” do something different so I’m thinking this isn’t supported yet?
Any ideas would be great. We’re trying to set up trove for our environment and this is needed to get it working.

Cheers,
Sam







More information about the Openstack mailing list