nova-compute & nova-network crash when QuantumManager is set as network_manager

Bug #1049616 reported by Matt Symonds
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
Unassigned

Bug Description

When nova is set to use QuantumManager as its network manager both nova-compute and nova-network fail to start:

/etc/nova/nova.conf
network_manager=quantum.manager.QuantumManager

/etc/quantum/quantum.conf
core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2

/var/log/upstart/nova-network.log
Session terminated, terminating shell... ...terminated.
2012-09-12 12:05:05 CRITICAL nova [-] __init__() got an unexpected keyword argument 'host'
2012-09-12 12:05:05 TRACE nova Traceback (most recent call last):
2012-09-12 12:05:05 TRACE nova File "/usr/bin/nova-network", line 46, in <module>
2012-09-12 12:05:05 TRACE nova server = service.Service.create(binary='nova-network')
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 492, in create
2012-09-12 12:05:05 TRACE nova periodic_fuzzy_delay=periodic_fuzzy_delay)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 387, in __init__
2012-09-12 12:05:05 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2012-09-12 12:05:05 TRACE nova TypeError: __init__() got an unexpected keyword argument 'host'
2012-09-12 12:05:05 TRACE nova
__init__() got an unexpected keyword argument 'host'
2012-09-12 12:05:05 TRACE nova Traceback (most recent call last):
2012-09-12 12:05:05 TRACE nova File "/usr/bin/nova-network", line 46, in <module>
2012-09-12 12:05:05 TRACE nova server = service.Service.create(binary='nova-network')
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 492, in create
2012-09-12 12:05:05 TRACE nova periodic_fuzzy_delay=periodic_fuzzy_delay)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 387, in __init__
2012-09-12 12:05:05 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2012-09-12 12:05:05 TRACE nova TypeError: __init__() got an unexpected keyword argument 'host'
2012-09-12 12:05:05 TRACE nova

/var/log/upstart/nova-compute.log
2012-09-12 12:05:05 CRITICAL nova [-] no such option: core_plugin
2012-09-12 12:05:05 TRACE nova Traceback (most recent call last):
2012-09-12 12:05:05 TRACE nova File "/usr/bin/nova-compute", line 46, in <module>
2012-09-12 12:05:05 TRACE nova server = service.Service.create(binary='nova-compute')
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 492, in create
2012-09-12 12:05:05 TRACE nova periodic_fuzzy_delay=periodic_fuzzy_delay)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 387, in __init__
2012-09-12 12:05:05 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 236, in __init__
2012-09-12 12:05:05 TRACE nova self.network_manager = importutils.import_object(FLAGS.network_manager)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 40, in import_object
2012-09-12 12:05:05 TRACE nova return import_class(import_str)(*args, **kwargs)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/manager.py", line 49, in __init__
2012-09-12 12:05:05 TRACE nova plugin_provider = cfg.CONF.core_plugin
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1039, in __getattr__
2012-09-12 12:05:05 TRACE nova return self._get(name)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1361, in _get
2012-09-12 12:05:05 TRACE nova value = self._substitute(self._do_get(name, group))
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1377, in _do_get
2012-09-12 12:05:05 TRACE nova info = self._get_opt_info(name, group)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1470, in _get_opt_info
2012-09-12 12:05:05 TRACE nova raise NoSuchOptError(opt_name, group)
2012-09-12 12:05:05 TRACE nova NoSuchOptError: no such option: core_plugin
2012-09-12 12:05:05 TRACE nova
no such option: core_plugin
2012-09-12 12:05:05 TRACE nova Traceback (most recent call last):
2012-09-12 12:05:05 TRACE nova File "/usr/bin/nova-compute", line 46, in <module>
2012-09-12 12:05:05 TRACE nova server = service.Service.create(binary='nova-compute')
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 492, in create
2012-09-12 12:05:05 TRACE nova periodic_fuzzy_delay=periodic_fuzzy_delay)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 387, in __init__
2012-09-12 12:05:05 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 236, in __init__
2012-09-12 12:05:05 TRACE nova self.network_manager = importutils.import_object(FLAGS.network_manager)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 40, in import_object
2012-09-12 12:05:05 TRACE nova return import_class(import_str)(*args, **kwargs)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/manager.py", line 49, in __init__
2012-09-12 12:05:05 TRACE nova plugin_provider = cfg.CONF.core_plugin
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1039, in __getattr__
2012-09-12 12:05:05 TRACE nova return self._get(name)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1361, in _get
2012-09-12 12:05:05 TRACE nova value = self._substitute(self._do_get(name, group))
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1377, in _do_get
2012-09-12 12:05:05 TRACE nova info = self._get_opt_info(name, group)
2012-09-12 12:05:05 TRACE nova File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1470, in _get_opt_info
2012-09-12 12:05:05 TRACE nova raise NoSuchOptError(opt_name, group)
2012-09-12 12:05:05 TRACE nova NoSuchOptError: no such option: core_plugin
2012-09-12 12:05:05 TRACE nova

