two node setup with kvm and lxc [closed]

asked 2019-02-27 09:43:44 -0600

arbermejo gravatar image

updated 2019-03-01 08:05:39 -0600

Hi i have a minimal working deployment of openstack queens (on ubuntu 18.04 LTS) with 1 controller, 1 compute node (running kvm), 1 object storage node and 1 block storage node i want to add to this deployment another compute node running lxc as the hypervisor, i followed the instrucions of the oficial docs page, and installed nova-compute-lxc and already added the compute_driver = libvirt.LibvirtDriver and the virt_type = lxc on [libvirt] from the nova.conf file.

when i run

openstack compute service list --service nova-compute

the output is showing the added compute node

+----+--------------+----------+------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +----+--------------+----------+------+---------+---- ---+----------------------------+ | 9 | nova-compute | compute | nova | enabled | up | 2019-02-27T15:20:09.000000 | | 10 | nova-compute | nova-lxc | nova | enabled | up | 2019-02-27T15:20:12.000000 | +----+--------------+----------+------+---------+-------+----------------------------+


I already added an ubuntu image in the controller node , but i can't force the instance to be launched in the LXC compute node, i already made 2 separates host aggregates (one for the KVM and the other for LXC compute node)

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by arbermejo
close date 2019-03-01 08:16:01.612363


While I have never tried the LXC driver, I suggest you enable others to help you by providing more information like error messages or messages from log files.

Bernd Bausch gravatar imageBernd Bausch ( 2019-02-27 17:35:45 -0600 )edit

but the problem is i need to run some tests on lxc, and the docs only have lxc+ansible

arbermejo gravatar imagearbermejo ( 2019-02-28 07:30:23 -0600 )edit

You say "I can't create or manage any lxc instance". This is as vague as telling your doctor "I don't feel healthy".

Tell us what the symptoms are. What exactly are you doing. Do you get error messages. Did you check any logs. In short, a description of your activity and the symptoms.

Bernd Bausch gravatar imageBernd Bausch ( 2019-02-28 18:05:59 -0600 )edit

Perhaps you want to know how you can force an instance to be scheduled on the LXC hypervisor? If so, you could create a host aggregate, add the LXC host to it and create a flavor that allows users to select this aggregate. Unfortunately the documentation is not very good on this subject.

Bernd Bausch gravatar imageBernd Bausch ( 2019-02-28 18:12:05 -0600 )edit

I suppose you either didn't include the aggregate filter in nova.conf or did not set up the aggregates and flavors correctly.

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-01 08:16:04 -0600 )edit