Custom Search

Friday, April 18, 2014

SOLVED:ERROR nova.openstack.common.threadgroup [-] internal error Cannot find suitable emulator for x86_64

Error:
====
https://bugs.launchpad.net/heat/+bug/1308959/comments/3

I can see following error in nova-compute (n-cpu*) and its not running. I am using libvirtd (libvirt) 0.9.8 + Ubuntu 12,04 lts
=========================
2014-04-17 19:43:34.497 ERROR nova.openstack.common.threadgroup [-] internal error Cannot find suitable emulator for x86_64
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 117, in wait
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup x.wait()
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 49, in wait
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup return self.thread.wait()
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/service.py", line 65, in run_service
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup service.start()
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/service.py", line 164, in start
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup self.manager.pre_start_hook()
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/compute/manager.py", line 803, in pre_start_hook
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup self.update_available_resource(nova.context.get_admin_context())
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/compute/manager.py", line 4893, in update_available_resource
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup nodenames = set(self.driver.get_available_nodes())
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/driver.py", line 963, in get_available_nodes
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup stats = self.get_host_stats(refresh=refresh)
2014-04-17 19:43:34.497 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py"...

Fix: 
====
#sudo apt-get install qemu-system
 

#sudo apt-get install qemu-kvm
 

#sudo service libvirt-bin restart

===========

stackuser@mypc:~/openstack/devstack$ sudo apt-get install qemu-system
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  sharutils librbd1 libnss3 libaio1 librados2 libboost-thread1.46.1 libnspr4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  kvm-ipxe libasound2 libasyncns0 libbluetooth3 libbrlapi0.5 libcaca0 libfdt1 libflac8 libjson0 libogg0 libpulse0 libsdl1.2debian libsndfile1
  libvde0 libvdeplug2 libvorbis0a libvorbisenc2 qemu-common qemu-keymaps seabios vde2 vgabios
Suggested packages:
  libasound2-plugins libasound2-python pulseaudio mol-drivers-macosx openbios-sparc ubuntu-vm-builder uml-utilities samba vde2-cryptcab qemu
Recommended packages:
  qemu-kvm
The following packages will be REMOVED:
  qemu-utils
The following NEW packages will be installed:
  kvm-ipxe libasound2 libasyncns0 libbluetooth3 libbrlapi0.5 libcaca0 libfdt1 libflac8 libjson0 libogg0 libpulse0 libsdl1.2debian libsndfile1
  libvde0 libvdeplug2 libvorbis0a libvorbisenc2 qemu-common qemu-keymaps qemu-system seabios vde2 vgabios
0 upgraded, 23 newly installed, 1 to remove and 24 not upgraded.
Need to get 19.4 MB of archives.
After this operation, 60.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libasound2 libasyncns0 libbluetooth3 libcaca0 libogg0 libflac8 libjson0 libvorbis0a libvorbisenc2 libsndfile1 libpulse0 libsdl1.2debian kvm-ipxe
  libvde0 libvdeplug2 seabios vgabios qemu-common qemu-keymaps libbrlapi0.5 libfdt1 qemu-system vde2