Ubuntu-12.04 - 3.2.0-29-generic
ii nova-api 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - API frontend
ii nova-cert 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - certificate management
ii nova-common 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - common files
ii nova-compute 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - compute node
ii nova-compute-kvm 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - compute node (KVM)
ii nova-consoleauth 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - Console Authenticator
ii nova-doc 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - documentation
ii nova-network 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - Network manager
ii nova-objectstore 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - object store
ii nova-scheduler 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - virtual machine scheduler
ii nova-volume 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute - storage
ii python-nova 2012.2+git201209072153~precise-0ubuntu1 OpenStack Compute Python libraries
ii python-novaclient 1:2.8.0.7+git201209101430~precise-0ubuntu1 client library for OpenStack Compute API
ii python-quantum 2012.2+git201209102130~precise-0ubuntu1 Quantum is a virutal network service for Openstack. (python library)
ii python-quantumclient 1:2.0.5+git201208141232~precise-0ubuntu1 client - Quantum is a virtual network service for Openstack
ii quantum-common 2012.2+git201209102130~precise-0ubuntu1 common - Quantum is a virtual network service for Openstack.
ii quantum-plugin-nec 2012.2+git201209102130~precise-0ubuntu1 Quantum is a virtual network service for Openstack. (NEC plugin)
ii quantum-plugin-openvswitch 2012.2+git201209102130~precise-0ubuntu1 Quantum is a virtual network service for Openstack. (openvswitch plugin)
ii quantum-server 2012.2+git201209102130~precise-0ubuntu1 server - Quantum is a virtual network service for Openstack

Tags: quantum
Thierry Carrez (ttx)
tags: added: quantum
Revision history for this message
Akihiro Motoki (amotoki) wrote :

This bug is due to misconfiguration for network_manager in nova.conf.
We need to set a subclass of NetworkManager for network_manager.

When quantum is enabled, we do not need to set network_manager explicitly since nova-network is not launched.
(The default value is nova.network.manager.VlanManager, but we need not to change it)

Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

Matt,

From Folsom-2 nova-network and the Quantum Manager are not used anymore to communicate with Quantum, as nova call directly the Quantum API. Hence nova-network should not run at all. An admin guide which will guide you through the process of installing and configuring Quantum v2 is in preparation and should be available as a draft by the end of this week. In the meanwhile, you can look at devstack to get a grasp of how quantum and the various agents have been configured.

Can you please tell me which version of the packages are you using? This might help us understand if there's a packaging issue to be addressed.

Changed in nova:
status: New → Incomplete
Revision history for this message
Matt Symonds (msymonds) wrote :

Thanks for the update. I will wait for the updated documentation.

I was running the latest packages from:

ppa:openstack-ubuntu-testing/folsom-trunk-testing
ppa:openstack-ubuntu-testing/folsom-deps-staging

Thierry Carrez (ttx)
Changed in nova:
status: Incomplete → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

I think that's actually wontfix, based on comment 2. Feel free to reopen (set status back to New) if you disagree.

Changed in nova:
status: Confirmed → Won't Fix
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.