Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi, Jason (zzs)

Its working now

I did following steps

git checkout remotes/origin/stable/folsom

./bin/nova-manage db sync

./bin/nova-all

(.venv)saju@saju-desktop:~/openstk_manual/nova$ ./bin/nova-manage service list Binary Host Zone Status State Updated_At nova-cert saju-desktop nova enabled XXX 2013-03-26 09:23:15.382040 nova-scheduler saju-desktop nova enabled XXX 2013-03-26 09:23:15.523775 (.venv)saju@saju-desktop:~/openstk_manual/nova$

But, Failed to load nova-compute

#

Error : when running ./bin/nova-all (Fixed)


2013-03-26 13:15:13 15512 INFO nova.compute.manager [-] Loading compute driver 'nova.virt.connection.get_connection' 2013-03-26 13:15:13 15512 WARNING nova.common.deprecated [-] Deprecated Config: Specifying virt driver via connection_type is deprecated. Use compute_driver=classname instead. 2013-03-26 13:15:13 15512 ERROR nova.all [-] Failed to load nova-compute 2013-03-26 13:15:13 15512 TRACE nova.all Traceback (most recent call last): 2013-03-26 13:15:13 15512 TRACE nova.all File "./bin/nova-all", line 76, in <module> 2013-03-26 13:15:13 15512 TRACE nova.all launcher.launch_server(service.Service.create(binary=binary)) 2013-03-26 13:15:13 15512 TRACE nova.all File "/home/saju/openstk_manual/nova/nova/service.py", line 492, in create 2013-03-26 13:15:13 15512 TRACE nova.all periodic_fuzzy_delay=periodic_fuzzy_delay) 2013-03-26 13:15:13 15512 TRACE nova.all File "/home/saju/openstk_manual/nova/nova/service.py", line 387, in __init__ 2013-03-26 13:15:13 15512 TRACE nova.all self.manager = manager_class(host=self.host, args, *kwargs) 2013-03-26 13:15:13 15512 TRACE nova.all File "/home/saju/openstk_manual/nova/nova/compute/manager.py", line 223, in __init__ 2013-03-26 13:15:13 15512 TRACE nova.all importutils.import_object_ns('nova.virt', compute_driver), 2013-03-26 13:15:13 15512 TRACE nova.all File "/home/saju/openstk_manual/nova/nova/openstack/common/importutils.py", line 53, in import_object_ns 2013-03-26 13:15:13 15512 TRACE nova.all return import_class(import_str)(args, *kwargs) 2013-03-26 13:15:13 15512 TRACE nova.all File "/home/saju/openstk_manual/nova/nova/virt/connection.py", line 76, in get_connection 2013-03-26 13:15:13 15512 TRACE nova.all raise exception.VirtDriverNotFound(name=FLAGS.connection_type) 2013-03-26 13:15:13 15512 TRACE nova.all VirtDriverNotFound: Could not find driver for connection_type None 2013-03-26 13:15:13 15512 TRACE nova.all 2013-03-26 13:15:13 15512 INFO nova.service [-] Starting 1 workers 2013-03-26 13:15:13 15523 INFO nova.XCP VNC Proxy.wsgi.server [-] (15523) wsgi starting up on http://0.0.0.0:6081/

Fix-1 : I made following change to fix this error

a) Open #sudo vim /etc/nova/nova.conf Changed #connection_type=<none> to connection_type=libvirt

Error: when running ./bin/nova-all (After above change) (Not Fixed)


2013-03-26 13:39:59 18063 INFO nova.compute.manager [-] Loading compute driver 'nova.virt.connection.get_connection' 2013-03-26 13:39:59 18063 WARNING nova.common.deprecated [-] Deprecated Config: Specifying virt driver via connection_type is deprecated. Use compute_driver=classname instead. [sudo] password for saju: 2013-03-26 13:39:59 18063 WARNING nova.virt.libvirt.firewall [-] Libvirt module could not be loaded. NWFilterFirewall will not work correctly. 2013-03-26 13:39:59 18063 ERROR nova.compute.manager [-] Unable to load the virtualization driver: No module named libvirt 2013-03-26 13:39:59 18063 ERROR nova.all [-] Failed to load nova-compute 2013-03-26 13:39:59 18063 TRACE nova.all Traceback (most recent call last): 2013-03-26 13:39:59 18063 TRACE nova.all File "./bin/nova-all", line 76, in <module> 2013-03-26 13:39:59 18063 TRACE nova.all launcher.launch_server(service.Service.create(binary=binary)) 2013-03-26 13:39:59 18063 TRACE nova.all File "/home/saju/openstk_manual/nova/nova/service.py", line 492, in create 2013-03-26 13:39:59 18063 TRACE nova.all periodic_fuzzy_delay=periodic_fuzzy_delay) 2013-03-26 13:39:59 18063 TRACE nova.all File "/home/saju/openstk_manual/nova/nova/service.py", line 387, in __init__ 2013-03-26 13:39:59 18063 TRACE nova.all self.manager = manager_class(host=self.host, args, *kwargs) 2013-03-26 13:39:59 18063 TRACE nova.all File "/home/saju/openstk_manual/nova/nova/compute/manager.py", line 227, in __init__ 2013-03-26 13:39:59 18063 TRACE nova.all sys.exit(1) 2013-03-26 13:39:59 18063 TRACE nova.all SystemExit: 1 2013-03-26 13:39:59 18063 TRACE nova.all 2013-03-26 13:39:59 18063 INFO nova.service [-] Starting 1 workers 2013-03-26 13:39:59 18075 AUDIT nova.service [-] Starting volume node (version 2012.2.4-LOCALBRANCH:LOCALREVISION)

Current issue is

Failed to load nova-compute Unable to load the virtualization driver: No module named libvirt