Authentication warning overridden.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libasound2 amd64 1.0.25-1ubuntu10.2 [428 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main libasyncns0 amd64 0.8-4 [13.2 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libbluetooth3 amd64 4.98-2ubuntu7.1 [63.3 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main libcaca0 amd64 0.99.beta17-2.1ubuntu2 [246 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main libogg0 amd64 1.2.2~dfsg-1ubuntu1 [17.2 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main libflac8 amd64 1.2.1-6 [144 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise/main libjson0 amd64 0.9-1ubuntu1 [16.3 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main libvorbis0a amd64 1.3.2-1ubuntu3 [103 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise/main libvorbisenc2 amd64 1.3.2-1ubuntu3 [136 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/main libsndfile1 amd64 1.0.25-4 [163 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpulse0 amd64 1:1.1-0ubuntu15.4 [289 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ precise/main libsdl1.2debian amd64 1.2.14-6.4ubuntu3 [197 kB]                                         
Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/main kvm-ipxe all 1.0.0+git-3.55f6c88-0ubuntu1 [327 kB]                                       
Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/universe libvde0 amd64 2.2.3-3build2 [28.1 kB]                                                
Get:15 http://us.archive.ubuntu.com/ubuntu/ precise/universe libvdeplug2 amd64 2.2.3-3build2 [12.4 kB]                                            
Get:16 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main seabios all 0.6.2-0ubuntu2.1 [70.5 kB]                                           
Get:17 http://us.archive.ubuntu.com/ubuntu/ precise/main vgabios all 0.6c-2ubuntu3 [164 kB]                                                       
Get:18 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main qemu-common all 1.0+noroms-0ubuntu14.13 [22.4 kB]                                
Get:19 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe qemu-keymaps all 1.0.50-2012.03-0ubuntu2.1 [19.1 kB]                         
Get:20 http://us.archive.ubuntu.com/ubuntu/ precise/main libbrlapi0.5 amd64 4.3-1ubuntu5 [24.1 kB]                                                
Get:21 http://us.archive.ubuntu.com/ubuntu/ precise/main libfdt1 amd64 1.3.0-2 [16.5 kB]                                                          
Get:22 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe qemu-system amd64 1.0.50-2012.03-0ubuntu2.1 [16.7 MB]                        
Get:23 http://us.archive.ubuntu.com/ubuntu/ precise/universe vde2 amd64 2.2.3-3build2 [220 kB]                                                    
Fetched 19.4 MB in 15s (1,280 kB/s)                                                                                                               
(Reading database ... 102732 files and directories currently installed.)
Removing qemu-utils ...
Processing triggers for man-db ...
Selecting previously unselected package libasound2.
(Reading database ... 102716 files and directories currently installed.)
Unpacking libasound2 (from .../libasound2_1.0.25-1ubuntu10.2_amd64.deb) ...
Selecting previously unselected package libasyncns0.
Unpacking libasyncns0 (from .../libasyncns0_0.8-4_amd64.deb) ...
Selecting previously unselected package libbluetooth3.
Unpacking libbluetooth3 (from .../libbluetooth3_4.98-2ubuntu7.1_amd64.deb) ...
Selecting previously unselected package libcaca0.
Unpacking libcaca0 (from .../libcaca0_0.99.beta17-2.1ubuntu2_amd64.deb) ...
Selecting previously unselected package libogg0.
Unpacking libogg0 (from .../libogg0_1.2.2~dfsg-1ubuntu1_amd64.deb) ...
Selecting previously unselected package libflac8.
Unpacking libflac8 (from .../libflac8_1.2.1-6_amd64.deb) ...
Selecting previously unselected package libjson0.
Unpacking libjson0 (from .../libjson0_0.9-1ubuntu1_amd64.deb) ...
Selecting previously unselected package libvorbis0a.
Unpacking libvorbis0a (from .../libvorbis0a_1.3.2-1ubuntu3_amd64.deb) ...
Selecting previously unselected package libvorbisenc2.
Unpacking libvorbisenc2 (from .../libvorbisenc2_1.3.2-1ubuntu3_amd64.deb) ...
Selecting previously unselected package libsndfile1.
Unpacking libsndfile1 (from .../libsndfile1_1.0.25-4_amd64.deb) ...
Selecting previously unselected package libpulse0.
Unpacking libpulse0 (from .../libpulse0_1%3a1.1-0ubuntu15.4_amd64.deb) ...
Selecting previously unselected package libsdl1.2debian.
Unpacking libsdl1.2debian (from .../libsdl1.2debian_1.2.14-6.4ubuntu3_amd64.deb) ...
Selecting previously unselected package kvm-ipxe.
Unpacking kvm-ipxe (from .../kvm-ipxe_1.0.0+git-3.55f6c88-0ubuntu1_all.deb) ...
Selecting previously unselected package libvde0.
Unpacking libvde0 (from .../libvde0_2.2.3-3build2_amd64.deb) ...
Selecting previously unselected package libvdeplug2.
Unpacking libvdeplug2 (from .../libvdeplug2_2.2.3-3build2_amd64.deb) ...
Selecting previously unselected package seabios.
Unpacking seabios (from .../seabios_0.6.2-0ubuntu2.1_all.deb) ...
Selecting previously unselected package vgabios.
Unpacking vgabios (from .../vgabios_0.6c-2ubuntu3_all.deb) ...
Selecting previously unselected package qemu-common.
Unpacking qemu-common (from .../qemu-common_1.0+noroms-0ubuntu14.13_all.deb) ...
Selecting previously unselected package qemu-keymaps.
Unpacking qemu-keymaps (from .../qemu-keymaps_1.0.50-2012.03-0ubuntu2.1_all.deb) ...
Selecting previously unselected package libbrlapi0.5.
Unpacking libbrlapi0.5 (from .../libbrlapi0.5_4.3-1ubuntu5_amd64.deb) ...
Selecting previously unselected package libfdt1.
Unpacking libfdt1 (from .../libfdt1_1.3.0-2_amd64.deb) ...
Selecting previously unselected package qemu-system.
Unpacking qemu-system (from .../qemu-system_1.0.50-2012.03-0ubuntu2.1_amd64.deb) ...
Selecting previously unselected package vde2.
Unpacking vde2 (from .../vde2_2.2.3-3build2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libasound2 (1.0.25-1ubuntu10.2) ...
Setting up libasyncns0 (0.8-4) ...
Setting up libbluetooth3 (4.98-2ubuntu7.1) ...
Setting up libcaca0 (0.99.beta17-2.1ubuntu2) ...
Setting up libogg0 (1.2.2~dfsg-1ubuntu1) ...
Setting up libflac8 (1.2.1-6) ...
Setting up libjson0 (0.9-1ubuntu1) ...
Setting up libvorbis0a (1.3.2-1ubuntu3) ...
Setting up libvorbisenc2 (1.3.2-1ubuntu3) ...
Setting up libsndfile1 (1.0.25-4) ...
Setting up libpulse0 (1:1.1-0ubuntu15.4) ...
Setting up libsdl1.2debian (1.2.14-6.4ubuntu3) ...
Setting up kvm-ipxe (1.0.0+git-3.55f6c88-0ubuntu1) ...
Setting up libvde0 (2.2.3-3build2) ...
Setting up libvdeplug2 (2.2.3-3build2) ...
Setting up seabios (0.6.2-0ubuntu2.1) ...
Setting up vgabios (0.6c-2ubuntu3) ...
Setting up qemu-common (1.0+noroms-0ubuntu14.13) ...
Setting up qemu-keymaps (1.0.50-2012.03-0ubuntu2.1) ...
Setting up libbrlapi0.5 (4.3-1ubuntu5) ...
Setting up libfdt1 (1.3.0-2) ...
Setting up qemu-system (1.0.50-2012.03-0ubuntu2.1) ...
Setting up vde2 (2.2.3-3build2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$ sudo service libvirt-bin restart
libvirt-bin stop/waiting
libvirt-bin start/running, process 499
stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$ qemu-system-x86_64
The program 'qemu-system-x86_64' is currently not installed.  You can install it by typing:
sudo apt-get install qemu-kvm


stackuser@mypc:~/openstack/devstack$ sudo apt-get install qemu-kvm
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following package was automatically installed and is no longer required:
  sharutils
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  acl qemu-utils
The following NEW packages will be installed:
  acl qemu-kvm qemu-utils
0 upgraded, 3 newly installed, 0 to remove and 24 not upgraded.
Need to get 3,914 kB of archives.
After this operation, 14.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  acl qemu-utils qemu-kvm
Authentication warning overridden.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main acl amd64 2.2.51-5ubuntu1 [43.2 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main qemu-utils amd64 1.0+noroms-0ubuntu14.13 [354 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main qemu-kvm amd64 1.0+noroms-0ubuntu14.13 [3,517 kB]
Fetched 3,914 kB in 5s (705 kB/s)    
Selecting previously unselected package acl.
(Reading database ... 103185 files and directories currently installed.)
Unpacking acl (from .../acl_2.2.51-5ubuntu1_amd64.deb) ...
Selecting previously unselected package qemu-utils.
Unpacking qemu-utils (from .../qemu-utils_1.0+noroms-0ubuntu14.13_amd64.deb) ...
Selecting previously unselected package qemu-kvm.
Unpacking qemu-kvm (from .../qemu-kvm_1.0+noroms-0ubuntu14.13_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up acl (2.2.51-5ubuntu1) ...
Setting up qemu-utils (1.0+noroms-0ubuntu14.13) ...
Setting up qemu-kvm (1.0+noroms-0ubuntu14.13) ...
qemu-kvm start/running
stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$ qemu-
qemu-ga                 qemu-io                 qemu-system-m68k        qemu-system-mipsel      qemu-system-sh4eb      
qemu-i386               qemu-nbd                qemu-system-microblaze  qemu-system-ppc         qemu-system-sparc      
qemu-ifdown             qemu-system-arm         qemu-system-mips        qemu-system-ppc64       qemu-system-sparc64    
qemu-ifup               qemu-system-cris        qemu-system-mips64      qemu-system-ppcemb      qemu-system-x86_64     
qemu-img                qemu-system-i386        qemu-system-mips64el    qemu-system-sh4         qemu-x86_64            

stackuser@mypc:~/openstack/devstack$
stackuser@mypc:~/openstack/devstack$

1 comment: