[Openstack-operators] openstack-ansible virt_type=lxc
kevin.carter at RACKSPACE.COM
Fri Nov 20 15:44:14 UTC 2015
On 11/18/2015 08:02 PM, Wade Holler wrote:
> Just a little help needed.
> on trusty
> using openstack-ansible ( allinone )
> changed user_variables nova_virt_type to lxc
> re-run os-nova-install
> Something else I need to do?
I've not played with the LXC hypervisor type in a long while however I
remember the lxc option was not able to select a specific cpu type which
the OSA project defaults to "host-type". So to correct this, you'll also
want to set the following using the config_template options for
nova.conf within your user_variables.yml file.
Once set you'll rerun the os-nova-install.yml play to reconfigure your
> When launching an instance I get the no hosts found.
> And in nova-conductor log I get the CPU model error
> 2015-11-18 20:16:40.041 3139 ERROR nova.scheduler.utils
> 37f9aa000df343d4ad1090a3d8330d67 25158527007e4a1c95a6a4b0c214576e - - -]
> [instance: 0868a44b-79ab-419c-abcb-97a61831d309] Error from last host:
> ubu1 (node ubu1): [u'Traceback (most recent call last):\n', u' File
> line 1903, in _do_build_and_run_instance\n filter_properties)\n', u'
> line 2063, in _build_and_run_instance\n instance_uuid=instance.uuid,
> reason=six.text_type(e))\n', u"RescheduledException: Build of instance
> 0868a44b-79ab-419c-abcb-97a61831d309 was re-scheduled: Config requested
> an explicit CPU model, but the current libvirt hypervisor 'lxc' does not
> support selecting CPU models\n"]
Also make sure your images are LXC compatible. There are some steps
outlined here  which may be of use to you.
More information about the OpenStack-operators