[Openstack-operators] openstack-ansible virt_type=lxc

Kevin Carter kevin.carter at RACKSPACE.COM
Fri Nov 20 15:44:14 UTC 2015


Hello,

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.

nova_nova_conf_overrides:
   libvirt:
     cpu_mode: None
     cpu_model: None

Once set you'll rerun the os-nova-install.yml play to reconfigure your 
hypervisor.


> 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
> [req-3323b36a-cfe3-46b1-b3b7-cb606c77fda8
> 37f9aa000df343d4ad1090a3d8330d67 25158527007e4a1c95a6a4b0c214576e - - -]
> [instance: 0868a44b-79ab-419c-abcb-97a61831d309] Error from last host:
> ubu1 (node ubu1): [u'Traceback (most recent call last):\n', u' File
> "/openstack/venvs/nova-master/lib/python2.7/site-packages/nova/compute/manager.py",
> line 1903, in _do_build_and_run_instance\n filter_properties)\n', u'
> File
> "/openstack/venvs/nova-master/lib/python2.7/site-packages/nova/compute/manager.py",
> 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"]
>
> Thanks!
> Wade
>

Also make sure your images are LXC compatible. There are some steps 
outlined here [0] which may be of use to you.

cheers.

[0] - 
https://ask.openstack.org/en/question/14401/ubuntu-image-for-libvirt_typelxc/

--

Kevin Carter
IRC: cloudnull



More information about the OpenStack-operators mailing list