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
1
May 08 '18
To be more specific, it can host multiple-hypervisor but you’ll have to create a way for the scheduler to be able to filter one host or another, this is usually made by leveraging aggregates or metadata at images and/or flavors level.
As stated, Queens is rather the latest release ;-)
Can you pastebin your nova config on the lxc host?
1
u/erthmeld May 08 '18
Great, that's what I assumed but just cannot wrap my head around how to get the compute node setup.
As for the version, I didn't deploy the initial OS architecture, but I believe at the time Ocata was current. Unfortunately at this point the least of my concerns is a version upgrade of the OS stack.
2
May 08 '18
If you’re dealing with a recent Openstack, I highly suggest you to have a look at the Kolla/Kolla-ansible project, it will give you a handy way to create Openstack services as dockerized process and so give you a way to easily update/manage your setup.
For the nodes hypervisor setup, if you disable your kvm node even without specific metadata all your instances should be processed by the lxc node or if not give you an handy error messages.
1
u/erthmeld May 08 '18
Unfortunately the hypervisor kvm nodes already have resources configured and running that won't allow this approach for diagnostics.
1
u/jsbeudjwne May 08 '18
Also, I believe LXC support is now deprecated for security reasons.
1
u/erthmeld May 08 '18
Yeah, that's good to know as well. I assume there are some inherent dangers to the chroot model of containerization that caused this. Or perhaps just lack of support by OS veiled behind "security reasons" ... :)
1
u/erthmeld May 08 '18
Do you have any references to confirm this? I know libvirt lxc support is being removed from RHEL 7.1+ but it seems that LXD is alive and well in OS and I don't even see a reference to deprecating any support for LXC which is still supported by Ubuntu as far as I'm aware.
2
u/jsbeudjwne May 08 '18
No real evidence other than a continual loss of documentation and removal of sections in the documentation after Ocata.
I remember reading something about it last year, but couldn’t find any info when I looked last week.
Please, someone link me to the docs if I’m wrong (and I hope I am).
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