nova [-] Could not find driver for connection_type None

Bug #1076353 reported by Eduardo Patrocinio
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Linux Version: Ubuntu 12.10 server

user@openstack:/var/log/nova$ nova-manage version
2012.2 (2012.2-LOCALBRANCH:LOCALREVISION)

Getting the following error in nova-volume.log:

2012-11-07 02:11:59 WARNING nova.common.deprecated [-] Deprecated Config: Specifying virt driver via connection_type is deprecated. Use compute_driver=classname instead.
2012-11-07 02:11:59 CRITICAL nova [-] Could not find driver for connection_type None

root@openstack:/etc/nova# grep -e connection_type -e compute_driver /etc/nova/*
/etc/nova/nova.conf:connection_type=libvirt
/etc/nova/nova.conf:compute_driver=libvirt.LibvirtDriver

The problem persists even if I comment the connection_type line.

Tags: nova-volume
Revision history for this message
Crue Jones (cruejones) wrote :

issue goes away if you add 'connection_type' back in to nova.conf even though it clearly states that it is deprecated and 'compute_driver' should be used instead.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nova (Ubuntu):
status: New → Confirmed
Revision history for this message
whynotlinux (whynotlinux1) wrote :

hello to all

I have exactly the same bug

trace :

INFO nova.compute.manager [-] Loading compute driver 'nova.virt.connection.get_connection'
2012-11-15 11:18:34 WARNING nova.common.deprecated [-] Deprecated Config: Specifying virt driver via connection_type is deprecated. Use compute_driver=classname instead.
2012-11-15 11:18:34 CRITICAL nova [-] Could not find driver for connection_type None
2012-11-15 11:18:34 TRACE nova Traceback (most recent call last):
2012-11-15 11:18:34 TRACE nova File "/usr/bin/nova-compute", line 46, in <module>
2012-11-15 11:18:34 TRACE nova server = service.Service.create(binary='nova-compute')
2012-11-15 11:18:34 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 492, in create
2012-11-15 11:18:34 TRACE nova periodic_fuzzy_delay=periodic_fuzzy_delay)
2012-11-15 11:18:34 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 387, in __init__
2012-11-15 11:18:34 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2012-11-15 11:18:34 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 228, in __init__
2012-11-15 11:18:34 TRACE nova importutils.import_object_ns('nova.virt', compute_driver),
2012-11-15 11:18:34 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 53, in import_object_ns
2012-11-15 11:18:34 TRACE nova return import_class(import_str)(*args, **kwargs)
2012-11-15 11:18:34 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/connection.py", line 76, in get_connection
2012-11-15 11:18:34 TRACE nova raise exception.VirtDriverNotFound(name=FLAGS.connection_type)
2012-11-15 11:18:34 TRACE nova VirtDriverNotFound: Could not find driver for connection_type None
2012-11-15 11:18:34 TRACE nova

thank you for your help

Revision history for this message
Chuck Short (zulcss) wrote :

connection_type is invalid, i think you want libvirt_type.

Changed in nova (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Gui Maluf Balzana (guimalufb) wrote :

The only way to work for me is directly on the CLI type

# nova-compute --connection_type=libvirt

Even if I put connection_type inside /etc/nova/nova.conf does not work!

Revision history for this message
Thomas Leonard (tal-it-innovation) wrote :

What are the possible values for this option? The example file from the installation documentation doesn't have connection_type or libvirt_type:

http://docs.openstack.org/folsom/basic-install/content/basic-install_controller.html

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.