[Openstack] LXC and block device mappings at boot

Daniel P. Berrange berrange at redhat.com
Thu Jan 16 10:08:46 UTC 2014


On Thu, Jan 16, 2014 at 04:40:53PM +1100, Sam Morrison wrote:
> 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.

It ought to be possible to make it work if it doesn't already, so please
do file a bug against nova.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the Openstack mailing list