not able to launch vm in all in one setup

Bug #1627782 reported by prameswar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
prameswar

Bug Description

i created kolla all in one environment setup without any error by taking reference from :http://docs.openstack.org/developer/kolla/quickstart.html.

after login to Dashboard, i am able to create network , router , able to upload glance image etc. But, when i launch instance it gives bellow Error:

Message No valid host was found. There are not enough hosts available.
Code 500
Details
File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 392, in build_instances context, request_spec, filter_properties) File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 436, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/utils.py", line 372, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/rpcapi.py", line 121, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 158, in call retry=self.retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 470, in send retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 461, in _send raise result
Created
Sept. 26, 2016, 4:40 p.m.

i tried same procedure two time, every time got same error.

Steps to reproduce :
follow steps from: http://docs.openstack.org/developer/kolla/quickstart.html

installed kolla using command :
pip install kolla

build config:

kolla_base_distro: "ubuntu"
# Valid options are [ binary, source ]
#kolla_install_type: "binary"

# Valid option is Docker repository tag
#openstack_release: "2.0.2"

 ansible --version
ansible 1.9.6
  configured module search path = None

Revision history for this message
faycel (faycelchaoua) wrote :
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

Could u attach the nova-compute log file? you can find it in /var/lib/docker/volumes/kolla_logs/_data/nova/nova-compute.log

prameswar (prameswar)
Changed in kolla:
assignee: nobody → prameswar (prameswar)
Revision history for this message
prameswar (prameswar) wrote :

i was not able to launch instance because i was doing in virtualbox so , that is not supporting hardware acceleration.
so, i added virt_type=qemu in nova.conf file and it working.

i will add patch that will check hardware acceleration support, if not support then it will add entry virt_type=qemu in nova.conf

Revision history for this message
Duong Ha-Quang (duonghq) wrote :

It's not really Kolla bug, but can be treat as prechecks problem.

Changed in kolla:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → ocata-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/378518

Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
prameswar (prameswar) wrote :
Changed in kolla:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by prameswar (<email address hidden>) on branch: master
Review: https://review.openstack.org/378518
Reason: it is not much helpful for now.

Revision history for this message
prameswar (prameswar) wrote :

 egrep -c '(vmx|svm)' /proc/cpuinfo
If this command returns a value of zero, your compute node does not support hardware acceleration and you must configure libvirt to use QEMU instead of KVM.

For this, change the virt_type option in the [libvirt] section of nova config file

[libvirt]
virt_type=qemu

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

pre-check will stop the user to use virt_type=qemu, and he will get some error.

some doc warning may help.

Changed in kolla:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.