Hi, Jason (zzs)

Its It's working now

now I did following steps

# git checkout remotes/origin/stable/folsom

remotes/origin/stable/folsom # ./bin/nova-manage db sync

./bin/nova-all

sync # ./bin/nova-all (.venv)saju@saju-desktop:~/openstk_manual/nova$ ./bin/nova-manage service list Binary Host Zone Status State Updated_At nova-cert saju-desktop nova enabled XXX 2013-03-26 09:23:15.382040 nova-scheduler saju-desktop nova enabled XXX 2013-03-26 09:23:15.523775 (.venv)saju@saju-desktop:~/openstk_manual/nova$

(.venv)saju@saju-desktop:~/openstk_manual/nova$

But, Failed to load nova-compute

#

Error : when running ./bin/nova-all (Fixed)


2013-03-26 13:15:13 15512 INFO nova.compute.manager [-] Loading compute driver 'nova.virt.connection.get_connection'
2013-03-26 13:15:13 15512 WARNING nova.common.deprecated [-] Deprecated Config: Specifying virt driver via connection_type is deprecated. Use compute_driver=classname instead.
2013-03-26 13:15:13 15512 ERROR nova.all [-] Failed to load nova-compute
2013-03-26 13:15:13 15512 TRACE nova.all Traceback (most recent call last):
2013-03-26 13:15:13 15512 TRACE nova.all   File "./bin/nova-all", line 76, in <module>
2013-03-26 13:15:13 15512 TRACE nova.all     launcher.launch_server(service.Service.create(binary=binary))
2013-03-26 13:15:13 15512 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/service.py", line 492, in create
2013-03-26 13:15:13 15512 TRACE nova.all     periodic_fuzzy_delay=periodic_fuzzy_delay)
2013-03-26 13:15:13 15512 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/service.py", line 387, in __init__
2013-03-26 13:15:13 15512 TRACE nova.all     self.manager = manager_class(host=self.host, args, *kwargs)
*args, **kwargs)
2013-03-26 13:15:13 15512 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/compute/manager.py", line 223, in __init__
2013-03-26 13:15:13 15512 TRACE nova.all     importutils.import_object_ns('nova.virt', compute_driver),
2013-03-26 13:15:13 15512 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/openstack/common/importutils.py", line 53, in import_object_ns
2013-03-26 13:15:13 15512 TRACE nova.all     return import_class(import_str)(args, *kwargs)
import_class(import_str)(*args, **kwargs)
2013-03-26 13:15:13 15512 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/virt/connection.py", line 76, in get_connection
2013-03-26 13:15:13 15512 TRACE nova.all     raise exception.VirtDriverNotFound(name=FLAGS.connection_type)
2013-03-26 13:15:13 15512 TRACE nova.all VirtDriverNotFound: Could not find driver for connection_type None
2013-03-26 13:15:13 15512 TRACE nova.all 
2013-03-26 13:15:13 15512 INFO nova.service [-] Starting 1 workers
2013-03-26 13:15:13 15523 INFO nova.XCP VNC Proxy.wsgi.server [-] (15523) wsgi starting up on http://0.0.0.0:6081/

http://0.0.0.0:6081/

Fix-1 : I made following change to fix this error

a) Open #sudo a) Changed # connection_type=<None> to connection_type=libvirt in nova.conf

 # sudo vim /etc/nova/nova.conf
Changed #connection_type=<none>
to
connection_type=libvirt

Error: when running ./bin/nova-all (After above change) (Not Fixed)


2013-03-26 13:39:59 18063 INFO nova.compute.manager [-] Loading compute driver 'nova.virt.connection.get_connection'
2013-03-26 13:39:59 18063 WARNING nova.common.deprecated [-] Deprecated Config: Specifying virt driver via connection_type is deprecated. Use compute_driver=classname instead.
[sudo] password for saju: 2013-03-26 13:39:59 18063 WARNING nova.virt.libvirt.firewall [-] Libvirt module could not be loaded. NWFilterFirewall will not work correctly.
2013-03-26 13:39:59 18063 ERROR nova.compute.manager [-] Unable to load the virtualization driver: No module named libvirt
2013-03-26 13:39:59 18063 ERROR nova.all [-] Failed to load nova-compute
2013-03-26 13:39:59 18063 TRACE nova.all Traceback (most recent call last):
2013-03-26 13:39:59 18063 TRACE nova.all   File "./bin/nova-all", line 76, in <module>
2013-03-26 13:39:59 18063 TRACE nova.all     launcher.launch_server(service.Service.create(binary=binary))
2013-03-26 13:39:59 18063 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/service.py", line 492, in create
2013-03-26 13:39:59 18063 TRACE nova.all     periodic_fuzzy_delay=periodic_fuzzy_delay)
2013-03-26 13:39:59 18063 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/service.py", line 387, in __init__
2013-03-26 13:39:59 18063 TRACE nova.all     self.manager = manager_class(host=self.host, args, *kwargs)
*args, **kwargs)
2013-03-26 13:39:59 18063 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/compute/manager.py", line 227, in __init__
2013-03-26 13:39:59 18063 TRACE nova.all     sys.exit(1)
2013-03-26 13:39:59 18063 TRACE nova.all SystemExit: 1
2013-03-26 13:39:59 18063 TRACE nova.all 
2013-03-26 13:39:59 18063 INFO nova.service [-] Starting 1 workers
2013-03-26 13:39:59 18075 AUDIT nova.service [-] Starting volume node (version 2012.2.4-LOCALBRANCH:LOCALREVISION)

2012.2.4-LOCALBRANCH:LOCALREVISION)

Current issue is

Failed to load nova-compute
Unable to load the virtualization driver: No module named libvirt

libvirt