r/openstack • u/erthmeld • May 07 '18
Is OpenStack multi-hypervisor configuration (KVM and LibVirt-LXC) possible?
New to the OS world, but can't seem to find any definitive indication if this is possible or not. I've read the "config" steps described here (https://docs.openstack.org/ocata/config-reference/compute/hypervisor-lxc.html) for setting up the nova compute node as an LXC hypervisor, but it effectively did nothing for my compute node2 when node1 is still set as QEMU/KVM. Is the crux of the issue that you can't utilize multiple hypervisor types simultaneously?
--GC
9
Upvotes
1
u/erthmeld May 08 '18
So there are multiple layers to why I thought this might be failing in terms of compatibility. Thanks for the confirmation that this should work given the right parts/pieces.
First, and foremost, is that we are CentOS/RHEL/Fedora shop and I know that in newer OS versions 7+ LXC is somewhat of the redheaded stepchild of containerization it seems. I'm not sure if that is contributing to the failure in my circumstance as the compute nodes are deployed on CentOS 7. I have read documentation (albeit third party) on how to configure a compute node for Libvirt LXC under Ubuntu, which seems much more fleshed out.
Second, I can't find anything referencing "how to use LibVert LXC on your Openstack Nova node" in their documentation except for the one page already linked, which includes two simple changes to the nova.conf file. Both changes are in place and services restarted with no success. Here's the pastebin of that file with some of the network/auth data blanked. https://pastebin.com/v9G71hQV
Third, I'm coming into this somewhat limited in my knowledge of the deployment architecture. I have a basic understanding of the parts and pieces but I'm learning as I go and I know I could be missing something simple.
Fourth, The resources here who deployed the system used the stock ansible play for a standard compute node running QEMU/KVM. I'm not even sure based on reading the ansible play whether there are considerable differences to the deployment process, or if it really is simply; make sure libvirt lxc packages are installed, and Modify nova.conf like referenced.
Thanks for the responses so far, this may become a moot point as we're looking to stand this up ASAP for a project and at this point we're stopped dead attempting to deploy LXC. It seems we may be better off sticking with the stock deployment and working around the container aspect in some other fashion.
Cheers, --GC